1

カスタム コンポーネントのレンダリングを標準の JSF コンポーネントに委任することは可能ですか。

@FacesComponent(value = "compositecomp")
public class CompositeComponent extends UIComponentBase {

    @Override
    public String getFamily() {
        return "composite";
    }

    @Override
    public void encodeEnd(FacesContext context) throws IOException {
        HtmlOutputText hot = new HtmlOutputText();
        // set some attributes here then...

       // delegate rendering
        hot.encodeEnd(context);
    }
}
4

0 に答える 0