On 8/10/06, Mak Nern Fatt Melvin <[EMAIL PROTECTED]> wrote:
Yes you are right Mike. I need to put the child section in another form due to selective validation. I do not want the parent components to be validated or reloaded when the child section is been submitted. You talked of a workaround, so is that a way that i can use a single form but attain selective validation n reloading of child and parent data respectively?
Yes, but it's a tricky subject :-) If this is your only case of selective validation, you can mark both the child add button and the child input field as immediate="true" and they will validate independently of the other elements. If it's more complicated than that, the most common way to solve the problem is to use a subform component. There's one available in the MyFaces Tomahawk sandbox and I think there's also one available as part of Oracle ADFFaces (also available as MyFaces Trinidad which is a source code dump of ADFFaces undergoing incubation at Apache). If you're not already using ADFFaces, I'd recommend using the sandbox one instead. http://myfaces.apache.org/sandbox/subForm.html

