In the future, for general usage questions (as long as they aren't
specific to MyFaces),
please direct your emails to webtier_at_glassfish.dev.java.net.
To answer your question for JSF 1.1, you can use Tomahawk's
t:updateActionListener.
If you're using JSF 1.2, then you can use the standard
f:setPropertyActionListener.
jvnk wrote:
> How can I send parameter using <h:commandButton.
>
> Loop thru all the employees and display in the table. When I click on the
> employee name, I want the respective emp id to be passed to the managed
> bean.
>
> I read that we can’t use <f:param in <h:commandButton. How can I achieve
> this functionality.
>
> <f:view>
>
> <h:form id="srchrsltsForm">
>
> <h:dataTable id="srchrslts" value="#{subSearchBean.empInfo}"
> var="empResults">
>
> <h:column>
>
> <f:facet name="header"><h:outputText
> value="{empResults.empName}"/></f:facet>
>
> <h:commandButton value="Employee Name"
> action="#{subSearchBean.empAction}">
>
> <f:param value="empid" name="#{empResults.empID}"/>
>
> </h:commandButton>
>
> </h:column>
>
> </h:dataTable>
>
> </h:form>
>
> </f:view>
>
>
> Thanks,
> Nag
>
>