1> made it "This is a markup inline filter which by default is added to the ... "

2> The javadoc is right? It is wrong it is not applied to wicket components. It shouldn't be because that is left to the wicket component itself.

johan


On 3/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
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="" 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