2 Replies Latest reply on Oct 24, 2007 2:28 PM by Arbi Sookazian

    passing variables to a SFSB method from JSF component

    Arbi Sookazian Master

      Is it possible to pass variables to a SFSB from a JSF as follows?:

       <f:facet name="header">Account Approved?</f:facet>
       <h:selectOneRadio value="#{myRow[1].icomsAccountApproved}" onclick="processNote(this, #{myAuditList.getRowIndex()}, 'accountApproved')">
       <f:selectItems value="#{securityAuditAction.securityAuditRadioButtons}" />
       <h:graphicImage value="/img/icon_edit.gif" onclick="editNote(this);" rendered="noteAction.checkGraphic(#{myAuditList.getRowIndex()}, 'accountApproved')"/>

      I'm interested in showing/hiding the graphic based on ceratin conditions that will be evaluated in the SFSB method call. Is that the proper way to pass two variables to the SFSB method?

      Also, I will need to do this evaluation on page rendering for several of these same graphics for multiple cells in the dataTable. The purpose of the graphic is to allow the user to edit an existing comment they had previously entered. Thus, the graphic only displays once they have entered a comment/note for that particular cell. thx.