function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
NTNT 

Validation Rules runs on any action

Hi All,

 

 

I have a VF page with three pageBlocks. All these have their own buttons.

My problem is if any button is pressed from second pageBlock than all the

validation rules on first,second,third pageblock runs while I am rendering only the second pageBlock.

I want that only second pageBlock's validation rules should run when I press second pageBlock's button.

 

I am using the inputField on the page.

 

I can't change the inputField to inputText or any one else

and I can't use the immediate property also.

 

 

 

Any suggestion.

 

 

Nitin Gupta

Message Edited by NT on 05-20-2009 10:48 PM
Richie DRichie D

Not sure on this as I've not tried it but perhaps an ActionRegion around each Pageblock may help?

Have a look at ActionRegion in the VS documentation.

 

I'd be interested in the solution to this as I have come across similar problems as well and have used rendered attribute to actually hide the section I don't want to update when perhaps there is a way and keep everything on the screen..

 

R.

Richie DRichie D
Could try putting each PageBlock in its own form....
NTNT

Thank you

 

Yes, ActionRegion is working.

 

 

Regards,

Nitin Gupta