the stacktrace doesnt look like it has anything to do with the call to
setitemsperpage. looks like an old NPE bug in Check component.
if you are using 1.2.x update to our latest release, if you are using
1.3update to latest svn.
-igor
On 5/9/07, JulianS <[EMAIL PROTECTED]> wrote:
I need to be able to change the number of rows displayed in a DataView
dynamically. But when I try to do so in response to user input, I get the
following exception:
WicketMessage: Exception in rendering component: [MarkupContainer [Component id
= 5, page = com...ViewPoliciesPage, path =
2:policydatapanel:roundedboxborder:datatableform:group:dataview:policies:5.OddEvenItem,
isVisible = true, isVersioned = false]]
Root cause:
java.lang.NullPointerException
at wicket.markup.html.form.Check.onComponentTag(Check.java:132)
...
at
wicket.extensions.markup.html.repeater.RepeatingView.renderChild(RepeatingView.java:171)
at
wicket.extensions.markup.html.repeater.RepeatingView.onRender(RepeatingView.java:134)
...
I've tried calling DataView.setItemsPerPage() in my page's
onBeforeRender(), but that doesn't help.
What am I doing wrong? Any help is appreciated.
------------------------------
View this message in context: How to call DataView.setItemsPerPage()
dynamically?<http://www.nabble.com/How-to-call-DataView.setItemsPerPage%28%29-dynamically--tf3718964.html#a10405032>
Sent from the Wicket - User mailing list
archive<http://www.nabble.com/Wicket---User-f13976.html>at
Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user