javax.faces.render
Annotation Type FacesRenderKit


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
public @interface FacesRenderKit

The presence of this annotation on a class automatically registers the class with the runtime as a RenderKit. The value of the value() attribute is taken to be the render-kit-id. The implementation must guarantee that for each class annotated with FacesRenderer, found with the algorithm in section 11.5, RenderKitFactory.addRenderKit(java.lang.String,RenderKit) is called, passing the derived render-kit-id as the first argument and an instance of this class as the second argument. There must be a public zero-argument constructor on any class where this annotation appears. The implementation must indicate a fatal error if such a constructor does not exist and the application must not be placed in service. The implementation must guarantee that all such calls to addRenderKit() happen during application startup time and before any requests are serviced. After performing the scanning algorithm, the implementation must guarantee that all classes annotated with FacesRenderKit have their annotations processed before any classes annotated with FacesRenderer.


Required Element Summary
 String value
          

The value of this annotation attribute is taken to be the render-kit-id with which a reference to an instance of this class of RenderKit can be obtained by calling RenderKitFactory.getRenderKit(javax.faces.context.FacesContext, java.lang.String).

 

Element Detail

value

public abstract String value

The value of this annotation attribute is taken to be the render-kit-id with which a reference to an instance of this class of RenderKit can be obtained by calling RenderKitFactory.getRenderKit(javax.faces.context.FacesContext, java.lang.String).



Copyright © 2002-2008 Sun Microsystems, Inc. All Rights Reserved.