I have 4 JSF views and 1 managed bean. And I want to set type property of bean from view during render.According to this开发者_运维技巧 type value, I will have different kinds of operations. Does anyone has suggestions?
Thanks in advance!
On thing that comes to mind is to use four different methods, and initialize the field there to different values
<f:view beforePhase="#{bean.initFoo}">
精彩评论