| Using Form(s) in a Portal View [message #1082325] |
Thu, 08 August 2013 08:15  |
Simon Nikles Messages: 3 Registered: February 2013 |
Junior Member |
|
|
Hi,
I need multiple forms in one view but the content of views is already loaded into a "ice:form", thus defining forms in the view leads to a faces exception ("Nested form found on the page").
Is there a way to overcome this problem?
The example view in the documentation Using the portal framework defines an "ice:form" tag. However, i got the same error with the given view-xhtml.
Thanks,
Simon
[Updated on: Thu, 08 August 2013 08:15] Report message to a moderator
|
|
|
| Re: Using Form(s) in a Portal View [message #1084886 is a reply to message #1082325] |
Mon, 12 August 2013 03:16  |
Vikash Pandey Messages: 4 Registered: October 2011 |
Junior Member |
|
|
Nesting of forms is not permitted, but one can add as many form as needed in a view, like:
<ice:outputHtml >
<ice:outputHead>
...
</ice:outputHead>
<ice:outputBody>
<ice:form id="#{EnterEmpDataBean.formId}">
.......
</ice:form>
<ice:form id="myForm">
....................
</ice:form >
</ice:outputBody>
</ice:outputHtml>
.
The code below will fail with:
javax.servlet.ServletException: java.lang.Exception: javax.faces.FacesException: Problem in renderResponse: Nested form found on the page. The form action element can not be nested
<ice:outputHtml >
<ice:outputHead>
...
</ice:outputHead>
<ice:outputBody>
<ice:form id="#{EnterEmpDataBean.formId}">
.......
<ice:form id="myForm">
....................
</ice:form >
</ice:form>
</ice:outputBody>
</ice:outputHtml>
|
|
|
Powered by
FUDForum. Page generated in 0.01379 seconds