Hi, 

 

I have used tiles basic functionality for some time both in Struts and
JSF/MyFaces env. What I am trying to do is set my tiles definition based
on user role so I would have two tiles defined the same, but based on
user role the correct one would be rendered. 

For example

 

            <definition name="/faces/reports/testreport.tiles"
extends="report" role="oldCustomer" >

                        <put name="content" value="/jsp/oldContent"/>

            </definition>

            <definition name="/faces/reports/testreport.tiles"
extends="report" role="newCustomer">

                        <put name="content" value="/jsp/newContent"/>

            </definition>

 

 

I have seen some documentation that makes it sound like this is
possible, but haven't gotten it to work. If anyone has experience in
doing this or can offer some direction it would be appreciated. Also, I
don't think this should make a difference, but I am using the myfaces
JspTilesViewHandlerImpl, I haven't tried this in a pure stuts/tiles env.
Thanks 
 
 
 
NOTICE:  This message, including all attachments transmitted with it, is for 
the use of the addressee only. It may contain proprietary, confidential and/or 
legally privileged information belonging to Litle & Co. No confidentiality or 
privilege is waived or lost by any mistransmission. If you are not the intended 
recipient, you must not, directly or indirectly, use, disclose, distribute, 
print or copy any part of this message.  If you believe you have received this 
message in error, please delete it and all copies of it from your system and 
notify the sender immediately by reply e-mail.  Thank you. 

Reply via email to