You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Antoine van Wel <an...@gmail.com> on 2010/04/14 16:20:01 UTC
attaching a border to a component instead of vice versa - how?
Hi,
is it possible to somehow attach a border to a component?
I.e. currently afaik you have to do this in markup when using a border:
<div wicket:id="border">
<span wicket:id="component"/>
</div>
and in the code something like:
add(new Border("border")
.add(new Component("component"))
Instead I'd just want to specify
<span wicket:id="component"/>
and in the code
add(new Component("component").add(new Border());
Since I want to specify markup in a separate file, behaviors don't cut it;
and MarkupComponentBorder cannot handle any wicket components inside its
markup, so that's not an option either.
Any thoughts?
Antoine