Say I have a page and a panel. The panel contains wicket:message's
with keys 'foo1', 'foo2' and 'foo3'.

<!-- Panel.html -->
<html><body><wicket:panel>
<table>
<tr><td>Foo1</td><td><wicket:message key="foo1"></wicket:message></td></tr>
<tr><td>Foo2</td><td><wicket:message key="foo2"></wicket:message></td></tr>
<tr><td>Foo3</td><td><wicket:message key="foo3"></wicket:message></td></tr>
</table>
</wicket:panel></body></html>

The page contains the panel with ID 'panel'.

# Panel.properties
foo3=Foo3 from panel.properties

# Page.properties
panel.foo1=panel.foo1 from page.properties
panel.foo2=panel.foo2 from page.properties
foo2=foo2 from page.properties
foo3=foo3 from page.properties

What will be the expected outcome of this table? I would figure the following:

<table>
<tr><td>Foo1</td><td>panel.foo1 from page.properties</td></tr>
<tr><td>Foo2</td><td>panel.foo2 from page.properties</td></tr>
<tr><td>Foo3</td><td>Foo3 from panel.properties</td></tr>
</table>

However it renders (1.3-beta3):
<table>
<tr><td>Foo1</td><td></td></tr>
<tr><td>Foo2</td><td>foo2 from page.properties</td></tr>
<tr><td>Foo3</td><td>Foo3 from panel.properties</td></tr>
</table>

Am I thinking wrong here?

Martijn

-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

Reply via email to