Class ComponentExtraHandler

  • All Implemented Interfaces:
    FaceletHandler

    public class ComponentExtraHandler
    extends ComponentHandler
    Handler that can be used by components which wish to receive various extra services.

    Those extra services consist of:

    • Receiving the FaceletContext for the Facelet in which the component appears

    The handler has to be used alongside a component declaration in a Facelets *-taglib.xml, e.g.

            <tag>
                    <tag-name>someComponent</tag-name>
                    <component>
                            <component-type>com.example.SomeComponent</component-type>
                            <handler-class>org.omnifaces.taghandler.ComponentExtraHandler</handler-class>
                    </component>
            </tag>
     
    Since:
    2.0
    Author:
    Arjan Tijms