Hi, Great idea!
This could be done with a maven plugin. Regards, Jakob 2010/11/26 Matthias Wessendorf <mat...@apache.org>: > Hi, > would it make sense to generate viewconfig impl classes, based on the > available XHTML files? > Would help to reduce some boilerplate code... > > If XHTML file is named "foo_bar.xhml", the generated java file could look like > > @Page( > name="foo_bar" > ) > public final class FooBar implements ViewConfig > { > } > > for an XHTML page like "fooBar.xhtml" the generated code would look like: > @Page > public final class FooBar implements ViewConfig > { > } > > Of course, once the developer added the @PageBean the 'regeneration' > should be able to catch that in order 'reinject' any @PageBean > > What do you think ? > > -Matthias > -- Jakob Korherr blog: http://www.jakobk.com twitter: http://twitter.com/jakobkorherr work: http://www.irian.at