Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 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 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 Pandey
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:Stardust with rule engine (Drools)
Goto Forum:
  


Current Time: Thu Oct 30 16:07:02 GMT 2014

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

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