You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Rick Reumann <ri...@gmail.com> on 2005/08/19 23:41:16 UTC
feel like an idiot... basic tiles question
Man, this is annoying since I know this has to be simple. I'm looking at
both the Core JSF book and the MyFaces tiles example application.
Question...
"How is the definition name in your tiles defiition related to your
'to-view-id'?"
I don't see this documented anywhere. For example in the MyFaces tiles
example a to-view-id looks like:
<to-view-id>/page2.jsp</to-view-id>
And for a tile definition I see:
<definition name="/page2.tiles" extends="layout.example" >
What are the rules in how this tile definition is picked up? I see other
examples (ie Geary's book) he doesn't use *.tiles in his definition, so I'm
missing the logic in how this definition gets picked up? In Struts it's easy
since that definition name must match the String in mapping.findForward that
I call from my Actions.
Thanks.
--
Rick
Re: feel like an idiot... basic tiles question
Posted by Martin Marinschek <ma...@gmail.com>.
Look into JSPTilesViewHandlerImpl - the correlation is just that the
prefix of .tiles needs to be the same as the prefix of the .jsp...
regards,
Martin
On 8/19/05, Rick Reumann <ri...@gmail.com> wrote:
> Man, this is annoying since I know this has to be simple. I'm looking at
> both the Core JSF book and the MyFaces tiles example application.
> Question...
>
> "How is the definition name in your tiles defiition related to your
> 'to-view-id'?"
>
> I don't see this documented anywhere. For example in the MyFaces tiles
> example a to-view-id looks like:
>
> <to-view-id>/page2.jsp</to-view-id>
>
> And for a tile definition I see:
>
> <definition name="/page2.tiles" extends="layout.example" >
>
> What are the rules in how this tile definition is picked up? I see other
> examples (ie Geary's book) he doesn't use *.tiles in his definition, so I'm
> missing the logic in how this definition gets picked up? In Struts it's easy
> since that definition name must match the String in mapping.findForward that
> I call from my Actions.
>
> Thanks.
>
> --
> Rick
--
http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German