Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.apache.myfaces.orchestra.viewController.annotations
Annotation Type ViewController

    @Target(value=TYPE)
    @Retention(value=RUNTIME)
    public @interface ViewController

Defines a class as ViewController to receive ViewController events for the given viewId(s).

This requires that the Orchestra ViewController is active, and that the AnnotationsViewControllerNameMapper is in use.

This annotation is an alternative to using the "bean name matches viewid" approach of the DefaultViewControllerNameMapper.

Whether this is the best approach to pairing a view with a controller bean depends upon the project. This does cause tight coupling between bean and view; moving a view requires modifying the bean. This is not appropriate for a project where "ui designer" and "code developer" roles are separated. However for other projects where the same person plays both roles then using this annotation reduces the amount of configuration required.

Optional Element Summary
`java.lang.String[]` | `viewIds` the ViewIds the bean is responsible for

### viewIds

    public abstract java.lang.String[] viewIds

  the ViewIds the bean is responsible for

  Default:
    {}

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2009 The Apache Software Foundation. All Rights Reserved.