Hi Sven, im using this in regards to the picture element's and the values then are going through JS :/
I coded now around this for the JS part, but it would be nice to have a .setNoEscape(boolean ) option on the AttributeModifiert Browsers get the ampersand in URLs but JS is a nightmare with it; Funnywise, even if I go on the onComponentTag and try to do it there it gets escaped... not sure why though; Best & Thanks for the feedback! ----- Ursprüngliche Mail ----- > Von: "Sven Meier" <s...@meiers.net> > An: "users" <users@wicket.apache.org> > Gesendet: Sonntag, 18. August 2019 13:21:30 > Betreff: Re: AttributeModifier values gets escaped > Hi Korbinian, > > AttributeModifier always escapes its value, there's no way around that. > > Why aren't you starting with an escaped url in the first place? > > image.add(AttributeModifier.replace("src", imgUrl + "?a=1&b=2")); > > Have fun > > Sven > > > On 18.08.19 13:13, Korbinian Bachl wrote: >> Hi, >> >> I try to manipulate some tags on an WebMarkupContainer called image. If I do: >> >> image.add(AttributeModifier.replace("src", imgUrl + "?a=1&b=2")); >> >> the src is not as expected: "...?a=1&b=2" >> but its escaped as "...?a=1&amp;b=2" >> >> I tried setEscapeModelStrings false on the image itself, wont work and >> AttributeModifier has no way to escape.... >> >> Any idea what to do now? >> >> Best, >> >> KB >> >> --------------------------------------------------------------------- >> 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