Should have read the documentation again *shame on me" - read it once in early stage, but doc is changing of cause and i have missed the dependency of the default mapping controller naming scheme and my beans are not named to comply the default mapping, after changing that it works.
My fault, sorry, - works now :-( Torsten Am Freitag, den 15.12.2006, 18:09 +0000 schrieb Gary VanMatre: > >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 > > E-Mail-Nachricht-Anlage > > -------- Weitergeleitete Nachricht -------- > > Von: Torsten Krah <[EMAIL PROTECTED]> > > An: user@shale.apache.org > > Betreff: Re: ViewController.prerender() > > Datum: Fri, 15 Dec 2006 17:03:58 +0000 > > > > 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