The goal with JSF 1.2's rendering is that the ViewHandler, while it builds the view, shouldn't render anything at all. So using JSP as your view or Facelets as your view, the act of evaluating those artifacts shouldn't push anything to the response.

Once you have the full component tree from a JSP or Facelet, you can commit to rendering the whole thing:

uiViewRoot.renderAll(facesContext);

Or, only some of it with (specifically a known clientId):

uiViewRoot.invokeOnComponent(faces, clientId, new ContextCallback() {
  public void invokeContextCallback(FacesContext ctx, UIComponent c) {
     c.renderAll(ctx);
  }
});

Mike Kienenberger wrote:
I think there may be a LiteralText or LiteralTextBlock element in
facelets.   Whether it's internal only or available as a public
component, I don't know.

On 9/22/06, Thomas Spiegl <[EMAIL PROTECTED]> wrote:
Is there a new component in JSF 1.2 to store HTML output?


On 9/22/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> Like JSP 1.2, Facelets builds the tree before rendering.   Facelets
> might even have originated the idea :-)
>
> On 9/22/06, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> > In JSF1.2, the tree is built before the rendering happens - so
> > everything that is plain HTML is converted into a part of the
> > component tree anyways. Maybe we should just wait for this to happen
> > ;) ?
> >
> > Facelets is another question. No clue.
> >
> > regards,
> >
> > Martin
> >
> > On 9/22/06, Gerald Müllan <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > just played around a little bit with our new approach from ernst and
> > > got aware of some problems which might not be that easy to solve.
> > >
> > > The main issue is that actually a part of the component tree is
> > > rendered out which is embedded inside the ppr tag. If there is any
> > > view related stuff apart from components - e.g. in jsp verbatim tag (i > > > know this is ugly, but the issue should be the same in facelets) - it
> > > is not rendered out.
> > >
> > > Ok, we could handle this with simple outputText in some cases, but
> > > that should not be the end of the story.
> > >
> > > Just discussed with thomas about it, and actually we don`t really get > > > a good idea out, how to solve it. So, any ideas regarding it are warm
> > > welcome :)
> > >
> > > regards,
> > >
> > > Gerald
> > >
> > > --
> > > http://www.irian.at
> > >
> > > Your JSF powerhouse -
> > > JSF Consulting, Development and
> > > Courses in English and German
> > >
> > > Professional Support for Apache MyFaces
> > >
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>


--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



Reply via email to