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

setPropertyActionListener cannot be nested within facelets tag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.0-beta
    • None
    • JSR-314
    • None
    • facelets

    Description

      nesting setPropertyActionListener like this:

      <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:test="http://j4fry.org/test"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      <body>
      <h:form>
      <test:button value="test">
      <f:setPropertyActionListener value="test" target="#

      {myBean.test}" />
      </test:button>
      #{myBean.test}

      </h:form>
      </body>
      </html>

      produces this error:

      <f:setPropertyActionListener> Parent is not composite component or of type ActionSource, type is: javax.faces.component.html.HtmlForm@366ef7ba

      When using this taglib.xml and tag from doc-root/META-INF:

      <!DOCTYPE facelet-taglib PUBLIC
      "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
      "http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
      <facelet-taglib>
      <namespace>http://j4fry.org/test</namespace>
      <tag>
      <tag-name>button</tag-name>
      <source>button.xhtml</source>
      </tag>
      </facelet-taglib>

      <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      <ui:composition>
      <h:commandButton value="test">
      <ui:insert />
      </h:commandButton>
      </ui:composition>
      </html>

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              ganesh.jung Ganesh Jung
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: