myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Korherr <jakob.korh...@gmail.com>
Subject Re: Codi - generating viewconfig impls?
Date Fri, 26 Nov 2010 12:11:32 GMT
Hi,

Great idea!

This could be done with a maven plugin.

Regards,
Jakob

2010/11/26 Matthias Wessendorf <matzew@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

Mime
View raw message