Just like wicket:link, wicket:message is a convenience. In this case, you probably should just make it a ContextImage and add the appropriate attribute modifiers to it.
That said, you can file a RFE in jira for this. I think it is a limitation that should be lifted. However, you'll be quicker to just create a component... Martijn On 4/6/08, Martin Grigorov <[EMAIL PROTECTED]> wrote: > Hi, > > I want to internationalize both 'alt' and 'title' attributes of <img> > element: > > <img src="some.gif" wicket:message="alt:aPanel.buttons.equals.alt" > wicket:message="title:aPanel.buttons.equals.title"/> > > But Wicket complains with that: > > Caused by: java.text.ParseException: Same attribute found twice: > wicket:message > at > > org.apache.wicket.markup.parser.XmlPullParser.parseTagText(XmlPullParser.java:637) > at > org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:288) > at > org.apache.wicket.markup.parser.XmlPullParser.nextTag(XmlPullParser.java:423) > ..... > > Is there a way to do that without adding <img> as a component in the > hierarchy ? > > Regards > Martin > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
