How to cleanup when plugin/behavior is removed through Ajax?

2012-03-15 Thread Stijn de Witt
Hi. We are using WiQuery in our application to attach some behaviors to some components. For example a resize behavior to react on the component being resized. I added some debug logging and I see that when we switch panels (through Ajax) all event listeners for the components on the new panel

RE: How to cleanup when plugin/behavior is removed through Ajax?

2012-03-15 Thread Stijn de Witt
like #remove(), #replaceWith(), etc. But I'm not sure this is the case when you remove a parent element of an element with event listeners. Better ask in jQuery forums. On Thu, Mar 15, 2012 at 11:22 AM, Stijn de Witt stijn.dew...@planonsoftware.com wrote: Hi. We are using WiQuery in our

RE: How to cleanup when plugin/behavior is removed through Ajax?

2012-03-15 Thread Stijn de Witt
through Ajax? On Thu, Mar 15, 2012 at 2:51 PM, Stijn de Witt stijn.dew...@planonsoftware.com wrote: Hi Martin, thanks for your quick response! AFAIK jQuery unbinds all registered event listeners for a DOM element when this element is removed with jQuery method like #remove(), #replaceWith(), etc

Wicket session in a Resource

2013-12-13 Thread Stijn de Witt
Hi Wicket gurus, We are trying to implement JSON RPC in Wicket. At first we had made a WebPage that would respond with application/json... However, we hit a problem here that Wicket parses the parameters of POST requests and puts them in the PageParameters map. From there we can get to the

RE: Wicket session in a Resource

2013-12-16 Thread Stijn de Witt
and add authentication for the resources. On Fri, Dec 13, 2013 at 12:13 PM, Stijn de Witt stijn.dew...@planonsoftware.com wrote: Hi Wicket gurus, We are trying to implement JSON RPC in Wicket. At first we had made a WebPage that would respond with application/json... However, we hit

RE: Show textfield as plaintext when disabled?

2014-03-03 Thread Stijn de Witt
It is fairly easy to style a textfield as plain text by disabling the border and giving it a transparent background color: input[readonly=readonly] { border: none; background: transparent; } -Stijn -Original Message- From: Entropy [mailto:blmulholl...@gmail.com] Sent:

RE: Show textfield as plaintext when disabled?

2014-03-03 Thread Stijn de Witt
I wouldn't call it cludgy... 'pragmatic' is the word that comes to mind :) Big advantage of styling the input as regular text instead of completely replacing the HTML element is that all other behavior remains as expected. The field is still submitted with the form etc. -Stijn -Original

RE: How to set meta tags prroperty for facebook and Open Graph?

2014-03-03 Thread Stijn de Witt
Have a look at the .html file corresponding to your Page class. You should be able to just add it there. -Stijn -Original Message- From: - [mailto:irresistible...@gmail.com] Sent: zondag 2 maart 2014 16:01 To: users@wicket.apache.org Subject: How to set meta tags prroperty for

RE: How to set meta tags prroperty for facebook and Open Graph?

2014-03-04 Thread Stijn de Witt
? On Monday 03 March 2014 10:05:55 Stijn de Witt wrote: Have a look at the .html file corresponding to your Page class. You should be able to just add it there. Sorry, I am newbe but not so stupid! I did it, my html file already have meta tags for facebook, but i want change content

RE: Add noise to the URL of ResourceLink component

2014-03-10 Thread Stijn de Witt
This! There are so many methods in Wicket final... I often ended up copying a whole class just because the method I wanted to override was final... -Original Message- From: BenHoit [mailto:benoit.lanoise...@orange.com] Sent: maandag 10 maart 2014 16:38 To: users@wicket.apache.org

RE: Add noise to the URL of ResourceLink component

2014-03-11 Thread Stijn de Witt
. -Stijn -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: maandag 10 maart 2014 17:28 To: users@wicket.apache.org Subject: Re: Add noise to the URL of ResourceLink component On Mon, Mar 10, 2014 at 6:20 PM, Stijn de Witt stijn.dew...@planonsoftware.com wrote