Hello Kevin,
maybe you could use the "param" tag, like this
<h:commandButton id="validate" action="#{userAction.validateUser}">
<h:outputText value="#{msg.validate}"/>
<f:param name="id" value="#{user.id}"/>
</h:commandLink>
To get the parameter "id" in your bean, use:
FacesContext context = FacesContext.getCurrentInstance();
Map map = context.getExternalContext().getRequestParameterMap();
String employeeID = (String) map.get("id");
Hope it helps you,
Regards,
Richard Capraro
2006/11/13, kevin_zhai <[EMAIL PROTECTED]>:
hi expert:
If I use t:commandButton pass some parameter to back bean
excepte use t:inputHidden,
can I use some other method implements?
I try use f:attribute,but it's not support EL expression.
thanks
--
View this message in context:
http://www.nabble.com/help%2Cuse-t%3AcommandButton-pass-some-parameter-to-back-bean-tf2619256.html#a7309750
Sent from the MyFaces - Users mailing list archive at Nabble.com.