You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mike Kienenberger <mk...@gmail.com> on 2007/04/05 15:11:34 UTC

templating best practices

Unless you have a lot of legacy tiles pages to convert, you would be
better off choosing a JSF-specific templating solution.   The two most
popular are facelets (which also provides many JSF 1.2 behaviors, but
does not allow the use of jsp tags) and shale/clay (which does allow
the use of jsp tags).

However, the same strategy should work for all templating system.   I
put a master h:form around all of my code.    Then in each individual
page's content, I use one or more sandbox:subForms when I need to
logically group anything else in a form.


On 4/5/07, Rudi Steiner <ru...@googlemail.com> wrote:
> Hi Jeff,
>
> testing again the current version bevor taliking about bugs is a great idea ;)
>
> The problem for beginners like me is, that on the myFaces website is
> described, that the fastest way to get a project up and running is to
> take one of the example-apps (in my case the tiles-app) and take this
> structure to start the own project. The problem is, that the sample
> apps dont use the latest version 1.1.5 of myFaces but version 1.1.1.
> If the sample apps would use the latest versions, the sample-apps
> would be a big help for beginners to construct a new app.
>
> One more question: As I'm using tiles, is it good practice to enclose
> the <h:form/> - tag within the template, surrounding all the
> placeholders and subviews. In this way, I wouldn't have to use a
> second <form/> for all pages?
>
> With my new, version 1.1.5-based application I found out, that the
> <t:panelNavigation2/>-tag dosn't render a dummyForm if enclosed in a
> <h:form/>-tag but the navigation just works, if there is one "regular"
> link on the site (for example a <h:commandLink/>). If there is no
> link, the navigation dosn't trigger the lifecycle on the server. Is
> this a known problem?
>
> Thank you in advance,
> Rudi
>
> On 4/4/07, Jeff Bischoff <jb...@klkurz.com> wrote:
> > I'm sorry I meant to say Rudi. ;)
> >
> > Jeff Bischoff wrote:
> > > Ridu, what version of MyFaces and Tomahawk are you using?
> > >
> >
> >
> >
> >
>