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"/>
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?


Reply via email to