JSP 2.0 as JSF component encoders - continued
843842Jun 30 2003 — edited Jul 4 2003This is in continuation to this topic:
http://forum.java.sun.com/thread.jsp?forum=427&thread=414850&tstart=15&trange=15
As I look further into JSP 2.0, I am more and more sold to the idea of encoding JSF components thru JSP 2.0 tag files and/or SimpleTag handlers ...
Like, I was trying to figure out how could I derive the functionality of JSF facets from JSP tags - and the answer was amazingly straightforward - fragment attributes ... the tag could treat the fragments as facets while evaluating the body with its normal course ...
If the benefits of tag files/simple tag handlers are felt among the JSF team, I was wondering if the tag file/simple tag handler could be made part of the JSF rendererType paradigm?
I was wondering if it were a feasible idea to work in encoder-decoder pairs? The declarations in faces-config.xml for the renderers could be something along these lines:
If the encoding was with a simple tag handler:
<render-kit>
<renderer>
<renderer-type>Component1Renderer</renderer-type>
<decoder>decoder.Component1Decoder</decoder>
<encoder type="SimpleTagHandler">encoder.Component1EncoderTag</encoder>
</renderer>
</render-kit>
If the encoding was with a tag file:
<render-kit>
<renderer>
<renderer-type>Component1Renderer</renderer-type>
<decoder>decoder.Component1Decoder</decoder>
<encoder type="TagFile">/WEB-INF/tags/component1Encoder.tag</encoder>
</renderer>
</render-kit>
The above may all be very far fetched but I thought I'd just put across what I had in mind.
Thanks!