[seam-issues] [JBoss JIRA] Commented: (SEAMFACES-147) Add support for binding methods (view actions) to view enums
Dupont Dupont (JIRA)
jira-events at lists.jboss.org
Mon Jun 27 17:37:23 EDT 2011
[ https://issues.jboss.org/browse/SEAMFACES-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12611359#comment-12611359 ]
Dupont Dupont commented on SEAMFACES-147:
-----------------------------------------
Hello Dan,
I don't like the fact that view configuration and view actions are separated.
With your proposition, I must look at :
{code:java}
@ViewConfig
public interface ApplicationViewConfig {
static enum Views {
@ViewPattern("/item/*")
VIEW_ITEM
}
}
{code}
and afterwards search in all *.java files VIEW_ITEM occurence :
{code:java}
@ViewAction({VIEW_ITEM, EDIT_ITEM})
public void loadItem(@RequestParam("id") Long id) {
...
}
{code}
While in the untyped approach, I just have all in the same place :
{code:java}
@ViewConfig
public interface ApplicationViewConfig {
static enum Views {
@ViewPattern("/item/*")
VIEW_ITEM
}
}
{code}
> Add support for binding methods (view actions) to view enums
> ------------------------------------------------------------
>
> Key: SEAMFACES-147
> URL: https://issues.jboss.org/browse/SEAMFACES-147
> Project: Seam Faces
> Issue Type: Feature Request
> Reporter: Dupont Dupont
>
> Be able to configure a page action with ViewConfig.
> For instance :
> {code:java}
> @ViewConfig
> public interface Pages {
> static enum Pages1 {
> @ViewPattern("/*")
> @ViewAction("#{bean.doSomething()}")
> ALL;
> }
> }
> {code}
> Prettyfaces can be a source of inspiration since it has this capability, and the added bonus of specifying which phase you want this to occur.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list