JSF2 Action parameter

前端 未结 3 1821
名媛妹妹
名媛妹妹 2020-12-03 02:03

I have read about passing parameters from jsf page to managedbean through actionListener. Is it also possible to pass a parameter to a simple action method?

Thank y

3条回答
  •  一生所求
    2020-12-03 02:47

    The new spec. JSF2 allows that the action method receives a param so you be able to do

    
    

    at the ManagedBean the method will be:

    public String action(Object complexObject)
    

    *Note: make sure you include the “el-impl-2.2.jar” *

提交回复
热议问题