I assume the issue is that the PanelColumn example does not set the Panel's parent. It should be easy to add that functionality as column has access to its parent table.
Bob On Sun, Sep 12, 2010 at 4:54 PM, tomasz bandura <[email protected]> wrote: > Hi Bob, > > > I also find a standard example which is enough for me: Panel Column Demo, > but there is problem when i try to use it on complex page: > > On a Page, I have EntryPanel. > EntryPanel has Table with ColumnPanel > > And during request it raises an exception: > > java.lang.NullPointerException > at org.apache.click.control.Panel.createTemplateModel(Panel.java:789) > at org.apache.click.control.Panel.render(Panel.java:752) > at > com.ratibor.control.PanelColumn.renderTableDataContent(PanelColumn.java:33) > at org.apache.click.control.Column.renderTableData(Column.java:1191) > at org.apache.click.control.Table.renderBodyRowColumns(Table.java:1879) > (...) > > But the exception is obvious: > Panel tries to get model from Page parent but the parent is Panel , not Page > > I know the easiest way is create custom component, > similiar to Panel but maybe there is any solution for that page structure? > > Best regards, > > Tomasz > > > > 2010/9/12 Bob Schellink <[email protected]>: >> There is a standalone paginator in the ClickClick project[1]. You can >> see it in action here[2]. >> >> It might not be what you are after though. >> >> Kind regards >> >> Bob >> >> [1]: http://code.google.com/p/clickclick/ >> [2]: http://clickclick-examples.appspot.com/repeat/paging-repeater.htm >> >> On Sun, Sep 12, 2010 at 4:07 PM, tomasz bandura >> <[email protected]> wrote: >>> Hello, >>> >>> Is it any possibility to add a paginator to the PanelList? >>> >>> >>> Do you plan to make something like abstract paginator, that can be >>> used not only for table but also for any declared list? >>> >>> Currently i use velocity based paginator, also integrated with jquery >>> but i thinking about reusable control. >>> >>> Best regards, >>> >>> Tomasz >>> >> >
