protected void generateContainerStart ( ResponseWriter writer , PanelGrid panelGrid , boolean idHasBeenRendered ) throws IOException { writer . startElement ( "div" , panelGrid ) ; if ( ! idHasBeenRendered ) { String clientId = panelGrid . getClientId ( ) ; writer . writeAttribute ( "id" , clientId , "id" ) ; } writeAttribute ( writer , "dir" , panelGrid . getDir ( ) , "dir" ) ; Tooltip . generateTooltip ( FacesContext . getCurrentInstance ( ) , panelGrid , writer ) ; String styleclass = panelGrid . getStyleClass ( ) ; if ( null != styleclass && styleclass . trim ( ) . length ( ) > 0 ) writer . writeAttribute ( "class" , styleclass , "class" ) ; // else // writer.writeAttribute("class", "container", "class"); String style = panelGrid . getStyle ( ) ; if ( null != style && style . trim ( ) . length ( ) > 0 ) writer . writeAttribute ( "style" , style , "style" ) ; }
Generates the start of the entire Bootstrap container .