Re: validation method problem

2006-08-03 Thread Mike Kienenberger
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

RE: validation method problem

2006-07-21 Thread Dhananjay Prasanna
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

Re: validation method problem

2006-07-21 Thread Cosma Colanicchia
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

Re: validation method problem

2006-07-20 Thread Mike Kienenberger
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

Re: validation method problem

2006-07-20 Thread array
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

Re: validation method problem

2006-07-19 Thread Gilles DEMARTY
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

Re: validation method problem

2006-07-19 Thread Cosma Colanicchia
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

Re: validation method problem

2006-07-19 Thread Romain PELISSE
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.

Re: validation method problem

2006-07-19 Thread Kapil Kataria
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

Re: validation method problem

2006-07-19 Thread array
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

Re: validation method problem

2006-07-19 Thread Gilles DEMARTY
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

Re: validation method problem

2006-07-19 Thread Cosma Colanicchia
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