I noticed that Sitemesh is trying to apply the last decorator in the list which matches the pattern. If that decorator has a role defined and the current user has that role, the decorator is applied, else no decorator is applied.
At this point I do not know if it is me or an issue with Sitemesh. Thanks Ram R rdr wrote: > > I am trying to apply different decorators based on user role when he/she > log's in. I am trying to use the solution mentioned in > http://jira.opensymphony.com/browse/SIM-37 > > I have these decorators defined. > > <decorator name="super" page="super.jsp" role="ROLE_SUPER"> > <pattern>/*</pattern> > </decorator> > <decorator name="user" page="user.jsp"> > <pattern>/*</pattern> > </decorator> > > But "user" decorator gets applied even if I login with a user in role > "ROLE_SUPER" > > Unfortunately sitemesh does not have log statements to debug. Please let > me know if I missed anything. > > All pointers are appreciated. > > Thanks > Ram R > -- View this message in context: http://www.nabble.com/Sitemesh-decorator-based-on-ROLE-tf4864780s2369.html#a13922540 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
