jsf 2 - JSF Unknown System Events -


i working on jsf 2.0 project, , learning benefits of using system events. however, book i'm referencing 'core java server faces 3rd edition' lists total of 14 system event types can used in f:event tag's type attribute. of them work expect, e.g. "prerendercomponent" on uicomponent tag, or "prerenderview" on uiviewroot tag. but, besides two, , select few others, none of other events mentioned in book work. example, can't postrestorestate type of event work on uicomponent. instead, when jsf tries render page, classnotfound exception, presumably system event class supposed handle postrestorestate events, or whatever event i'm trying listen for.

why don't these other event types work? there other library need, or there other way of implementing system event listener need use. below example of 1 such tag failing:

            <h:commandlink                 action="editplant"                 value="#{appmessages.usersnavigationaddplant}"                 styleclass="#{usersession.selectedstyle}"                 >                 <f:event type="postrestorestate" listener="#{usersession.setselectedstyle()}" />             </h:commandlink>  

it appears need full class name:

<f:event type="javax.faces.event.postrestorestateevent" listener="#{bean.postrestorestate}"/> 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -