Hi,

 consider the following code:

[ in the template ]

| <table t:type="grid"
|       t:id="EntryGrid"
|       row="entry"
|       source="entries"
|       model="entriesRowModel">

[ in the page class ]

| @Component(id = "EntryGrid")
| private Grid _grid;

[...]

| private int _rowsPerPage;

[...]

| public void onSuccessFromGridForm() {
|  _rowsPerPage = getNewRowsPerPage();
| _grid.setRowsPerPage(_rowsPerPage);
| }

Whenever I call `_grid.setRowsPerPage()' I get the following
exception:

| org.apache.tapestry.ioc.internal.util.TapestryException
| Failure writing parameter rowsPerPage of component MyForm:entrygrid: Binding
| [EMAIL PROTECTED] is read-only.

| Stack trace

| * 
org.apache.tapestry.internal.bindings.AbstractBinding.set(AbstractBinding.java:46)
| * 
org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.writeParameter(InternalComponentResourcesImpl.java:235)
| * 
org.apache.tapestry.corelib.components.Grid._$update_parameter_rowsPerPage(Grid.java)
| * org.apache.tapestry.corelib.components.Grid.setRowsPerPage(Grid.java:268)

What am I doing wrong?

Cheers,

Martin

-- 
----------- / http://herbert.the-little-red-haired-girl.org / -------------
=+= 
Interested in sophisticated fun? You, hubby, girl friends. The more the 
merrier. Get in touch with Kirby, through WASTE only, Box 7391, L.A.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to