Meaningless Drivel is fun!*
The moose likes JSF and the fly likes Avoid Data Validation during Page Rendering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Avoid Data Validation during Page Rendering" Watch "Avoid Data Validation during Page Rendering" New topic
Author

Avoid Data Validation during Page Rendering

Bishal Ghimire
Greenhorn

Joined: Feb 01, 2011
Posts: 26

Hi,

I am having problem with page rendering. I want part of the page gets rendered while clicking a check box. It is rendering as it is supposed to but in addition, it is validating the whole page fields above the checkbox (might do below also, I don't have any fields after the checkbox). I have been using rich:ajaxvalidator for fields above the checkbox.

The code I am using for rendering part of page after clicking check box is:




Any help would be appreciated!
Bishal Ghimire
Greenhorn

Joined: Feb 01, 2011
Posts: 26

Forgot to mention, I am talking in the context of JSF 1.2 and RichFaces.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15957
    
  19

'ajaxSingle="true"' on the control will limit the form data that is transmitted (and therefore validated) to just the control in question.


Customer surveys are for companies who didn't pay proper attention to begin with.
Bishal Ghimire
Greenhorn

Joined: Feb 01, 2011
Posts: 26

Thank you, Tim. That resolved the problem.
 
jQuery in Action, 2nd edition
 
subject: Avoid Data Validation during Page Rendering
 
Similar Threads
disabled issue for inputtext
selectManyCheckbox
JSTL and bean data
Setter not getting called for a JSF inputText rendered component upon Ajax reRendered
Rich:Datatable rerendering problem