Gary, It seems like a good idea, but there are still some gotchas.
There's no guarantee that the CommandButton's ActionEvent will be broadcast after the ValueChangeEvent from the UIInput. The value bindings also won't be performed since those happen in the update model phase. So, it'll help somewhat so long as you only directly read the values from the component. That's a step up from reading the form request values. Probably the best that can be done in the current JSF model. -Mike On 8/4/05, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > I don't have any answers yet, but I'm having the same issue. > > > > On 8/4/05, Eric Kelm <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > > > I am having a problem with a form in an application I am working on and > > > was > > > wondering if anyone else had the problem. I have a large form that is > > > part > > > of a tabbed pane, where there are many form fields that are required > > > (required="true"). Within this form I have a place where a user can enter > > > information in 2 of the form fields and click an "Add" button which adds > > > values from the 2 form fields to a backing bean. The problem lies in that > > > if any of the other fields on the form are required, this "add" function > > > will fail due to failed form validations. I cannot make the "Add" button > > > immediate="true" because this bypasses the apply request values phase if I > > > understand correctly. Any suggestions would be appreciated. Thanks in > > > advance. Hope this makes sense. > > > > > > I think that section 2.2.2 in the JSF 1.1 Specification talks about this. If > I'm reading this correctly, components that implement the EditableValueHolder > interfaces and have the immediate attribute set to true will cause the > conversion and validation to happen in the Apply Request Values phase where > it is normally triggered in the Process Validations. > > I knew the effect of the immediate flag on components realizing ActionSource > but had not realized it was on the EditableValueHolder too. > > Maybe you could use the immediate="true" on the command button and your 2 > input fields? > > Gary > > > > > > > > --------- > > > Eric Kelm > > > Developer, VSG Worldwide LLC > > > 510 Spur 63 > > > Longview, TX 75601 > > > > > > > > > > > > > > > > > >

