Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.richfaces.renderkit;
 
 
 import  javax.faces.component.UIComponent;
 import  javax.faces.context.FacesContext;
 import  javax.faces.context.ResponseWriter;
 
    public void encodeFakeItem(FacesContext facesContext, UIComponent componentthrows IOException {
        ResponseWriter responseWriter = facesContext.getResponseWriter();
        responseWriter.startElement(HtmlConstants.LI_ELEMENT, component);
        responseWriter.writeAttribute(HtmlConstants.STYLE_ATTRIBUTE, "display:none"null);
        responseWriter.endElement(HtmlConstants.LI_ELEMENT);
    }
    public void encodeItemsContainerBegin(FacesContext facesContext, UIComponent componentthrows IOException {
        ResponseWriter responseWriter = facesContext.getResponseWriter();
        responseWriter.startElement(HtmlConstants.UL_ELEMENT, component);
        responseWriter.writeAttribute(HtmlConstants.ID_ATTRIBUTE, getContainerElementId(facesContextcomponent), null);
        responseWriter.writeAttribute(HtmlConstants.CLASS_ATTRIBUTE, "rf-au-lst-ul"null);
    }
    public void encodeItemsContainerEnd(FacesContext facesContext, UIComponent componentthrows IOException {
        ResponseWriter responseWriter = facesContext.getResponseWriter();
        responseWriter.endElement(HtmlConstants.UL_ELEMENT);
    }
    public void encodeItemBegin(FacesContext facesContext, UIComponent componentthrows IOException {
        ResponseWriter writer = facesContext.getResponseWriter();
        writer.startElement(HtmlConstants.LI_ELEMENT, component);
    }
    public void encodeItemEnd(FacesContext facesContext, UIComponent componentthrows IOException {
        ResponseWriter writer = facesContext.getResponseWriter();
        writer.endElement(HtmlConstants.LI_ELEMENT);
    }
    public void encodeItem(FacesContext facesContext, UIComponent componentthrows IOException {
        ResponseWriter writer = facesContext.getResponseWriter();
        encodeItemBegin(facesContextcomponent);
        writer.writeAttribute(HtmlConstants.CLASS_ATTRIBUTE, "rf-au-itm rf-au-opt rf-au-fnt rf-au-inp"null);
        for (UIComponent child : component.getChildren()) {
            child.encodeAll(facesContext);
        }
        encodeItemEnd(facesContextcomponent);
    }
New to GrepCode? Check out our FAQ X