My dream is avoid to use any configuration files at all, since with external configuration file component class must be syncronized with it, this situation provide unnessesary work and can be source for errors. My idea same as simplified code development for EJB2, jboss Seam etc. Currently, for abstract bean property getter/setter pair i have right auto-generated JSF attribute ( but without any documentation, unfortunately ), for Event Listener Handler interface - component code, listener helper and tags. I'm very 'lazy' developer, and alvais avoid to make work by hand if it can be done automatically. With little additional meta-information ( i seem java annotations as best way for provide it ) using of external configuration file is not need.

Adam Winer :
Alexandr,

What's wrong with faces-config.xml metadata?  From our
perspective, this has been a very successful source
of the information needed to derive things as diverse
as Javadoc, code, and TLDs (and, faces-config.xml
itself).

The "XML is bad, annotations are great" line you here a lot these
days is waaaay overblown.  XML has its strengths, annotations
has its strengths.

-- Adam


On 10/11/06, Alexandr Smirnov <[EMAIL PROTECTED]> wrote:
Component code generation can greatly improve components creation, since
in Ajax4jsf project I also have own generator with same ideas. In
addition to same files as in ADF/Trinidad , we have generator for
renderer's from jsp-like template ( even with same tags as Jsp/jstl,
which allow to use JSP visual editor for renderer's ). For complex
components  , it allow avoid most of html errors and can divide work
between html designer and java coders.
As a next stage, I want to reduce files need for component creation to
two - base abstract component class, and renderer template. For
component meta information, I have plan to use Java annotations ( in
current implementation, I use Java reflection to analise component and
implemented interfaces methods, bean properties etc. ). As I thing, such
annotations must be standardize, not proprietary API. Is
Myfaces/Trinidad team will interested to use annotations for component
generator meta information ? I need help to create public api for such
feature.
Also, we can contribute parts of existing generator to MyFaces project,
at least renderer generator part - I don't see such feature in other tools.

Adam Winer :
> Yes, they definitely could be used in that way.
>
> The basic picture is that you write up a bunch of little mini
> faces-config.xml files, one for each component (don't have to,
> actually, you could generate straight from one big faces-config),
> and from that we autogenerate:
> - Java component classes
> - JSP tag classes
> - TLD file
> - Tag documentation
> - Facelets definition file
> - Overall merged faces-config.xml
>
> -- Adam
>
>
> On 10/8/06, Bruno Aranda <[EMAIL PROTECTED]> wrote:
>> That sounds really interesting. As you may know, we are working quite
>> actively in the implementation of MyFaces 1.2. Now I am migrating the
>> JSF core tags, but we will reach soon the point to migrate the HTML
>> Basic components. I don't know the exact details of how this
>> autogeneration works for Trinidad, but couldn't we have the same or
>> similar method to generate the JSF basic html components for MyFaces?
>>
>> Sorry for cross-posting but I think this can be interesting,
>>
>> Cheers,
>>
>> Bruno
>>



Reply via email to