>Thx for help.
>I got the point why prerender is not called - looking at the
>phaselistener there is following code in the beforeRenderResponse()
>method:
>
>...
> Map map =
>event.getFacesContext().getExternalContext().getRequestMap();
> String viewName = (String)
>map.get(FacesConstants.VIEW_NAME_RENDERED);
> if (viewName == null) {
> return;
> }
>...
>
>
>And sadly after debugging things, viewName is null when the condition i
>evaluated and the method returns immediately and the prerender code
>never gets called.
>
>So my questions is - why is the viewName null, any ideas?
>
That is odd. What is your viewId? If the ViewController cannot find a managed
bean
registered that maps to the view id, the viewName will be null.
The default view mapper will replace the "/" with "$" and remove the suffix.
If your
viewId is "/pages/myview.faces", you need a managed bean registred in the faces
config
with a managed-bean-name of "pages$myview".
Are you by chance using the Shale Remoting here or is this just a normal JSF
page?
>Torsten
Gary
--- Begin Message ---
Thx for help.
I got the point why prerender is not called - looking at the
phaselistener there is following code in the beforeRenderResponse()
method:
...
Map map =
event.getFacesContext().getExternalContext().getRequestMap();
String viewName = (String)
map.get(FacesConstants.VIEW_NAME_RENDERED);
if (viewName == null) {
return;
}
...
And sadly after debugging things, viewName is null when the condition i
evaluated and the method returns immediately and the prerender code
never gets called.
So my questions is - why is the viewName null, any ideas?
Torsten
smime.p7s
Description: S/MIME cryptographic signature
--- End Message ---