Uploaded image for project: 'Seam Faces'
  1. Seam Faces
  2. SEAMFACES-107

Raise events before and/or after creation of ViewMetadata

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0.CR1
    • Fix Version/s: 3.Future
    • Component/s: CDI Integration
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dan.j.allen Dan Allen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: