0 Replies Latest reply on Jun 12, 2009 8:58 AM by christo976

    setPropertyActionListener

      Hi,

      I'm trying the set a value to a backing bean when clicking on a commandLink.
      Unfortunately the value is never set.

      Any idea why ?

      Thanks

      Chris


      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
      
       <ui:composition>
      
       <rich:panel>Test Page</rich:panel>
      
       <a4j:commandLink id="deletelink">
       <h:graphicImage value="/images/icons/delete.gif" style="border:0"/>
       <f:setPropertyActionListener value="5" target="${assetCtrl.currentRow}" />
       <rich:componentControl for="deletePanel" attachTo="deletelink" operation="show" event="onclick"/>
       </a4j:commandLink>
      
      
       <rich:modalPanel id="deletePanel" autosized="true" width="200">
       <h:outputText value="${assetCtrl.currentRow}" />
      
       </rich:modalPanel>
      
       </ui:composition>
      
      </html>