On 7/21/06, Dhananjay Prasanna [EMAIL PROTECTED] wrote:
We tried a hack to solve a similar issue by having a PhaseListener in
the beforeRender phase that walks the component tree and modifies it (in
our case resetting css styles) on offending components (referenced in
the FacesMessages
Usually the type of thing you're trying to do is done this way:
1) Assign an id attribute to each of your input field
2) Place an h:messages forId=yourComponentId instead of your DIV
Now, any conversion/validation error will be rendered near the correct
field. Remember also to use an h:messages
PM
To: MyFaces Discussion
Subject: Re: validation method problem
Usually the type of thing you're trying to do is done this way:
1) Assign an id attribute to each of your input field
2) Place an h:messages forId=yourComponentId instead of your DIV
Now, any conversion/validation error
hi,
What I would like to do during the validation is to add a div where the
error message has to be rendered. I have several divs on the page under each
input field which at first are not visible. The corresponding ?rendered?
attributes should to be set to true only if the validation fails.
I
The ability to customize the required message was provided for JSF 1.2.
https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=81
There's no easy way to do it in JSF 1.1.
It can be done if you want to spend processing time on it.
The last section of this page will show you
I think this is the normal behaviour. Required validation is handled
in a special way in JSF.. if the field has to be required, you should
use the required attribute, and AFAIK there's now way to plug-in a
custom required logic.
Cosma
2006/7/19, array [EMAIL PROTECTED]:
I have an input field
perfectly normal behavior.
The validators are triggered if a non-null value is provided.
If this you want to not allow null value, add a required=true on
your input component. (then null will then raise an error, but not
call your validator)/
2006/7/19, array [EMAIL PROTECTED]:
I have an
thanks for quick answer!
I would like to perform some operations during the validation. Furthermore I
would like to render an internalized error message. However the built-in
?required? validator uses the field id in his error message. How can I
achieve these two requirements if I can?t invoke
Hi I need to create an application Using My Faces (JSF) and spring I am haven;t created any base framework using these technologies.If any one have some application working on these technologies.Please
mail me Framework documentation it will help me to design a new framework.Please mail me
You can easily replace the default message by adding the following file
to your webapp :
/javax/faces/Messages_XX.properties
then overload the message which to change :
# standard messages (Spec. 2.5.1.4)
javax.faces.component.UIInput.REQUIRED = validation Error
2006/7/19, array [EMAIL PROTECTED]:
thanks for quick answer!
I would like to perform some operations during the validation. Furthermore I
would like to render an internalized error message. However the built-in
?required? validator uses the field id in his error message. How can I
achieve
11 matches
Mail list logo