click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tomasz bandura (JIRA)" <j...@apache.org>
Subject [jira] Created: (CLK-718) NullPointerException for Complex page structure with panels
Date Tue, 14 Sep 2010 08:16:34 GMT
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.


Mime
View raw message