myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan-Kees van Andel <>
Subject Re: PreRenderView Event with post navigation
Date Tue, 13 Jul 2010 13:55:05 GMT
Hi Marcus,

According to the JSF 2.0 spec, paragraph
"This tag must reside within the top level XHTML file for the given viewId,
not in a template."

Is this true in your case?

I've seen <f:metadata> work in the past...


2010/7/13 Michael Kurz <>

> 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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message