[seam-issues] [JBoss JIRA] Created: (SEAMFACES-107) Raise events before and/or after creation of ViewMetadata

Dan Allen (JIRA) jira-events at lists.jboss.org
Sat Mar 19 18:35:45 EDT 2011


Raise events before and/or after creation of ViewMetadata
---------------------------------------------------------

                 Key: SEAMFACES-107
                 URL: https://issues.jboss.org/browse/SEAMFACES-107
             Project: Seam Faces
          Issue Type: Feature Request
          Components: CDI Integration
    Affects Versions: 3.0.0.CR1
            Reporter: Dan Allen
            Priority: Minor


It may be useful to raise an event before or after creation of the ViewMetadata (or both). There is a compelling reason to raise the event afterwards to allow the application to programmatically register additional metadata components (such as UIViewAction or UIRestrictView).

public void onCreateMetadata(@Created ViewMetadata metadata, FacesContext context) {
   metadata.getChildren().add(...);
}

In order for this to work, the ViewMetadata will need to either extend BeanManagerAware or become an injectable component itself (the former is simpler).

The @Created qualifier should be introduced in Solder in the "event" package.

--
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