The best solution available to handle these kinds of situations is the subForm component.
http://myfaces.apache.org/sandbox/subForm.html You can then selectively submit and validate parts of your form while leaving other inputs in a "submitted but not processed" state. I've tried writing a framework to handle it the way you proposed, but it's not worth the effort and has too many limitations. http://wiki.apache.org/myfaces/OptionalValidationFramework On 4/3/07, Marko Asplund <[EMAIL PROTECTED]> wrote:
I have a form where users can input data through text fields that are each accompanied with an icon the user can click to popup a select list window that will populate the corresponding text field value. This is similar to the date picker component functionality. When the user clicks on the select list popup icon I would need to update the current values of the other form fields to the model (which affect the select list content). Some components have the required attribute set which would result in validation phase failing if these fields haven't been filled by the user. The list item picker should allow empty values for required fields, however. What would be the best way to implement this sort of behaviour? One option I came up with was to create a custom Validator that would be registered for the required components. The validator would then conditionally allow missing values based on the processing state (allow empty values with list item picker action, disallow with form "submit"). How should the current processing state information be communicated to the validator? marko

