[jboss-user] [JBoss Seam] - Re: Validation: @NotNull required=true

2008-01-16 Thread konami
As of JSF 1.2, the h:inputText control has requiredMessage attribute that you can customize for each input field's required error message. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4120709#4120709 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Validation: @NotNull required=true

2007-05-12 Thread [EMAIL PROTECTED]
I think thisis what you are after: | javax.faces.component.UIInput.CONVERSIONConversion error occurred | javax.faces.component.UIInput.REQUIRED required | javax.faces.component.UISelectOne.INVALID Value is not a a valid option | javax.faces.component.UISelectMany.INVALID Value is

[jboss-user] [JBoss Seam] - Re: Validation: @NotNull required=true

2007-05-12 Thread [EMAIL PROTECTED]
If this is helpful then you might want to propose to add it to the FAQ... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045188#4045188 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045188

[jboss-user] [JBoss Seam] - Re: Validation: @NotNull required=true

2007-05-12 Thread miloslav.vlach
Thanks for reply, but I don't know how to disable the displaying the UIInput default validation message. When the field isn't empty, the hibernate validation work good. If the input is empty the UIInput default message is show - and I would like to don't show this but show the @NotNull. M.

[jboss-user] [JBoss Seam] - Re: Validation: @NotNull required=true

2007-05-12 Thread [EMAIL PROTECTED]
Currently there is no way to utilize the message of @NotNull, you need to change the JSF validator message for required=true globally. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045193#4045193 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Validation: @NotNull required=true

2007-05-12 Thread monkeyden
There is no way to do it globally but you can use a phase listener: import java.util.Iterator; | | import javax.faces.application.FacesMessage; | import javax.faces.component.UIComponent; | import javax.faces.component.UIViewRoot; | import javax.faces.context.FacesContext; | import

[jboss-user] [JBoss Seam] - Re: Validation: @NotNull required=true

2007-05-12 Thread monkeyden
On second thought, this is of no use to you within the context of hibernate validation. This is strictly JSF. I'll be quiet now. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045195#4045195 Reply to the post :