Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
3.0.0, 2.3.0-M1
-
None
-
None
-
Linux, Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Description
For a complex page structure (for Panel embedded on another Panel), exception is raised:
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)
(...)
The reason is that the Panel (e.g. childPanel) which is on another Panel (rootPanel) has not parent Page because his parent is Panel (rootPanel) .
Example of complex structure:
mainPage--
-----------------rootPanel-
--------------------------------childPanel1 <-- exception
It also causes problem with access to the page.properties (i.e. $messages.<label>) and velocity does not work correctly (for example $format.date(<date>) )