-------------- Original message --------------
From: Mike Kienenberger <[EMAIL PROTECTED]>

> Jeremy,
>
> I'm not expert, but I think that the including is handled in the jsp
> compiler for your container, not by MyFaces. So you'll have to
> reinvent all of that work.
>
> It may be possible to do this using facelets since it doesn't use the
> jsp compiler. I know that the facelets tags are part of
> the facelets source code, so it might even be possible dynamically
> create these tags from facelets user code. Not sure though.
>
> If nothing else, the facelets compiler can provide you an alternative
> to decoding the jsp compiler source. Facelets is written
> specifically with JSF in mind, so that code should be friendlier to
> copy into your own applications.
>

Shale Clay will allow you to do this kind of thing too. 

But, I wonder if you could spoof it out.  It looks like the base UIComponentTag keeps a stack of components as it is processing the JSP.  If you you could pop a fake UIComponentTag on the stack associating it with an instance of your NamingContainer, you might be about to use a request.getRequestDispatcher("/my.jsp").include(request, response).   I don't know if it would work.  

Gary

> On 12/22/05, Jeremy Sager <[EMAIL PROTECTED]>wrote:
> >
> >
> >
> > Thanks in advance for any help on this one, I think it's a bit tricky.
> >
> >
> >
> > So, I have a HtmlPanelTabPane that I need to render the children of
> > dynamically, and I've gotten the binding down pat thanks in large part to
> > help from Martin M. So now I'm working inside of a java object instead of a
> > jsp…
> >
> >
> >
> > I've created the HtmlPanelTab children just fine, and now I am hoping that I
> > can import a jsp so I don't have to keep rendering child components with
> > java code instead of using the taglib like I want to.
> >
> >
> >
> > Now, since I know any import has to be done within an , I went
> > and figured out that a subview is a U INamingContainer, so I made one of
> > them…
> >
> >
> >
> > Now what? It doesn't seem like importing a page is built into any part of
> > faces for reasons I can't really figure out, so I'm stuck as to what I need
> > to do next. Do I have to get the external servlet context, find the jsp
> > writer, and figure out how to use import tag objects?
> >
> >
> >
> > Or, as I'm hoping, I'm not the first person to run into this challenge and
> > someone can tell me that it's easily solvable, or, even better, someone can
> > call me a dummy and show me that importing a page programmatically in faces
> > and I just missed the boat.
> >
> >
> >
> > Jeremy Sager
> >
> > Data Communications Product Manager
> >
> > Chesapeake System Solutions
> >
> > 410.356.6805 x120
> >
> > [EMAIL PROTECTED]
> >
> >

Reply via email to