Martijn Dashorst a écrit :
One of my major pain points here is not discussed yet. And that is
nested invisible components.

<a href="#" wicket:id="foo"><span wicket:id="bar"></span></a>

new Link("foo").add(new Label("bar")).setVisible(false)


...
onAjaxThing(target) {
   bar.setVisible(true);
   target.add(bar);
}

In both cases this is impossible, however, from what I get from this
discussion is that we want to make it magical that this is possible.
It is no so much magical because you need to call the setoutputmarkuptag(true) to do that and you can also revert it when you want calling
setoutputmarkuptag(false)

Either way, this is the next thing that comes up, right after ListView
and Repeaters...
No problem because the default behavior is the same as today (setoutputmarkuptag(false) by default)

And what do we do about components that are not visible because the
user is not authorized? Do we generate the tags or not?
With the last implementation coming out from our discuss is
If you explicitly called setoutputmarkuptag(true) on your bar component yes else no. So you can choose what you want to do?

The more I think about it, the more magic is needed, the less I like the idea.

Martijn

--
Vincent

Reply via email to