-
1. Re: Page action in ViewConfig
bleathem Apr 19, 2011 11:33 PM (in response to gonzalad)That's a great idea, and I don't think it would involve too much to implement it.
Would you mind filing a jira issue asking for the feature?
Brian Leathem
-
2. Re: Page action in ViewConfig
lightguard Apr 20, 2011 12:45 AM (in response to gonzalad)Brian, you may already know this, if you do, please disregard.
PrettyFaces has this capability, and the added bonus of specifying which phase you want this to occur, they also have annotations for it (you annotate the method you want invoked). I'm sure we could create a mapping for it from the enum to the PrettyFaces solution if users want it all to be in one area.
-
3. Re: Page action in ViewConfig
gonzalad Apr 20, 2011 2:31 AM (in response to gonzalad)Thanks very much, created SEAMFACES-147
With this annotation, it will be easier for us to migrate to Seam 3 (we use a lot of page action in pages.xml ;) - even for wildcard pages).
-
4. Re: Page action in ViewConfig
hantsy Apr 20, 2011 6:29 AM (in response to gonzalad)These codes seems a little uncomfortable...the interfaces Pages and enum Pages1 are meaningless here.
1. I think it is better to introduce xml config like seam2.
2. Provides a programatic approach to build the url pattern by code.
Such aspublic void viewConfig(@Observes @SOMEJSFPhase ViewConfiguration config){ config.add(new ViewConfigBuilder().url("/")....build()); }