Thanks, I solved it by adding the behavior used in the RelativePathPrefixHandler to my custom button. I'll take a look at the ContextRelativeResource.
/Mats On 6/12/07, Al Maw <[EMAIL PROTECTED]> wrote: > Mats Norén wrote: > > This must have been asked a million times but I couldn't find the right > > answer in the list archives. > > I think it's only been asked once, actually. ;-) > > > I've upgraded one of my applications that uses 1.2.3 to 1.3 snapshot. > > In the process I got rid of my PrependContextPathFilter since wicket > > is supposed to make url:s relative. > > It works for everything but my <input type="image" ... > > wicket:id="search" > - elements. > > > > Should wicket take care of them as well? > > The issue is that the relative URL prepender only acts on things that > are not Wicket components. You have a wicket:id in there, so it leaves > things alone. > > What component are you using for the <input>? There's an ImageButton > component, which expects a WebResource, or a ResourceReference. > > I've just added an org.apache.wicket.resource.ContextRelativeResource, > which you can use for this. > > I guess if you use a Button component, maybe it should rewrite the src > attribute for you automatically, provided you don't have an attribute > modifier attached. If you'd like this functionality, please open a JIRA > issue. > > Best regards, > > Al > > -- > Alastair Maw > Wicket-biased blog at http://herebebeasties.com > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user