Hi Michael,

Yes the ones with immediate attribute will be executed before validation, you could try to call facesContext's renderResponse method to jump directly renderresponse at your value change listener. This way, validations phase will not be executed for other fields.

Regards,

Cagatay

On 6/13/06, Michael Ageeb <[EMAIL PROTECTED]> wrote:
the immediate attribute as i know will not disable the validation it just will proceed the action methods and listeners befor validation so this way works if you are creating a new request or submiting to another page.
but in my problem the page submits and redisplay again and i have some required fields that are not set yet so it still displays validation messages on them.




On 6/2/06, Balaji Kalyansundaram <[EMAIL PROTECTED]> wrote:
You can use immediate="true" on the SelectOneMenu, so that other components will not processed.
 
Balaji


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Michael Ageeb
Sent: Thursday, 1 June 2006 6:07 PM
To: MyFaces Discussion
Subject: hide validation messages when onchange="submit();"

Hello,
   I've a form with multible elements . one of those are SelectOneMenu and i've value change listener on this element and onchange i submit the form to populate another field.

the problem is some of the other elements may have validation error since the form is not filed completely.

How could i hide the validation messages on the other elements when submiting a form by this way

--
http://mageeb.net
Don't send me any attachment in Micro$oft (.DOC, .PPT) format please
Read http://www.gnu.org/philosophy/no-word-attachments.html
Preferable attachments: .PDF, .HTML, .TXT
Thanx for adding this text to Your signature
This correspondence is for the named persons only.
It may contain confidential or privileged information or both.
No confidentiality or privilege is waived or lost by any mis transmission.
If you receive this correspondence in error please delete it from your system immediately and notify the sender.
You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient.
Any opinions expressed in this message are those of the individual sender except where the sender expressly,
and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.



--
http://mageeb.net
Don't send me any attachment in Micro$oft (.DOC, .PPT) format please
Read http://www.gnu.org/philosophy/no-word-attachments.html
Preferable attachments: .PDF, .HTML, .TXT
Thanx for adding this text to Your signature

Reply via email to