wrong error messages when using Apache MyFaces with facelets

View: New views
2 Messages — Rating Filter:   Alert me  

wrong error messages when using Apache MyFaces with facelets

by René Perschon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

I'm using MyFaces 1.2.7 with a Glassfish V2.1 and facelets 1.1.14.

When i code an input-field like so:

<h:inputText id="name" value="#{currentProduct.name}" required="true" />

and i don't enter a value, the validation fails but the error message is
not quite correct.
Instead of

"name: <validation-error-message>"

i get

"j_id3:name: <validation-error-message>"

I already searched the net but didn't find any matching issues. Does
anyone know why
facelets/myfaces display's it's own id's plus the given one? how can i
stop that?

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: wrong error messages when using Apache MyFaces with facelets

by Raymond K. DeCampo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Define the label attribute on the inputText component.


-----Original Message-----
From: René Perschon [mailto:chummer_rene@...]
Sent: Fri 9/4/2009 8:37 AM
To: users@...
Subject:  wrong error messages when using Apache MyFaces with facelets
 
Hi!

I'm using MyFaces 1.2.7 with a Glassfish V2.1 and facelets 1.1.14.

When i code an input-field like so:

<h:inputText id="name" value="#{currentProduct.name}" required="true" />

and i don't enter a value, the validation fails but the error message is
not quite correct.
Instead of

"name: <validation-error-message>"

i get

"j_id3:name: <validation-error-message>"

I already searched the net but didn't find any matching issues. Does
anyone know why
facelets/myfaces display's it's own id's plus the given one? how can i
stop that?

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

winmail.dat (4K) Download Attachment