Re: How can i change lang attribute in html markup tag?

2011-01-21 Thread Mike Mander
Great Martin. Thanks alot it works as expected. My solution: LocalizedHtmlTag.java import org.apache.wicket.behavior.SimpleAttributeModifier; import org.apache.wicket.markup.html.WebMarkupContainer; public class LocalizedHtmlTag extends WebMarkupContainer { public LocalizedHtmlTag(String id

Re: How can i change lang attribute in html markup tag?

2011-01-21 Thread Martin Grigorov
Yes, sorry. You need to override #isTransparentResolver() WebMarkupContainer htmlTag = new WebMarkupContainer("html") { public boolean isTransparentResolver() { return true; } }; On Fri, Jan 21, 2011 at 12:25 PM, Mike Mander wrote: > Am 21.01.2011 09:17, schrieb Martin Grigorov: > > Tr

Re: How can i change lang attribute in html markup tag?

2011-01-21 Thread Mike Mander
Am 21.01.2011 09:17, schrieb Martin Grigorov: Try with : in .html: in .java: WebMarkupContainer htmlTag = new WebMarkupContainer("html"); htmlTag.add(new SimpleAttributeModifier("lang", getSession().getLocale().toString()); htmlTag.setTransparentResolver(true); // check the javadoc of thi

Re: How can i change lang attribute in html markup tag?

2011-01-21 Thread Martin Grigorov
Try with : in .html: in .java: WebMarkupContainer htmlTag = new WebMarkupContainer("html"); htmlTag.add(new SimpleAttributeModifier("lang", getSession().getLocale().toString()); htmlTag.setTransparentResolver(true); // check the javadoc of this method On Fri, Jan 21, 2011 at 8:19 AM, Mike

Re: How can i change lang attribute in html markup tag?

2011-01-20 Thread Mike Mander
With further investigation i found a hint on using an IMarkupFilter. Is there an example with this for my problem? Thanks Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users

How can i change lang attribute in html markup tag?

2011-01-18 Thread Mike Mander
Hello, i'm new to wicket and the mailing list. I already checked the search machines but didn't found anything. i have to migrate a jsp. In the jsp there is a html tag like this: http://www.w3.org/1999/xhtml"; xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"; lang