net.contextfw.web.application.view
Annotation Type View


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

Maps a component to URL making it a view component.

This annotation must be used in conjunction with @PageScoped annotation

When component is marked as a view, the page initialization process can be followed an intercepted by implementing an interface ViewComponent. Implementing the interface is optional.

Author:
marko
See Also:
@PageScoped, ViewComponent

Optional Element Summary
 Class<? extends Component> parent
          Defines the parent view for this view.
 String[] property
          Maps view to given set of URLs that are mapped to property keys.
 String[] url
          Maps view to given set of URLs.
 

url

public abstract String[] url
Maps view to given set of URLs. URLs are given as regular expressions.

Default:
""

property

public abstract String[] property
Maps view to given set of URLs that are mapped to property keys.

The values of the properties are handled as regular expressions.

Default:
""

parent

public abstract Class<? extends Component> parent
Defines the parent view for this view.

A view may have a parent which is initialized before this view. The parent may choose not to initilialize this view, if it is not seen necessary.

See Also:
ViewComponent
Default:
net.contextfw.web.application.component.Component.class


Copyright © 2011. All Rights Reserved.