Hi, is it possible to pass field's name for validator "required" so I to print next to field validation? My code jsp ... <h utputText value="USERNAME" /><h:message for="username" ></h:message> <h:inputText id="username" value="#{user.username}" required="true"><h:message for="username" style="color: red" /></h:inputText>
My file with custum messages is: ... javax.faces.component.UIInput.REQUIRED=Value is required. ...
I would that message is: Value for "username" is required. Thanks.
javax.faces.component.UIInput.REQUIRED=Value is required for {1}.
MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
rosaria italia
Greenhorn
Joined: May 15, 2006
Posts: 28
posted
0
Thanks, I have tried both suggestions but I didn't resolve my problem, would you give me an other explanation, please?
Jeff Albertson
Ranch Hand
Joined: Sep 16, 2005
Posts: 1780
posted
0
What went wrong whem you tried what was suggested in the reference I posted?
rosaria italia
Greenhorn
Joined: May 15, 2006
Posts: 28
posted
0
Hi Jeff, now works even if not completely !!! Thanks very much your suggestion.
rosaria italia
Greenhorn
Joined: May 15, 2006
Posts: 28
posted
0
Hello, I'm using PhaseListener, but why in my Application are showed both validation's errors (my personalize messages and default's messages)? Thanks!
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.