Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1308

org.apache.myfaces.shared.util._ComponentUtils.findNestingForm() needs to support af:form

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.2
    • 1.1.4
    • General
    • None
    • h:commandButton is used inside af:form

    Description

      Martin Denham wrote,
      =========
      Here is the error:
      com.sun.facelets.FaceletViewHandler handleRenderException
      SEVERE: Error Rendering View[/user/test.xhtml]
      java.lang.IllegalArgumentException: Component submit must be embedded in an form

      at org.apache.myfaces.shared_impl.renderkit.html.HtmlButtonRendererBase.buildOnClick(HtmlButtonRendererBase.java:173)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlButtonRendererBase.encodeEnd(HtmlButtonRendererBase.java:120)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
      =========

      org.apache.myfaces.shared.util._ComponentUtils.findNestingForm() needs to support af:form. One possibility – Use component-family instead of 'instanceof UIForm.'

      Attachments

        Activity

          People

            imario Mario Ivankovits
            mkienenb Mike Kienenberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: