[jboss-user] [JBoss Seam] - JSF requiredMessage does not work with seam bundle

yj4jboss do-not-reply at jboss.com
Wed Nov 29 01:01:16 EST 2006


Hello,
    I have  to input a "required" field in a JSF form. As such i am using the following code in my XHTML file.


  | <h:form>
  | <h:inputText 							
  |                   value="#{userEditorBean.user.displayName}"
  |  		  required="true"							   
  |                   requiredMessage="#{messages.RequiredUserName}"
  | />
  | 
  | <h:commandButton value="Add" action="#{userEditorBean.addUser}"/>
  | </h:form>
  | 
  | 

However, when nothing is entered in the input textbox and the form is submitted, the desired error message from the seam resource bundle is not displayed. Instead the message "Validation Error" is displayed !!

Can anyone suggest where i am wrong and how to fix this. I was previously using <f:loadBundle> and i was told to try this with Seam Resource Bundle but it still fails!!

Regards,
Yogesh


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

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



More information about the jboss-user mailing list