s:decorate + s:message is a great feature in Seam.  I wonder if there's a way 
to manually validate the user input. Here is my scenario, I have following code 
in my page:


  | <s:decorate>
  |                 <h:inputText value="#{location.country}" id="country">
  |                     <a:support event="onblur" reRender="countryError" 
action="#{mybean.checkLocation}"/>
  |                 </h:inputText>
  |                 <a:outputPanel id="countryError><s:message/></a:outputPanel>
  |  </s:decorate>
  | 

mybean.checkLocation is the method that checks whether location is valid or 
not. I've tried to add a message to FacesMessage but it doesn't seem to work. 
anyone knows how to handle this situation?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000929
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to