Is there a specific reason you need two forms on the page?
Can't you have a single form and a corresponding bean instead and based on the data submitted, decide how to process the response in the corresponding server side method?
Multiple forms on a single page is usually not a very desirable design, unless you are doing that for a very specific reason.
Ravi Iyer wrote:Multiple forms on a single page is usually not a very desirable design, unless you are doing that for a very specific reason.
I was not aware of that. Why is it so? I have had many occasions when I have used multiple forms on one html page without problems and have never attempted to make just one single form to accomplish everything. So why are multiple forms considered bad design? Can you give us an example where it causes problems?
Gautam Ry: Could you show us your code? Maybe we can see what the problem is. One thing that comes to mind immediately is that you can not nest the forms i.e. it is not allowed to have a form inside a form. So are your forms separeted as they should be?
Joined: Dec 30, 2008
Thanks for your response.
My code is below
Joined: Apr 15, 2008
I can see why it is hard to debug this code
Your second form has a commandButton but it is hidden so I guess it too is not used to send the form the normal way. And I do not see how the form is sent at all but that may be because I do not know how the tags you use (I am not familiar with the IBM taglibs at all) work behind the scenes (do they send the form using ajax or what?).
Two observations, however:
2. Almost never is it a good idea to use JSTL on a JSF View. And, if you scan some of the pleas for help people have made in this forum, you might even get the impression that JSTL is more trouble than it's worth when mixed with JSF.
Customer surveys are for companies who didn't pay proper attention to begin with.