Hi Michael, thanks for your response. Ok, it makes sence and it works!
Thanks Marcus 2010/7/13 Michael Kurz <[email protected]> > Why do you need to put f:event into f:metadata? If you put it outside this > works like a charm. I didn't look into the details but I think f:metadata is > not processed for all requests. > > As you want to register this listener to the view root it should be a child > of f:view (or at least a "top level" tag if you don't use f:view). > > regards > Michael > > Am 13.07.2010 14:37, schrieb Marcus Büttner: > > Hi, >> >> is there a possiblity to trigger PreRenderView event when I navigate via >> action to another page? >> >> small example: >> I'm on page1.xhtml an there's a button: >> >> <h:commandButton action="page2"/> >> >> page2.xhtml includes: >> >> <f:metadata> >> <f:event type="preRenderView"/> >> </f:metadata> >> >> When I use the button then page2 is shown but the PreRenderView event is >> not >> triggerd. The metadata section is only processed in restore view phase. So >> the event is triggerd with method GET or with POST without switching page. >> Is it possible to trigger this event when I navigate via action? >> >> Thx, regards Marcus >> >>

