Perhaps a good strategy would be to add bindings to all the form elements
you need to validate and a hidden form element at the bottom of the page and
perform a backing-bean validation on this hidden element. You can validate
all the values in the bound form elements at one time and as complicated
business logic as you need.

-----Original Message-----
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 26, 2006 6:20 AM
To: MyFaces Discussion
Subject: partial validation of value

Hello,

is it possible to handle partial validation of form content? I need 1 or
several items in a forms to be valid at a specific submit, but as it is only
a request for partial change in the form, it is most probable the rest is
not valid / finished. However, i need to keep information in rest of form
even if it's not valid.

Here is how my form must look like:


data1 [.....]
data2 [.....]
data3 [.....]
  subdata1.... (read-only)
  subdata2.... (read-only)
  subdata3.... (read-only)
  subdata4 [......]  [add-subdata-button]
data4 [.....]
data5 [.....]
[submit]

when i click add-subdata-button, i need subdata4 to be validate, but textual
content of data 1 -> 5  must be kept without any validation attempt.
when i click submit, data 1->5 must be validated, but content of
subdata4 ignored.

I suppose the JSF framework has something for this, but am not sure what.

Reply via email to