[jboss-user] [JBoss Seam] - passing variables to a SFSB method from JSF component
asookazian
do-not-reply at jboss.com
Mon Oct 22 17:29:41 EDT 2007
Is it possible to pass variables to a SFSB from a JSF as follows?:
<h:column>
| <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:selectOneRadio>
| <h:graphicImage value="/img/icon_edit.gif" onclick="editNote(this);" rendered="noteAction.checkGraphic(#{myAuditList.getRowIndex()}, 'accountApproved')"/>
| </h:column>
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097638#4097638
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097638
More information about the jboss-user
mailing list