ICEfaces
  1. ICEfaces
  2. ICE-8180

ace:ajax - PropertyNotFoundException thrown

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0.BETA1
    • Fix Version/s: 3.1.0.RC1, 3.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 3.1.0 BETA1
    • Assignee Priority:
      P2
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Defining the param outside the ui:include works around this issue. Eg.

              <h:form id="iceForm">
                  
                  <ui:include src="table.xhtml"/>
                  <ui:param name="backingBean" value="#{testBean}"/>

              </h:form>

      Where the param is also identically defined in table.xhtml.
      Show
      Defining the param outside the ui:include works around this issue. Eg.         <h:form id="iceForm">                          <ui:include src="table.xhtml"/>             <ui:param name="backingBean" value="#{testBean}"/>         </h:form> Where the param is also identically defined in table.xhtml.

      Description

      A PropertyNotFoundException is thrown when setting the listener attribute thats managed bean is set via a ui:param tag. The ace:ajax tag is set for a row select event for an ace:dataTable. The table code is being included in a main page via a ui:include. The included table page sets a ui:param name="'backingBean" thats value is the managed bean.

      The ace:dataTable uses the same param and works correctly. When a row is selected the ace:ajax tag fires its listener and throws the following error:

      Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'backingBean' resolved to null
      at org.apache.el.parser.AstValue.getTarget(AstValue.java:98)
      at org.apache.el.parser.AstValue.invoke(AstValue.java:244)
      at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
      at org.icefaces.ace.component.ajax.AjaxBehavior.broadcast(AjaxBehavior.java:170)
      at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:760)
      at javax.faces.component.UIData.broadcast(UIData.java:1071)
      at org.icefaces.ace.component.datatable.DataTable.broadcast(DataTable.java:220)
      at javax.faces.component.UIData.broadcast(UIData.java:1093)
      at org.icefaces.ace.component.datatable.DataTable.broadcast(DataTable.java:220)
      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)

        Issue Links

          People

          • Assignee:
            Mark Collette
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: