Igor, thanks very much for the hint. I could fix this as follows: WebMarkupContainer appletContainer = new WebMarkupContainer("myAppletWicketId"); appletContainer.add(new AbstractBehavior() { private static final long serialVersionUID = 1L; @Override public void onComponentTag(Component component, ComponentTag tag) { // Modify the relevant attribute String attrName = "archive"; IValueMap valueMap = tag.getAttributes(); String attrValue = valueMap.getString(attrName); if(attrValue != null){ IRequestCodingStrategy coder = RequestCycle.get() .getProcessor() .getRequestCodingStrategy(); valueMap.put(attrName, coder.rewriteStaticRelativeUrl(attrValue)); } } }); add(appletContainer);
Bernard On Fri, 26 Jun 2009 08:06:16 -0700, you wrote: >see org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler > >-igor > >On Thu, Jun 25, 2009 at 9:28 PM, <bern...@actrix.co.nz> wrote: >> Hi, >> >> I am pleased with the URL resolution in wicket pages. But it does not >> work for me with applets. >> >> In my case, wicket translates <img src="images/image.gif> into <img >> src="../images/image.gif> (note the "../"). >> >> This works fine. >> >> However, translation does not work for applets. In my case, with >> >> <applet code="MyClass.class" >> archive="jars/MyJar.jar" >> width="100" >> height="100"> >> </applet> >> >> , the attribute archive="jars/MyJar.jar" should have its value >> translated, too. I guess Wicket does not look into applet tags. >> >> I would be quite happy to write code for each tag to tell Wicket to >> translate the attribute and property that it does not cover >> automatically. Is there a Wicket way to do this? >> >> Many thanks. >> >> Bernard >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >For additional commands, e-mail: users-h...@wicket.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org