You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Bob Schellink (JIRA)" <ji...@apache.org> on 2010/09/14 10:27:32 UTC

[jira] Resolved: (CLK-718) NullPointerException for Complex page structure with panels

     [ https://issues.apache.org/jira/browse/CLK-718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Schellink resolved CLK-718.
-------------------------------

    Resolution: Not A Problem

I don't see the bug. Click recursively scans up the hierarchy for the Page, so you can have n deep hierarchies. What would be problematic is if a control parent is not set, essentially creating orphaned controls.

> NullPointerException for Complex page structure with panels
> -----------------------------------------------------------
>
>                 Key: CLK-718
>                 URL: https://issues.apache.org/jira/browse/CLK-718
>             Project: Click
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.0.0, 2.3.0-M1
>         Environment: Linux, Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
>            Reporter: tomasz bandura
>
> 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>) )

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.