Hi, Mike,
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?
Thanks for
From: "Mike Kienenberger" <[EMAIL PROTECTED]>
Reply-To: "MyFaces Discussion" <[email protected]>
To: "MyFaces Discussion" <[email protected]>
Subject: Re: How to submit multiple forms
Date: Thu, 10 Aug 2006 11:08:26 -0400
>On 8/10/06, Mak Nern Fatt Melvin <[EMAIL PROTECTED]> wrote:
>>I cannot use a single form for my document because I have yet
>>another form
>>nested in-between the two forms. Please see the illustration below:
>
>There's no way you can submit two forms at the same time using the
>http protocol.
>The only thing you can do is copy all of the form data from the
>non-submitted form into hidden fields on your submitted form using
>_javascript_.
>
>>The child form is independent of the two parent forms and is the
>>child
>>section has to be nested in-between the parent forms due to
>>user-requirement. The save button has to save all the parent
>>components.
>>You have any more idea on this?
>
>The use of html forms is a technicial decision and should not affect
>any user requirements. This is particularly true in JSF where an
>h:form doesn't work the same way as a traditional html form -- it
>submits the previous values of all other forms on the page using
>hidden fields (but these are not the updated values). Unless the
>end-user is using "view source" there's no way they're going to know
>how the forms are laid out underneath, and I really doubt the
>end-users care how you structure your html form elements.
>
>The only use case I've seen for having multiple forms is to do
>selective validation, and even then, there are other ways to get
>around the issue.
>
>If you explain why you think you cannot have your child section in
>the
>same form as the rest of the components, maybe we can help you come
>up
>with a an alternate solution as trying to submit two forms at the
>same
>time is going to be a very difficult problem to solve.

