myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <>
Subject Re: [trinidad] about maven-faces-plugin
Date Wed, 07 Mar 2007 13:45:45 GMT
can you post that on the mailing of Trinidad ?
I think not that much people here are really familar w/ that
generating framework.

the /**/// or what ever, I added this morning to get rid of an issue
w/ UIViewRoot was something I also hated. AFAIK this was added in the
MyFaces specific part.
Usually working w/ the generator is fine.

We use it in production to generate the components as well


On 3/7/07, Mathias Brökelmann <> wrote:
> Hi all,
> During 1.2 development I came across the maven-faces-plugin from
> trinidad. AFAIK it uses some xml files which contains the model for
> the generated components. This saves a lot of time to quickly get new
> components into work. But there is room to improve it.
> Currently customizing the generated component classes requires to
> write a template (like file which contains
> custom code. I don't like this approach. Since there is no chance to
> modify generated methods and to add custom code. That is even worse if
> you only want to add something to save/restore state methods or to add
> some parameter checking for setters. I've already seen that some dirty
> hacks are implemented to make things work.
> IMO there is a way to solve some of the problems by still having
> generated code. I'm thinking of an "in place editing" the generated
> code inside special marks like this:
> public void setXXX(String xxx)
> {
>    /* start custom code */
>    // do something before the generated code
>    /* end custom code */
>    _XXX = xxx;
>    /* start custom code */
>    // do something after the generated code
>    /* end custom code */
> }
> --
> Mathias

Matthias Wessendorf

further stuff:
mail: mwessendorf-at-gmail-dot-com

View raw message