Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP 2.0 as JSF component encoders - continued

843842Jun 30 2003 — edited Jul 4 2003
This 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>
&nbsp;&nbsp;<renderer>
&nbsp;&nbsp;&nbsp;&nbsp;<renderer-type>Component1Renderer</renderer-type>
&nbsp;&nbsp;&nbsp;&nbsp;<decoder>decoder.Component1Decoder</decoder>
&nbsp;&nbsp;&nbsp;&nbsp;<encoder type="SimpleTagHandler">encoder.Component1EncoderTag</encoder>
&nbsp;&nbsp;</renderer>
</render-kit>

If the encoding was with a tag file:

<render-kit>
&nbsp;&nbsp;<renderer>
&nbsp;&nbsp;&nbsp;&nbsp;<renderer-type>Component1Renderer</renderer-type>
&nbsp;&nbsp;&nbsp;&nbsp;<decoder>decoder.Component1Decoder</decoder>
&nbsp;&nbsp;&nbsp;&nbsp;<encoder type="TagFile">/WEB-INF/tags/component1Encoder.tag</encoder>
&nbsp;&nbsp;</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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 1 2003
Added on Jun 30 2003
3 comments
61 views