Friday, July 20, 2007

How to locate where Wicket markup comes from your browser's source view

How to locate where Wicket markup comes from your browser’s source view

Sometimes, Wicket’s dynamic component structures makes it a bit hard to figure out what on your page comes from where. Not anymore. Matej recently implemented a little but very helpful debugging aid for this in Wicket. You can turn this feature on by putting this:

@Override
protected void init() {
...
getDebugSettings().setOutputMarkupContainerClassName(true);
<!-- MARKUP FOR com.my.ViewTopicPanel$3 END -->
<span><!-- MARKUP FOR com.my.PodBorder BEGIN -->
<img src="http://chillenious.wordpress.com/foo/bar.gif" />
<table >

0 comments: