}
}
public String createClientDataTable(FacesContext context,
UIExtendedDataTable table) {
JSFunction function = new JSFunction("new ExtendedDataTable.DataTable");
function.addParameter(table.getBaseClientId(context));
ScriptOptions scriptOptions = new ScriptOptions(table);
// add on resize column AJAX function
scriptOptions.addOption(ON_RESIZE_FUNCTION, getOnResizeFunctionDef(
context, table));
scriptOptions.addOption(SORT_FUNCTION, getSortFunctionDef(context,
table));
scriptOptions.addOption(SHOW_MENU_FUNCTION, getShowMenuFunction(
context, table));
/* Not needed if we do not save open/close state */
scriptOptions.addOption(ON_GROUP_TOGGLE_FUNCTION,
getOnGroupToggleFunctionDef(context, table));
scriptOptions.addOption("minColumnWidth", MIN_COLUMN_WIDTH);
composite.mergeScriptOptions(scriptOptions, context, table);
function.addParameter(scriptOptions);
return function.toScript();
}