Home   Up About   Documents   Products  

JSF @FacesComponent

The @FacesComponent annotation allows you to tag a class for inclusion in the list of component types.

  @FacesComponent("mycomponent_type")
  public class MyComponent extends UIComponentBase {
  }

Note that this is equivalent to registering the component in the faces-config.xml using the following snippet.

  <component>
    <component-type>mycomponent_type</component-type>
    <component-class>MyComponent</component-class>
  </component>

Copyright © 2003-2009 Manorrock. All Rights Reserved.