Re: Help with creating an AJAX-enabled component - EditableLink and EditableLabel

2013-01-08 Thread Ondrej Zizka
I've looked at it, and the communication there revolves around JSON sent for the component to show tags. I haven't found how to send the HTML of the element. Maybe I understand the concept wrong. FWIK, Wicket has a small lib on client side which replaces HTML of elements which are added to

Re: Help with creating an AJAX-enabled component - EditableLink and EditableLabel

2013-01-08 Thread Ondrej Zizka
Ok, I stared at the code for a little longer and realized that I can use the same principle - simply send the value to server, and return back the new model value (most likely the same value). Still, any comments below welcome :) And, what would change if I wanted this also for Wicket 1.5? So

Re: Help with creating an AJAX-enabled component - EditableLink and EditableLabel

2013-01-05 Thread Martin Grigorov
Hi, Recently I had to make an EditableLabel that does most of the work on the client side, i.e. it notifies the server with Ajax call only when the value is changed. I used https://github.com/caphun/jquery.inlineedit/blob/master/jquery.inlineedit.js (I simplified it for our needs) for that. The

Help with creating an AJAX-enabled component - EditableLink and EditableLabel

2013-01-04 Thread Ondrej Zizka
Hi all, I am creating an editable label and link which better suits my needs than existing EditableLabel. Anyone willing toguide me a bit? Basically, what I needto know, is how to properly ajaxify it.Precisely, to allow events to be sent to the server, and to re-renderusing the new model