2 Replies Latest reply: Dec 7, 2012 2:35 AM by Daniel Merchán RSS

    using af:setActionListener in custom template of content presenter

      Hi All,

      I am trying to create a custom template for displaying multiple contents information.
      we have to display the images as button when user clicks any image the content id should be stored.
      i tried to use setactionlistener for setting content id in java class attribute content, but getting error as bean unreachable.
      this is the code i tried

      <dt:contentListTemplateDef var="nodes">
      <af:panelGroupLayout id="pgl2" layout="vertical">
      <af:iterator id="i1" var="node" value="#{nodes}">

      <af:commandImageLink icon="#{node.url.renderUrl}" id="sjkgf" >

      <af:setActionListener from="#{node.propertyMap['dDocName'].value}"

      </af:iterator> </af:panelGroupLayout>

      error log is---
      <SetActionListener> <processAction> Error setting:'#{pageFlowScope.imageBean.contentId}' to value:IMAGE001 from:'#{node.propertyMap['dDocName'].value}'
      javax.el.PropertyNotFoundException: Target Unreachable, 'imageBean' returned null.

      what could be the problem.


      when i try same code in jspx page(with hardcoded value of from in setactionlistener its working).