Ejemplo n.º 1
0
 @Override
 public void encodeBegin(FacesContext context, TagWriter out) throws IOException {
   out.startDiv("hui_pages_page");
   if (key != null) {
     out.withAttribute("data-key", key);
   }
   List<UIComponent> siblings = getParent().getChildren();
   if (siblings.get(0) != this) {
     out.withStyle("display:none;");
   }
 }
 @Override
 public void encodeBegin(FacesContext context, TagWriter out) throws IOException {
   out.startDiv("oo_fragment").withId(getClientId());
   out.endDiv();
   out.startScript();
   out.startNewObject("oo.Fragment").property("element", getClientId());
   if (name != null) {
     out.comma().property("name", name);
   }
   out.endNewObject().endScript();
 }
 @Override
 protected void encodeEnd(FacesContext context, TagWriter writer) throws IOException {
   writer.endDiv();
 }
 @Override
 protected void encodeBegin(FacesContext context, TagWriter writer) throws IOException {
   writer.startDiv(new ClassBuilder("oo_rendering").add(getStyleClass(context)));
 }