Hi!
For selecting all rows You can add JavaScript function:
function selectAllRows(selected) {
var table = document.getElementById("formHistory:tableHistory");
table.selectGroupRows(selected);
}
And then call this method from onLoad JavaScript property.
Thanks,
Roman.
Hi!
First of all I want to say that instead formHistory:tableHistory You should write yourFormName:yourTableName.
And second You can find onLoad property in 'Properties' window in JavaScript part.
You should click your form (probably better do it in 'Outline' window) and then look at 'Properties' window.
Thanks,
Roman.
Hi,-Grif-
/*
* Set the selected state for the given row groups
* displayed in the table. This functionality requires
* the 'selectId' of the tableColumn to be set.
*
* @param rowGroupId HTML element id of the tableRowGroup component
* @param selected Flag indicating whether components should be selected
*/
function selectGroupRows(rowGroupId, selected) {
var table = document.getElementById("form1:table1");
table.selectGroupRows(rowGroupId, selected);
}
I don't know that the parameter selected is a boolean,or the checkbox(radio button) id?
Thanks
Smile
Hi,-Grif-
I has try <ui:body binding="#{payFeeCash.body1}" focus="form1:usercomparidText" id="body1" style="-rave-layout: grid" onLoad="selectGroupRows(tableRowGroup1,Boolean.TRUE)">
and <ui:body binding="#{payFeeCash.body1}" focus="form1:usercomparidText" id="body1" style="-rave-layout: grid" onLoad="selectGroupRows(tableRowGroup1,true)">
.
All were rong.Why?
Thanks
Smile