return (parent instanceof AbstractDataTable);
}
public void encodeHiddenInput(ResponseWriter writer, FacesContext facesContext, UIDataTableBase dataTableBase)
throws IOException {
AbstractCollapsibleSubTable subTable = (AbstractCollapsibleSubTable) dataTableBase;
String stateId = subTable.getClientId(facesContext) + STATE;
writer.startElement(HtmlConstants.INPUT_ELEM, subTable);
writer.writeAttribute(HtmlConstants.ID_ATTRIBUTE, stateId, null);
writer.writeAttribute(HtmlConstants.NAME_ATTRIBUTE, stateId, null);
writer.writeAttribute(HtmlConstants.TYPE_ATTR, HtmlConstants.INPUT_TYPE_HIDDEN, null);
int state = subTable.isExpanded() ? AbstractCollapsibleSubTable.EXPANDED_STATE
: AbstractCollapsibleSubTable.COLLAPSED_STATE;
writer.writeAttribute(HtmlConstants.VALUE_ATTRIBUTE, state, null);
writer.endElement(HtmlConstants.INPUT_ELEM);
String optionsId = subTable.getClientId(facesContext) + OPTIONS;
writer.startElement(HtmlConstants.INPUT_ELEM, subTable);
writer.writeAttribute(HtmlConstants.ID_ATTRIBUTE, optionsId, null);
writer.writeAttribute(HtmlConstants.NAME_ATTRIBUTE, optionsId, null);
writer.writeAttribute(HtmlConstants.TYPE_ATTR, HtmlConstants.INPUT_TYPE_HIDDEN, null);
writer.endElement(HtmlConstants.INPUT_ELEM);