webtier@glassfish.java.net

faceletContext-> getFacesContext() -> getResponseWriter() is null --- WHY?

From: <webtier_at_javadesktop.org>
Date: Thu, 19 Nov 2009 12:09:30 PST

using: facelets, jsf2, tomcat

I am creating a TagHandler and I want to write back something through responseWriter().

When using UIComponent subclass, I can do this:

ResponseWriter writer = facesContext.getResponseWriter();
writer.startElement("table", component); //bla bla bla


But why is faceletContext-> getFacesContext() -> getResponseWriter() NULL in TagHandler. How can i achieve what I am looking for?

[b]Observation: [/b]
In TagHandler: com.sun.faces.context.FacesContext
In UIComponent: javax.faces.context.FacesContext.
[Message sent by forum member 'tahirraza' ]

http://forums.java.net/jive/thread.jspa?messageID=372584