I need to set a dynamic page title to the page which is retrieved after preRenderView & preRenderComponent’s listeners inside document body have been executed. But I find that title is rendered before those listeners were executed.
Is there any way I could delay the rendering of title tag until listeners have executed ?
Ok, I tried following strategy as a workaround. I just move
f:event type="preRenderComponent"..from insidebodytoheadsection & I get the desired behavior.master template:
First listener method is invoked & then
titleinsideheadis rendered.Perhaps
PreRenderViewtype could have been used directly without requiring to move thef:eventtag to head butPreRenderViewis triggered even on ajax requests which is not desired.