/** * Removes the cached TableMetaInfo from the specified component. * @param context the <code>FacesContext</code> for the current request */ protected void clearMetaInfo(FacesContext context, UIComponent table) { context.getExternalContext().getRequestMap().remove(createKey(table)); }
/** * Renders the caption of the table applying the values of * <code>captionClass</code> as the class and <code>captionStyle</code> * as the style if either are present. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @param writer the current writer * @throws IOException if content cannot be written */ protected void renderCaption(FacesContext context, UIComponent table, ResponseWriter writer) throws IOException { UIComponent caption = getFacet(table, "caption"); if (caption != null) { String captionClass = (String) table.getAttributes().get("captionClass"); String captionStyle = (String) table.getAttributes().get("captionStyle"); writer.startElement("caption", table); if (captionClass != null) { writer.writeAttribute("class", captionClass, "captionClass"); } if (captionStyle != null) { writer.writeAttribute("style", captionStyle, "captionStyle"); } encodeRecursive(context, caption); writer.endElement("caption"); } }
throws IOException { TableMetaInfo info = getMetaInfo(context, table); writer.startElement("tr", table);
/** * Renders the start of a table and applies the value of * <code>styleClass</code> if available and renders any * pass through attributes that may be specified. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @param writer the current writer * @param passThroughAttributes pass-through attributes that the component * supports * @throws IOException if content cannot be written */ protected void renderTableStart(FacesContext context, UIComponent table, ResponseWriter writer, String[] passThroughAttributes) throws IOException { writer.startElement("table", table); writeIdAttributeIfNecessary(context, writer, table); String styleClass = (String) table.getAttributes().get("styleClass"); if (styleClass != null) { writer.writeAttribute("class", styleClass, "styleClass"); } RenderKitUtils.renderPassThruAttributes(writer, table, passThroughAttributes); writer.writeText("\n", table, null); }
/** * Renders the caption of the table applying the values of * <code>captionClass</code> as the class and <code>captionStyle</code> * as the style if either are present. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @param writer the current writer * @throws IOException if content cannot be written */ protected void renderCaption(FacesContext context, UIComponent table, ResponseWriter writer) throws IOException { UIComponent caption = getFacet(table, "caption"); if (caption != null) { String captionClass = (String) table.getAttributes().get("captionClass"); String captionStyle = (String) table.getAttributes().get("captionStyle"); writer.startElement("caption", table); if (captionClass != null) { writer.writeAttribute("class", captionClass, "captionClass"); } if (captionStyle != null) { writer.writeAttribute("style", captionStyle, "captionStyle"); } encodeRecursive(context, caption); writer.endElement("caption"); } }
throws IOException { TableMetaInfo info = getMetaInfo(context, table); writer.startElement("tr", table);
/** * Renders the start of a table and applies the value of * <code>styleClass</code> if available and renders any * pass through attributes that may be specified. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @param writer the current writer * @param attributes pass-through attributes that the component * supports * @throws IOException if content cannot be written */ protected void renderTableStart(FacesContext context, UIComponent table, ResponseWriter writer, Attribute[] attributes) throws IOException { writer.startElement("table", table); writeIdAttributeIfNecessary(context, writer, table); String styleClass = (String) table.getAttributes().get("styleClass"); if (styleClass != null) { writer.writeAttribute("class", styleClass, "styleClass"); } RenderKitUtils.renderPassThruAttributes(context, writer, table, attributes); writer.writeText("\n", table, null); }
/** * Renders the caption of the table applying the values of * <code>captionClass</code> as the class and <code>captionStyle</code> * as the style if either are present. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @param writer the current writer * @throws IOException if content cannot be written */ protected void renderCaption(FacesContext context, UIComponent table, ResponseWriter writer) throws IOException { UIComponent caption = getFacet(table, "caption"); if (caption != null) { String captionClass = (String) table.getAttributes().get("captionClass"); String captionStyle = (String) table.getAttributes().get("captionStyle"); writer.startElement("caption", table); if (captionClass != null) { writer.writeAttribute("class", captionClass, "captionClass"); } if (captionStyle != null) { writer.writeAttribute("style", captionStyle, "captionStyle"); } encodeRecursive(context, caption); writer.endElement("caption"); } }
/** * Removes the cached TableMetaInfo from the specified component. * @param context the <code>FacesContext</code> for the current request * @param table the table from which the TableMetaInfo will be removed */ protected void clearMetaInfo(FacesContext context, UIComponent table) { context.getAttributes().remove(createKey(table)); }
throws IOException { TableMetaInfo info = getMetaInfo(context, table); writer.startElement("tr", table);
/** * Renders the start of a table and applies the value of * <code>styleClass</code> if available and renders any * pass through attributes that may be specified. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @param writer the current writer * @param attributes pass-through attributes that the component * supports * @throws IOException if content cannot be written */ protected void renderTableStart(FacesContext context, UIComponent table, ResponseWriter writer, Attribute[] attributes) throws IOException { writer.startElement("table", table); writeIdAttributeIfNecessary(context, writer, table); String styleClass = (String) table.getAttributes().get("styleClass"); if (styleClass != null) { writer.writeAttribute("class", styleClass, "styleClass"); } RenderKitUtils.renderPassThruAttributes(context, writer, table, attributes); writer.writeText("\n", table, null); }
/** * Renders the caption of the table applying the values of * <code>captionClass</code> as the class and <code>captionStyle</code> * as the style if either are present. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @param writer the current writer * @throws IOException if content cannot be written */ protected void renderCaption(FacesContext context, UIComponent table, ResponseWriter writer) throws IOException { UIComponent caption = getFacet(table, "caption"); if (caption != null) { String captionClass = (String) table.getAttributes().get("captionClass"); String captionStyle = (String) table.getAttributes().get("captionStyle"); writer.startElement("caption", table); if (captionClass != null) { writer.writeAttribute("class", captionClass, "captionClass"); } if (captionStyle != null) { writer.writeAttribute("style", captionStyle, "captionStyle"); } encodeRecursive(context, caption); writer.endElement("caption"); } }
/** * Removes the cached TableMetaInfo from the specified component. * @param context the <code>FacesContext</code> for the current request * @param table the table from which the TableMetaInfo will be removed */ protected void clearMetaInfo(FacesContext context, UIComponent table) { context.getAttributes().remove(createKey(table)); }
/** * Renders the starting <code>tr</code> element applying any values * from the <code>rowClasses</code> attribute. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @param writer the current writer * @throws IOException if content cannot be written */ protected void renderRowStart(FacesContext context, UIComponent table, ResponseWriter writer) throws IOException { TableMetaInfo info = getMetaInfo(context, table); writer.startElement("tr", table); if (info.rowClasses.length > 0) { writer.writeAttribute("class", info.getCurrentRowClass(), "rowClasses"); } writer.writeText("\n", table, null); }
/** * Renders the start of a table and applies the value of * <code>styleClass</code> if available and renders any * pass through attributes that may be specified. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @param writer the current writer * @param attributes pass-through attributes that the component * supports * @throws IOException if content cannot be written */ protected void renderTableStart(FacesContext context, UIComponent table, ResponseWriter writer, Attribute[] attributes) throws IOException { writer.startElement("table", table); writeIdAttributeIfNecessary(context, writer, table); String styleClass = (String) table.getAttributes().get("styleClass"); if (styleClass != null) { writer.writeAttribute("class", styleClass, "styleClass"); } RenderKitUtils.renderPassThruAttributes(context, writer, table, attributes); writer.writeText("\n", table, null); }
/** * Renders the caption of the table applying the values of * <code>captionClass</code> as the class and <code>captionStyle</code> * as the style if either are present. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @param writer the current writer * @throws IOException if content cannot be written */ protected void renderCaption(FacesContext context, UIComponent table, ResponseWriter writer) throws IOException { UIComponent caption = getFacet(table, "caption"); if (caption != null) { String captionClass = (String) table.getAttributes().get("captionClass"); String captionStyle = (String) table.getAttributes().get("captionStyle"); writer.startElement("caption", table); if (captionClass != null) { writer.writeAttribute("class", captionClass, "captionClass"); } if (captionStyle != null) { writer.writeAttribute("style", captionStyle, "captionStyle"); } encodeRecursive(context, caption); writer.endElement("caption"); } }
/** * Removes the cached TableMetaInfo from the specified component. * @param context the <code>FacesContext</code> for the current request * @param table the table from which the TableMetaInfo will be removed */ protected void clearMetaInfo(FacesContext context, UIComponent table) { context.getAttributes().remove(createKey(table)); }
/** * Renders the starting <code>tr</code> element applying any values * from the <code>rowClasses</code> attribute. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @param writer the current writer * @throws IOException if content cannot be written */ protected void renderRowStart(FacesContext context, UIComponent table, ResponseWriter writer) throws IOException { TableMetaInfo info = getMetaInfo(context, table); writer.startElement("tr", table); if (info.rowClasses.length > 0) { writer.writeAttribute("class", info.getCurrentRowClass(), "rowClasses"); } writer.writeText("\n", table, null); }
/** * Renders the start of a table and applies the value of * <code>styleClass</code> if available and renders any * pass through attributes that may be specified. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @param writer the current writer * @param attributes pass-through attributes that the component * supports * @throws IOException if content cannot be written */ protected void renderTableStart(FacesContext context, UIComponent table, ResponseWriter writer, Attribute[] attributes) throws IOException { writer.startElement("table", table); writeIdAttributeIfNecessary(context, writer, table); String styleClass = (String) table.getAttributes().get("styleClass"); if (styleClass != null) { writer.writeAttribute("class", styleClass, "styleClass"); } RenderKitUtils.renderPassThruAttributes(context, writer, table, attributes); writer.writeText("\n", table, null); }
/** * Removes the cached TableMetaInfo from the specified component. * @param context the <code>FacesContext</code> for the current request * @param table the table from which the TableMetaInfo will be removed */ protected void clearMetaInfo(FacesContext context, UIComponent table) { context.getAttributes().remove(createKey(table)); }