Re: Modal failing to modify it's parent in ajax event

2017-05-09 Thread Martin Grigorov
On Tue, May 9, 2017 at 3:11 PM, Entropy wrote: > That would explain the javascript part. How would I get Wicket to do that > to manipulate the feedback panel? Or would I be better off rewriting using > I see no way how to do this. Wicket can detect that a Component

Re: Modal failing to modify it's parent in ajax event

2017-05-09 Thread Entropy
That would explain the javascript part. How would I get Wicket to do that to manipulate the feedback panel? Or would I be better off rewriting using the pnale style instead of the iframe style (which I am starting to lean towards). Brian Mulholland "For every complex problem, there is an

Re: Unwanted encoding of attribute value with AttributeModifier behavior

2017-05-09 Thread abrosich
Ok, thanks. Now it is clear. Regards A On Tue, 2017-05-09 at 14:26 +0200, Martin Grigorov wrote: > I'd just leave it as it is. > > You can switch it off by using component.setEscapeModelStrings(false) > but > this will disable the escaping for the component markup completely. > > The JS

Re: Unwanted encoding of attribute value with AttributeModifier behavior

2017-05-09 Thread Martin Grigorov
I'd just leave it as it is. You can switch it off by using component.setEscapeModelStrings(false) but this will disable the escaping for the component markup completely. The JS escaping is needed because not all developers/text editors use double quotes for the atttibute values. E.g.

Re: Unwanted encoding of attribute value with AttributeModifier behavior

2017-05-09 Thread abrosich
I'm sorry, I forgot to specify that it works well. It is just an aesthetic matter. Regards A On Tue, 2017-05-09 at 13:25 +0200, Martin Grigorov wrote: > Hi, > > Do you face issues with this quotes ? > I think they are harmless. The browser decodes them properly before > executing the JS

Re: Unwanted encoding of attribute value with AttributeModifier behavior

2017-05-09 Thread Martin Grigorov
Hi, Do you face issues with this quotes ? I think they are harmless. The browser decodes them properly before executing the JS code. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, May 9, 2017 at 1:09 PM, wrote: > > Hello, > I'm trying

Unwanted encoding of attribute value with AttributeModifier behavior

2017-05-09 Thread abrosich
Hello, I'm trying to add a "onchange" attribute to an "input" tag. The onchange attribute contains javascript code with apostrophes ('). These apostrophes are encoded () in the resulting html. Java code ... new AttributeModifier("onchange", new