4 ways to pass parameter from JSF page to backing bean
There are 4 ways to pass a parameter value from JSF page to backing bean :
- Method expression (JSF 2.0)
- f:param
- f:attribute
- f:setPropertyActionListener
Let see example one by one :
or to BackingBean as follows
FacesContext context = FacesContext.getCurrentInstance();
Map requestMap = context.getExternalContext().getRequestParameterMap();
String value= (String)requestMap.get("action");
FacesContext context = FacesContext.getCurrentInstance();
Map requestMap = context.getExternalContext().getRequestParameterMap();
String value= (String)requestMap.get("action");
From Other Resources :
0 comments:
Post a Comment