Alexander 'Alfe' Fetke wrote:
Hi, Werner ...
On Fri, 27 May 2005, Werner Punz wrote:
I have a form with lots of entry fields, in the form there is a tabbed pane
with four tabs all of them containing fields.
The JSF tabbed panes are implemented using a form themselves. HTML does
not allow forms within forms. Lots of strange things can happen if you do
not honor this aspect.
We had the problem the other way around: We wanted a form within a tabbed
pane. It would have been a special form for uploading files. We did not
succeed in putting it in a tabbed pane at all. Now we are doing the
upload-facility outside the tabbed pane.
In your case, consider whether it is possible to close the outer form just
above the tabbed pane and open a new form just below the tabbed pane.
That would render three independent forms as a result. That should work
(but of course could raise other problems).
I worked around the problem, by implementing a tabbing system with CSS
and a few lines of javascript, works better than any server side tabbing
system anyway, and you definitely dont run into the validation problems
and form limitations of html that way.
Depending on my time, I will try to componentize it and send it in to
the myfaces people.