hi, +1
i also thought about a seam-forge* plugin which does such tasks. regards, gerhard * as soon as it is available http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2010/11/26 Jakob Korherr <[email protected]> > Hi, > > Great idea! > > This could be done with a maven plugin. > > Regards, > Jakob > > 2010/11/26 Matthias Wessendorf <[email protected]>: > > 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 >
