You need to sign in to do that
Don't have an account?

Making field required
Hi I have a vfPage and it has three command buttons to rerender the three output panels containing textboxes.. and I want to make these textboxes required on the basis of the output panel being selected via the command button selection..
Action region not helping
Keep Required = True
add immediate = true.
In this piece of code could you please tell as to iff I have to use it in the top three or the command buttons inside the panels?
LOL...... Nothing like that I just read the document carefully ;)
Here is a description about the immediate attribute :
A Boolean value that specifies whether the action associated with this component should happen immediately, without processing any validation rules associated with the fields on the page. If set to true, the action happens immediately and validation rules are skipped. If not specified, this value defaults to false.
This means basically it will skip any page validation and additionally no setter will be called. So You should mark all the commandbutton, which doesnt depend on page data to process something as immediate = true
Hello,
Just my 2cents, but required + immediate is quite a headache, it's not too well documented and sometimes it doesn't work as intended(I had a similar problem, see my posts).
I would remove required from the page(also immediate) and move the validations to the commandbuttons actions - serverside. In case your needed field doesn't have a value throw a message to the user using pagemessages or addError, or build a custom error String etc
Thanks,
Adrian