javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-1223

Facelet ui:param doesn't work in composite components (action)

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If i have a facelet file which includes a composite component and I want to pass ui:params for the action it doesn't work

      File a.xhtml includes my template myTemplate.xhtml. I want to pass parameters for an action

      <ui:include src="/pages/templates/myTemplate.xhtml">
            <ui:param name="resetAction" value="reset" />
            <ui:param name="bean" value="#{myBean}" />
      </ui:include>
      

      Following works / works not in myTemplate.xhtml:

      value is displayed

      <h:outputText value="Bean: #{bean}" />
      

      value is displayed

      <h:outputText value="resetAction: #{resetAction}" />
      

      Action doesn't work if i pass it into a compositeComponent

      <myCom:reset resetAction="#{bean[resetAction]}" />
      

      for a commandButton it works.

      <p:commandButton value="test reset" action="#{bean[resetAction]}" />
      

      If I don't add my composite component to a facelet tempalte the action also works:

      <myCom:reset resetAction="#

      {myBean.reset}

      " />

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              dasago
            • Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated: