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 collecti
July 2006 5:03 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 instead of your DIV
Now, any conversion/validation error will be rendered ne
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 instead of your DIV
Now, any conversion/validation error will be rendered near the correct
field. Remember also to use an
somewhere on your page to display errors t
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 how
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 do
another dirty solution is to write a custom UIInput component, and
override on this method the processValidate() (more exactly the
'validate()' ) to allow validation on the 'null value'
(remove the 'if (submittedValue == null) return;')
2006/7/19, Kapil Kataria <[EMAIL PROTECTED]>:
Hi
I need
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 the
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
javax.faces.component.UIInput.
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 ([EMAI
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 my
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
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 inpu
12 matches
Mail list logo