This content has been marked as final.
Show 3 replies
-
1. Re: Validation messages with Seam 2.0 and Richfaces 3.1.0
pdhaigh Sep 19, 2007 11:55 AM (in response to pdhaigh)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 -
2. Re: Validation messages with Seam 2.0 and Richfaces 3.1.0
smithbstl Sep 19, 2007 12:46 PM (in response to pdhaigh)I have not tried it but this may help.
http://in.relation.to/Bloggers/SeamValidation
I don't think it has anything to do with RichFaces (at least not according to the blog post) -
3. Re: Validation messages with Seam 2.0 and Richfaces 3.1.0
pmuir Oct 14, 2007 12:20 PM (in response to pdhaigh)This was fixed in CR2