This content has been marked as final.
Show 1 reply
-
1. Re: s:decorate with s:message not displaying
pietermartin Aug 28, 2007 5:08 PM (in response to pietermartin)Problem solved!
Had to do with my template.xhtml file.
In it I have\had<f:subview rendered="#{identity.loggedIn and s:hasRole('FARMER') and s:hasRole('AGENT')}"> <rich:panel> <h:panelGrid width="100%"> <ui:include src="submenu.xhtml"> <ui:param name="projectName" value="#{agentMasqueradeFarmer.username}"/> </ui:include> <ui:insert name="body"/> </h:panelGrid> </rich:panel> </f:subview> <f:subview rendered="#{not (identity.loggedIn and s:hasRole('FARMER') and s:hasRole('AGENT'))}"> <ui:insert name="body"/> </f:subview>
Removing the first <f:subview> makes <s:message> display the message.
It seems having two f:subviews inserting (depending on mutually exclusive rendering rules) the same body confuses s:message.
Course I too am confused.
Whether this is a feature or a bug I dunno.
Cheers
Pieter