April 2004
Intermediate to advanced
606 pages
20h 4m
English
Finally, we need a tag handler
for the
<my:tabLabel> custom action.
It’s a very simple class:
package com.mycompany.jsf.taglib;
import javax.faces.webapp.UIComponentTag;
public class TabLabelTag extends UIComponentTag {
public String getComponentType( ) {
return "com.mycompany.TabLabel";
}
public String getRendererType( ) {
return "javax.faces.Link";
}
}The TabLabelTag class extends
UIComponentTag, the same way as the tag handler
classes we developed in Chapter 13. It
implements the getComponentType() and
getRendererType() methods to return the values
needed by the superclass to create and configure the component.
That’s all, because this custom action
doesn’t provide any attributes for customization of
the component
or the renderer.
Read now
Unlock full access