PrependContextPathHandler has some inconsistencies between documentation and 
implementation:

1.
JavaDoc:
* This is a markup inline filter which by default is not added to the
* list of markup filters.

The contrary is true, see MarkupParserFactory line 27. This seems to be a left 
over in the documentation.

2.
JavaDoc:
* It is applied to all tags (attributes) no matter whether
* the tag is a wicket tag or not.

But the code checks for a component id:
> final ComponentTag tag = (ComponentTag)getParent().nextTag();
> if (tag == null  || tag.getId() != null)

This means that currently 'src' attributes of image buttons are not prepended 
with the context path:

<input wicket:id="search" src="image/search.gif" type="image"/>

IMHO in this case the javadoc is right.

Sven


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to