Hi All,
I have a situtation where I create a table component
as follows:
<table jwcid="[EMAIL PROTECTED]:Table"
source="ognl:searchResults"
columns="literal:!select, id,
name:Name:getName(),description:Description:getDescription()"
rowsClass="ognl:beans.evenOdd.next"
pageSize="20"
objectIds="ognl:objectIds"
checkboxLabels="literal:editButtonLabel,deleteButtonLabel,copyButtonLabel">
</table>
I have created a custom Table component that has a few
additional parameters. The table displays correctly,
however, when I go to click on a sort header, I get
this exception.
Either the tableModel parameter or both source and
columns parameters must be specified by component
adUserGroupsManagement/groupSearchTable.tableView
org.apache.tapestry.contrib.table.components.TableView.getTableModel(TableView.java:220)
org.apache.tapestry.contrib.table.components.inserted.SimpleTableColumnComponent.columnSelected(SimpleTableColumnComponent.java:149)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
*************************************************
I have set tableSessionStateManager =
org.apache.tapestry.contrib.table.model.common.FullTableSessionStateManager()
and I still get the above error. What I think is
happening is that once the page is rendered, Tapestry
puts the page in the pool and nullifies all of my
property variables. So when I click on the sort the
page comes out of the pool and it attempts to use the
now null source and columns parameters. Why is this
happening and how do I fix it?
Thanks
Ed
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]