[jboss-user] [JBoss Seam] - Inconsistent message format using Seam an JSF?

toni do-not-reply at jboss.com
Thu Jan 25 04:35:54 EST 2007


I have a problem adequately positioning the error message behind the label of an input text field.

Here is the JSF code snippet:

 <h:message for="Login">
   <h:outputText value="Login "/>        

 <h:inputText id="Login" value="#{organizer.login}" required="true" disabled="#{organizerAction.managed}"/>

The problem is that, when I leave the textfield completely empty so that there is no value at all, I get:

Login "Login": Input required.

But if I enter too few letters so that the @Length annonation throws a ValidationException, then I get:

Login has to be betwenn 5 and 40 characters.

Seam seems to leave out the name of the input field and JSF does seem to put it into parantheses and add it to the message.

How can I get a consitent message format??

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

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

More information about the jboss-user mailing list