Invoke JSF managed bean action on page load

前端 未结 4 2342
别跟我提以往
别跟我提以往 2020-11-22 13:16

Is there a way to execute a JSF managed bean action when a page is loaded?

If that\'s relevant, I\'m currently using JSF 1.2.

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-22 13:44

    calling bean action from a will be a good idea,keep attribute autoRun="true" example below

    
    

提交回复
热议问题