3 Replies Latest reply on Jan 19, 2009 8:14 PM by Fab Mars

    a4j:commandButton and f:stPropertyActionListener

    Fab Mars Novice

      Hello
      I just upgraded to RF3.3.0 (+JSF RI 1.2.11, Facelets and Glassfish)


      I have fully read and understood this one: https://jira.jboss.org/jira/browse/RF-5606


      However I'm stuck with this code (it's inside a dataTable):

      <a4j:commandLink value="del" actionListener="#{blogEdit.doDeleteComment}" onclick="if (! window.confirm('Are you sure?') ) {return false}" reRender="comments">
       <f:setPropertyActionListener value="#{comment}" target="#{blogEdit.editedComment}" />
      </a4j:commandLink>



      I cannot use:
      a4j:actionparam name="comment" value="#{comment}" assignTo="#{blogEdit.editedComment}" actionListener="#{blogEdit.doDeleteComment}"/>

      because my object is not easily serializable.


      Does annyone have a workaround giving a way to trigger a listener after a setPropertyActionListener has ben triggered?

      Thanks.