Hi

We could do this in two phases: 

Phase 1:  Adding in the rendererType as an attribute to the 1.4 version (curent)
Phase 2 : Altering TldToClayconfig to generate annotated Java files for version 
1.1.0 (I take it that will be the Java5 version)

For phase 2 we will need to discuss further to define what TldToClayconfig 
should generate.

Hermod

-----Original Message-----
From: Gary VanMatre [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 16, 2007 10:04 PM
To: dev@shale.apache.org
Subject: SV: Clay, Tomahawk and jscookmenu 


>Hi
>
>Ok, I'm finally having some spare time to look into this. It's no problem
>getting the rendererType from components that extend UIComponentTag. Now
>where do we want to put it in the clay-config?
>
>1. 
><component jsfid="view" componentType="javax.faces.ViewRoot"
>rendererType="....">
>
>2.
>  <component jsfid="view" componentType="javax.faces.ViewRoot">
>     <attributes>
>         ...
>         <set name=" rendererType " value="..." /> 
>         ...
>  </component>
>
>I would guess that 1 is the preferred choice, although that will mean that
>we need to change the dtd.
>

The second approach would be the best way to handle this.  The problem with the 
first solution is that we define converters, validators and listeners as 
"top-level" XML components.  The rendererType would just be clutter as a 
component attribute for anything but a component - the same as the facetName 
and id attributes.  I hindsight, these odd-ball component attributes should 
have been placed in the attributes container.  We might as well add the 
descriptions in the TLD to the Clay config too?

On a tangent, I would like to refactor the beans that hold this information 
into interfaces and implementations.  This discussion belongs in another thread 
but if Clay is given a GA grade with 1.0.4, I'd like to start moving the Clay 
trunk to depend on Java 1.5 and target JSF 1.2.  In order to support all of the 
JSF 1.2 features, we will need to commit to the new API's.  If we are locked 
into 1.5, we can look at annotations as our core metadata.  If this idea shakes 
out with the list, I'll need some help (hint, hint ;-).  Your TldToClayconfig 
plugin could be altered to generate Java source files with annotations too?

These are just some of my ideas.....  I'd like to here from others about the 
direction they would like to see Clay go...


>Hermod

Gary


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Reply via email to