I\'m using Primefaces in a JSF 2 application. I have a
, and instead of selecting rows, I want the user to be able to directly execute variou
Thanks to this site by Mkyong, the only solution that actually worked for us to pass a parameter was this
with
public String editAction() {
Map params =
FacesContext.getExternalContext().getRequestParameterMap();
String idString = params.get("myId");
long id = Long.parseLong(idString);
...
}
Technically, that you cannot pass to the method itself directly, but to the JSF request parameter map
.