Ok... I found the answer, but I'm not sure It's intuitive - maybe it is?
 
Anyway.
Found the attribute rows.
When setting rows through a backing bean, the getter in the backing bean needs to return an Integer, NOT a String. Then it works.
But the Exception is really confusing, as it says it can't cast String to String....
If I hadn't looked in the Tobago source code, to see what Data is holding rows as, I wouldn't have known how to return data to rows correctly.
Maybe the class type it's expecting, could be in the hover help?
 
John


From: John [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 1:58 PM
To: MyFaces Discussion
Subject: [Tobago] - question on deprecated pageingLength in Sheet

If this method is deprecated, what is the preferred method of dynamically setting the number of rows per page to be displayed based on a value in a backing bean?
 
BTW: This doesn't seem to work when you set this to a backing bean method. It results in a classCastException. Funny thing is it's an error casting String to String.
 
Thanks,
 
John

Reply via email to