[jboss-user] [JBoss Seam] - validation message displayed twice

hasc do-not-reply at jboss.com
Wed May 2 08:02:27 EDT 2007


Hi,

i have a question. I want to validate a parameter against a hibternate constraint.

I have the following code in the bean:

@Min(value=1,message="#{messages.GreaterThanZero}")
  | public float getArea()
  | {
  |     return area;
  | }

and the input-field is defined:

<h:inputText id="EffectiveArea" value="#{calculator.area}" required="true" requiredMessage="#{messages.RequiredValueArea}">
  |     <f:converter converterId="AreaConverter"/>
  | </h:inputText>

when i display the message in the view page with <h:messages/> the error message is displayed twice. when i add the globalOnly="true" - tag no message is displayed.

I have no clue why this happens.

regards,
hasc

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

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



More information about the jboss-user mailing list