Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Process Manager (Stardust) » Using Form(s) in a Portal View(How to use (multiple) forms in a portal view)
Using Form(s) in a Portal View [message #1082325] Thu, 08 August 2013 12:15 Go to next message
Simon Nikles is currently offline Simon NiklesFriend
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 12: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 07:16 Go to previous message
Vikash Pandey is currently offline Vikash PandeyFriend
Messages: 12
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>

Previous Topic:Context initialization failed
Next Topic:Install trouble
Goto Forum:
  


Current Time: Tue Mar 19 14:04:50 GMT 2024

Powered by FUDForum. Page generated in 0.03100 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top