How can one override properties in Fragments?
Given a component:
divwicket:message key=foo//div
which I instantiate twice, say, in
div wicket:id=c1 /
wicket:fragment id=fragment
div wicket:id=c2 /
/wicket:fragment/
I can override c1's property foo via
c1.foo=Bar
but neither
wrote:
How can one override properties in Fragments?
Given a component:
divwicket:message key=foo//div
which I instantiate twice, say, in
div wicket:id=c1 /
wicket:fragment id=fragment
div wicket:id=c2 /
/wicket:fragment/
I can override c1's property foo via
c1.foo=Bar
On 13.05.2009, at 18:40, Jeremy Thomerson wrote:
Good questoin - I'm not sure how that works with wicket:message. But
I suppose you could easily add a label to the fragment and control the
property key to your label easily
Programmatically, you mean, right? Using Component#getString()
not getString
new Label(label, new ResourceModel(yourkey));
--
Jeremy Thomerson
http://www.wickettraining.com
On Wed, May 13, 2009 at 4:16 PM, Kaspar Fischer h...@rapsak.com wrote:
On 13.05.2009, at 18:40, Jeremy Thomerson wrote:
Good questoin - I'm not sure how that works with