javax.faces.FacesException: Nested form found on the page. The form action element can not be nested

ICEsoft JIRA Issue Tracker | Judy Guglielmin | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    with the facelet page :- <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" template="layout/template.xhtml"> <ui:define name="body"> <h:messages globalOnly="true" styleClass="message" id="globalMessages"/> <ice:form id="testEditTemplate" styleClass="edit"> <ice:panelGroup styleClass="edit"> <s:decorate template="layout/display.xhtml"> <ui:define name="label">firstName</ui:define> <h:inputText id="firstName" value="first testValue using s:decorate"/> </s:decorate> <ui:decorate template="layout/display.xhtml"> <ui:define name="label">firstName</ui:define> <h:inputText id="firstName" value="second testValue using ui:decorate"/> </ui:decorate> </ice:panelGroup> </ice:form> </ui:define> </ui:composition> and the following template:- <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"> <div class="prop"> <span class="name"> <ui:insert name="label"/> </span> <span class="value"> <ui:insert/> </span> </div> </ui:composition> either instance (the s:decorate and the ui:decorate) do not understand the flowthrough of the class="value" of the template and get the following error:- 18:07:43,803 ERROR [D2DFaceletViewHandler] Problem in renderResponse: Nested form found on the page. The form action element can not be nested javax.faces.FacesException: Nested form found on the page. The form action element can not be nested at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:362) at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:365) at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:365) at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:365) at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:365) at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.encodeBegin(FormRenderer.java:83) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)

    ICEsoft JIRA Issue Tracker | 10 years ago | Judy Guglielmin
    javax.faces.FacesException: Nested form found on the page. The form action element can not be nested
  2. 0

    with the facelet page :- <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" template="layout/template.xhtml"> <ui:define name="body"> <h:messages globalOnly="true" styleClass="message" id="globalMessages"/> <ice:form id="testEditTemplate" styleClass="edit"> <ice:panelGroup styleClass="edit"> <s:decorate template="layout/display.xhtml"> <ui:define name="label">firstName</ui:define> <h:inputText id="firstName" value="first testValue using s:decorate"/> </s:decorate> <ui:decorate template="layout/display.xhtml"> <ui:define name="label">firstName</ui:define> <h:inputText id="firstName" value="second testValue using ui:decorate"/> </ui:decorate> </ice:panelGroup> </ice:form> </ui:define> </ui:composition> and the following template:- <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"> <div class="prop"> <span class="name"> <ui:insert name="label"/> </span> <span class="value"> <ui:insert/> </span> </div> </ui:composition> either instance (the s:decorate and the ui:decorate) do not understand the flowthrough of the class="value" of the template and get the following error:- 18:07:43,803 ERROR [D2DFaceletViewHandler] Problem in renderResponse: Nested form found on the page. The form action element can not be nested javax.faces.FacesException: Nested form found on the page. The form action element can not be nested at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:362) at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:365) at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:365) at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:365) at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:365) at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.encodeBegin(FormRenderer.java:83) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)

    ICEsoft JIRA Issue Tracker | 10 years ago | Judy Guglielmin
    javax.faces.FacesException: Nested form found on the page. The form action element can not be nested

    Root Cause Analysis

    1. javax.faces.FacesException

      Nested form found on the page. The form action element can not be nested

      at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm()
    2. com.icesoft.faces
      FormRenderer.encodeBegin
      1. com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:362)
      2. com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:365)
      3. com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:365)
      4. com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:365)
      5. com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.validateNestingForm(FormRenderer.java:365)
      6. com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.encodeBegin(FormRenderer.java:83)
      6 frames
    3. JavaEE 7
      UIComponentBase.encodeBegin
      1. javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)
      1 frame