Kevin,

I think you are correct in that someone hijacked your thread and went 
JSF(MyFaces) on you.    And now, back to your
topic: Tiles within Struts...

To dynamically alter the components of a Tile definition, I recommend using a 
Tiles Controller.  That should allow you
to add or remove components to a tile, like having manual control over a < put 
... / > tag.  Tiles controllers can be
used as replacement to an Action class or specified in the tile definition 
itself for that extra self-control (so to
speak).  For more information, I recommend reading the 
"tilesAdvancedFeatures.pdf" link under the "Documentation"
section of the page (scroll down) over at http://www.lifl.fr/~dumoulin/tiles

Regards,
David

-----Original Message-----
From: Leahy, Kevin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 22, 2005 6:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Tiles Again - Can anyone help?


Hi

I just had a quick look at the link. Without looking too much in depth,
isn't myfaces a jsf implementation or have I got that wrong? Do I really
need to go outside struts and tiles. Learning struts and hibernate at once
is already enough for my head. ;)

-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: 22 November 2005 23:21
To: Struts Users Mailing List
Subject: Re: Tiles Again - Can anyone help?

Good Afternoon Kevin-
I believe the JspTilesViewHandlerImpl handler will take the defined viewid
and then compute the tileID substitute any extension by .tiles Append .tiles
for corresponding definition JspTilesViewHandlerImpl must be configured as
an application within faces-config.xml check out
http://myfaces.apache.org/tomahawk/tiles.html
cungantach?
Martin-
----- Original Message -----
From: "Leahy, Kevin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <user@struts.apache.org>
Sent: Tuesday, November 22, 2005 6:04 PM
Subject: RE: Tiles Again - Can anyone help?


>I have had a problem niggling me for a couple of weeks. I keep going
>back to  it and I'm sure there must be a simple solution, but I think I
>am missing  something simple - struts overload, maybe? ;)
>
> I have MasterLayout.jsp and FormLayout.jsp.
> MasterLayout sets out a basic html page, specifying generic components
> like the title and menu using <tiles:insert> tags.
> FormLayout specifies a form, specifying components again using
> <tiles:insert> tags.
>
> I am defining tiles in tiles-def.xml that user MasterLayout - all
> working fine using the <put> tags to inject the components.
> But I also want tiles where in the tiles definition file I can use the
> <put> tags to add components into both the MasterLayout and the
FormLayout.
>
> I hope this makes sense to someone. I can send more clarification if
needed.
> Can anyone advise on this?
>
>
> -----Original Message-----
> From: Greg Reddin [mailto:[EMAIL PROTECTED]
> Sent: 22 November 2005 22:46
> To: Struts Users Mailing List
> Subject: Re: [tiles]
>
>
> On Nov 22, 2005, at 4:42 PM, Wendy Smoak wrote:
>
>> I have that exact situation where I don't want the menu showing up on
>> a resolution screen.  I'm doing it in tiles-defs.xml,  so this may
>> not apply, but it works:
>>
>> <tiles-definitions>
>>   <definition name="masterPage" path="/WEB-INF/jsp/layout/
>> basicLayout.jsp">
>>      <put name="title"       value="IRM Web" />
>>      <put name="menubar"     value="/WEB-INF/jsp/menubar.jsp" />
>>      <put name="footer"      value="/WEB-INF/jsp/footer.jsp" />
>>      ...
>>   </definition>
>>
>>   <definition name="resolution.page" extends="masterPage">
>>     <put name="heading"     value="Resolution" />
>>     <put name="menubar"     value="" />
>>     <put name="body"        value="/WEB-INF/jsp/resolutionBody.jsp" />
>>   </definition>
>> ...
>>
>
> So it does work.  How do you use the menubar definition in the JSP page?
> Are you using the "insert" tag?
>
> Greg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to