Hi,

Try setting the breakpoint in createView. Facelets differs from JSP at VDL
level by loading the view in the createView method, not renderView. If
renderView pushes nothing on the client, it should be because the component
tree is empty. You could add a PhaseListener to your application and inspect
the component tree in the before render phase to be sure that it's what's
happening.


~ Simon

On Wed, Jun 16, 2010 at 9:11 AM, Leis, Matthias - SID-NLKM <
[email protected]> wrote:

> Hi Jakob,
>
> Yes, I am using spring :)
> The Application uses org.springframework.faces.webflow.FlowViewHandler,
> which has a delegate: org.apache.myfaces.application.ViewHandlerImpl
>
> I set a break point in the method renderView().
> My guess is, that in renderView(FacesContext context, UIViewRoot view) of
> org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage the "writer"
> writes nothing. The ByteArrayOutputStream deep under this writer only
> contains zeros. But honestly, I don't know what going on there ;). I also
> noticed that the boolean "writtenState" evaluates to false.. But I don't
> really know what this means in this context.
>
> But we can say, that Spring isn't messing with MyFaces because it delegates
> to MyFaces' ViewHandler, right?
>
> Regards,
>
> Matthias
>
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:[email protected]] Im
> Auftrag von Jakob Korherr
> Gesendet: Mittwoch, 16. Juni 2010 14:33
> An: MyFaces Discussion
> Betreff: Re: MyFaces 2.0.0 - removing facelets results in blank page
>
> Hi,
>
> I guess you are using Spring, right? Maybe there is some Spring
> configuration messing with the JSF 2.0 ViewHandler.
>
> Or did you disable the JSF 2.0 facelets support via
> javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER?
>
> If not, you could try to find out which ViewHandler your application really
> uses (via facesContext.getApplication().getViewHandler()). It should be
> org.apache.myfaces.application.ViewHandlerImpl. If it really is
> ViewHandlerImpl, you could try to set a debug point into
> ViewHandlerImpl.renderView() and see what happens.
>
> Regards,
> Jakob
>
> 2010/6/16 Leis, Matthias - SID-NLKM <[email protected]>
>
> > Hi!
> >
> > I am using MyFaces 2.0.0. Today I noticed, that jsf-facelets.jar was
> > still in my libs, so I removed it. I also removed the corresponding
> > view-handler configuration in faces-config.xml. Now I am getting a blank
> > page whenever I try to access my application.
> >
> > I think two DEBUG-Messages could be interesting:
> > 14:00:08,226 DEBUG [JsfView] Asking view handler to render view
> > 14:00:08,226 DEBUG [JsfView] View rendering complete
> >
> > So there is a view-handler, but it seems to do nothing (also look at the
> > time stamp).
> >
> > Any suggestions are appreciated :)
> >
>
>
>
> --
> Jakob Korherr
>
> blog: http://www.jakobk.com
> twitter: http://twitter.com/jakobkorherr
> work: http://www.irian.at
>

Reply via email to