tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Wynn <rw...@us.ibm.com>
Subject Re: Portlet in tapestry
Date Thu, 01 Sep 2005 21:42:47 GMT

I am not sure what you mean by define page layout.  Are you talking about 
pages in the portal sense or in the tapestry sense? The persist state of 
properties within your tapestry pages should be defined in your .page 
files.  Or I guess in your .java files if you are using annotations. 
Navigation between tapestry pages happens like in a servlet application, 
for example in response to a form submit the handler returns the name of 
the page or an instance of the page to go to next.   Except in a portal 
you could potentially have a couple tapestry applications configured for a 
single portal page. 

Not sure if this helps.


Tomáš Drenčák <tomas.drencak@gmail.com> 
09/01/2005 11:39 AM
Please respond to
"Tapestry users"

Tapestry users <tapestry-user@jakarta.apache.org>

Re: Portlet in tapestry

Thanks Ryan!
But I'm little bit confused about first portlet... Where can I define
page layout to include different pages? How to navigate inside of each
page and retain state of other pages included in portlet?


2005/9/1, Ryan Wynn <rwynn@us.ibm.com>:
> The configuration changes between web and portlet application are not 
> bad.  Get your web.xml and portlet.xml from
> http://jakarta.apache.org/tapestry/tapestry-portlet/configuration.html
> Then use View.html instead of Home.html as your start page.  If you want
> to change this to use a name besides View you will need to incorporate
> hivemind.
> Create a hivemodule.xml according to the hivemind documentation and copy
> it into WEB-INF.  Add the following
> <contribution
> configuration-id="tapestry.portlet.resolver.PageResolverRules">
>  <match portlet-mode="view" page="MyStartPage"/>
> </contribution>
> The last thing that snagged me was that I had used the
> tapestry-annotations jars in my WEB-INF/lib.  You only want this if you
> are using annotations and of course your Portal Server is running on 
> 5.  Also make sure all the other tapestry jars including
> tapestry-portlet.jar are in your WEB-INF/lib directory.
> That is pretty much it.  The Tapestry 4 HelloWorld tutorial for web apps
> at http://jakarta.apache.org/tapestry/QuickStart/helloworld.html should
> then be adapted to the above rules, namely use View.html instead of
> Home.html.  Once you have the configuraton set up tapestry works pretty
> much the same as it always has.
> I created my .page files in WEB-INF.  So I have a View.page in there. As
> mentioned before I also have a hivemodule.xml in that directory.
> Ryan
> Tomáš Drenčák <tomas.drencak@gmail.com>
> 09/01/2005 01:51 AM
> Please respond to
> "Tapestry users"
> To
> Tapestry users <tapestry-user@jakarta.apache.org>
> cc
> Subject
> Portlet in tapestry
> Hi all,
> I'd like to try tapestry portlet support, but there's too little
> documentation or tutorials written on this topic (which I've
> found...). Is there somewhere study case application or tutorial on
> this topic? Or can you tell me basic steps to have a functional Hello
> world portlet application?
> Thanks
>         Tomas
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message