[jboss-user] [JBoss Seam] - Re: Validation messages with Seam 2.0 and Richfaces 3.1.0

pdhaigh do-not-reply at jboss.com
Wed Sep 19 11:55:18 EDT 2007


Interestingly, this only seems to affect <s:validateAll>... if I put <s:validate/> within a component, it works.

So, to summarise:

This doesn't work:

<h:form>
  | 	<f:facet name="afterInvalidField">
  | 		<h:panelGroup><br/><s:message/></h:panelGroup>
  | 	</f:facet>
  | 	<f:facet name="aroundInvalidField">
  | 		<s:span styleClass="error"/>
  | 	</f:facet>   		    
  | 	<s:validateAll>	
  | 
  | 	 <rich:tabPanel contentClass="tabbedpanel" switchType="client" selectedTab="#{customerManager.selectedTab}">
  | 		<rich:tab label="General" name="General" >
  | 			<h:outputText value="First name: "/>
  | 			<s:decorate id="firstname">
  | 				<h:inputText label="Customer first name" value="#{customer.firstName}" required="true">
  | 					<a4j:support event="onblur" reRender="firstname" ajaxSingle="true"/>
  | 				</h:inputText>
  | 			</s:decorate>
  | 		</rich:tab>
  | 	</rich:tabPanel>
  | </s:validateAll>
  | 
  | </h:form>

This does:


  | <h:form>
  | 	<f:facet name="afterInvalidField">
  | 		<h:panelGroup><br/><s:message/></h:panelGroup>
  | 	</f:facet>
  | 	<f:facet name="aroundInvalidField">
  | 		<s:span styleClass="error"/>
  | 	</f:facet>   		    
  | 	<s:validateAll>	
  | 
  | 	 <rich:tabPanel contentClass="tabbedpanel" switchType="client" selectedTab="#{customerManager.selectedTab}">
  | 		<rich:tab label="General" name="General" >
  | 			<h:outputText value="First name: "/>
  | 			<s:decorate id="firstname">
  | 				<h:inputText label="Customer first name" value="#{customer.firstName}" required="true">
  | 					<a4j:support event="onblur" reRender="firstname" ajaxSingle="true"/>
  | 					<s:validate/>
  | 				</h:inputText>
  | 			</s:decorate>
  | 		</rich:tab>
  | 	</rich:tabPanel>
  | 	</s:validateAll>
  | </h:form>
  | 

Which leads me to suspect that this is in fact a bug.. although whether it's RichFaces or Seam I have no clue ;-)

cheers

phil

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

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



More information about the jboss-user mailing list