4 ways to pass parameter from JSF page to backing bean

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 :

  1. Method expression (JSF 2.0)
  2. f:param
  3. f:attribute
  4. 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");




From Other Resources :



0 comments:

Post a Comment

Popular Posts