• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Skip validation

 
Ahmed Battah
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Guys,

I have a bad case that I need a help in it as follow:

I'm using RAD 7.5 with WAS 6.1 to develop portlets, in one of my portlets I have a case in which I need to skip validation after I change the value selected in a dropdown menu. I'm using 'onchange="submit()"' and a valueChangeListener attributes of the dropDownMenu to populate some fields in the same page, but when the form submitted the fields were validated and many validation errors appeared, how can I skip validation in this case and avoid the appearance of the error messages.

can anyone give me a hand?

Thank you for help in advance.
 
Jason Irwin
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have done this with autosubmit="true" and immediate="true" using MyFaces.
"autosubmit" means the change will get posted as soon as it is made (like your onchange) and "immediate" will skip validation when the value is "true".

I think RAD/WAS should offer something similar.

HTH,

J.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic