[jboss-user] [JBoss Seam] - Re: s:decorate with s:message not displaying

pietermartin do-not-reply at jboss.com
Tue Aug 28 17:08:04 EDT 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078933#4078933

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078933



More information about the jboss-user mailing list