[seam-issues] [JBoss JIRA] Commented: (SEAMFACES-147) Add support for binding methods (view actions) to view enums

Dan Allen (JIRA) jira-events at lists.jboss.org
Mon Jun 27 18:33:23 EDT 2011


    [ https://issues.jboss.org/browse/SEAMFACES-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12611368#comment-12611368 ] 

Dan Allen commented on SEAMFACES-147:
-------------------------------------

Dupont,

With Seam 3 tooling, this is going to work out really nicely, just like jumping from where an event is fired to where it is observed, or jumping between injection point and bean. This is a case where tooling really pays off. Plus, we can have an Eclipse view that shows all the actions for a view. Max's team should be able to turn around this feature pretty quickly, as soon as we have it implemented in Seam Faces.

{quote}
I don't see your point : ViewAction are for Jsf views. A Jsf view can only call named bean via JSF El.
So IMO, it's not odd to have this restriction for ViewActions.
{quote}

That's not true. The view controller in Seam Faces (the component that interprets the view configuration) can invoke anything reachable from CDI, including type-safe lookups. We've just been limited in the past. We are breaking those barriers.

{quote}
Anyway, my main point is really to be able to centralize view navigation, view actions, view restrictions, etc... (the simplest to use and to understand = the best)
{quote}

I want that too. And I assure you that by using this binding concept, we achieve that.

> 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