Wicket 6-beta1 - How to call a javascript function after component render?

2012-04-26 Thread Jordi Deu-Pons
Hi, I'm developing a component that needs to call a javascript function after it's rendered (throw and AJAX update or a normal request). I get it running like this: @Override protected void onBeforeRender() { super.onBeforeRender(); AjaxRequestTarget target

Re: Wicket 6-beta1 - How to call a javascript function after component render?

2012-04-26 Thread Martin Grigorov
,  I'm developing a component that needs to call a javascript function after it's rendered (throw and AJAX update or a normal request).  I get it running like this:    @Override    protected void onBeforeRender() {        super.onBeforeRender();        AjaxRequestTarget target

Re: Wicket 6-beta1 - How to call a javascript function after component render?

2012-04-26 Thread Jordi Deu-Pons
of the component - both Ajax and non-Ajax. On Thu, Apr 26, 2012 at 4:46 PM, Jordi Deu-Pons jo...@jordeu.net wrote: Hi,  I'm developing a component that needs to call a javascript function after it's rendered (throw and AJAX update or a normal request).  I get it running like this:    @Override

Re: call a javascript

2012-02-10 Thread kamiseq
check wicket.ajax and its method getAjax or something like that. if you use AjaxEventBehavior then the ajax callback (which uses that js getAjax method) is already coded for you. pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __

Re: call a javascript

2012-02-10 Thread Kayode Odeyemi
Try any of these steps as described in the wiki: https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html https://cwiki.apache.org/WICKET/adding-javascript-from-wicket.html https://cwiki.apache.org/WICKET/how-to-write-json-response.html Wicket javascript integration is built on

call a javascript

2012-02-09 Thread cosmindumy
Hello again, I want to call a javascript when a java event. Actually on method mymethod() from my button I want to set a javascript and the first time the button is rerendered to call it. How can I do this? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/call

WicketTester and ajax call from javascript

2011-11-27 Thread Sebastiaan van Erk
Hi all, I've got a page which calls wicket from javascript as described by the page: https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html That is, in my JavaScript I call a function: function callWicket() { var wcall = wicketAjaxGet('$url$' + '$args$', function

Re: WicketTester and ajax call from javascript

2011-11-27 Thread Martin Grigorov
a page which calls wicket from javascript as described by the page: https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html That is, in my JavaScript I call a function: function callWicket() {   var wcall = wicketAjaxGet('$url$' + '$args$', function() { }, function

Re: WicketTester and ajax call from javascript

2011-11-27 Thread Sebastiaan van Erk
all, I've got a page which calls wicket from javascript as described by the page: https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html That is, in my JavaScript I call a function: function callWicket() { var wcall = wicketAjaxGet('$url$' + '$args$', function() { }, function

Re: WicketTester and ajax call from javascript

2011-11-27 Thread Sebastiaan van Erk
-javascript.html That is, in my JavaScript I call a function: function callWicket() { var wcall = wicketAjaxGet('$url$' + '$args$', function() { }, function() { }); } The args are of the form foo=bar as described. I also retrieve this argument when I receive the call in Wicket using (also

Re: correct way to call necessary javascript initialization when a component is added via ajax

2009-11-11 Thread svenmeier
For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/correct-way-to-call-necessary-javascript-initialization-when-a--component-is-added-via-ajax-tp26295973p26297483.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: correct way to call necessary javascript initialization when a component is added via ajax

2009-11-11 Thread Jeremy Thomerson
-- View this message in context: http://old.nabble.com/correct-way-to-call-necessary-javascript-initialization-when-a--component-is-added-via-ajax-tp26295973p26297483.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: correct way to call necessary javascript initialization when a component is added via ajax

2009-11-11 Thread mbrictson
-way-to-call-necessary-javascript-initialization-when-a--component-is-added-via-ajax-tp26295973p26307595.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: correct way to call necessary javascript initialization when a component is added via ajax

2009-11-11 Thread Sven Meier
Right? Wrong, see explanation below. Sven mbrictson wrote: Actually wicket-ajax.js is smart enough to fire these dom ready events after an ajax request. Of course, a jQuery $(document).ready() will not fire; neither will the ready events of other various JS libraries. However if you

Re: correct way to call necessary javascript initialization when a component is added via ajax

2009-11-11 Thread Peter Ross
On Wed, Nov 11, 2009 at 7:23 PM, svenmeier wrote: Why so complicated? because I started by looking at what wiquery did and then simplifying it to my case. However I wasn't sure if it was the correct approach or the most simple hence the question is there a better solution. @Override public

correct way to call necessary javascript initialization when a component is added via ajax

2009-11-10 Thread Peter Ross
Hi, I'm implementing a control which consists of an integer field and a slider where the slider comes from jquery UI. My question is that whenever the component is refreshed via ajax, you need to call the js initialization function. I've done this by adding a behaviour which determines the

Re: correct way to call necessary javascript initialization when a component is added via ajax

2009-11-10 Thread Jeremy Thomerson
Yes - this looks fine. There are multiple ways of accomplishing it, but this one is fine. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Nov 10, 2009 at 10:38 PM, Peter Ross p...@missioncriticalit.comwrote: Hi, I'm implementing a control which consists of an integer field and a

Re: correct way to call necessary javascript initialization when a component is added via ajax

2009-11-10 Thread Peter Ross
On Wed, Nov 11, 2009 at 3:48 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Tue, Nov 10, 2009 at 10:38 PM, Peter Ross p...@missioncriticalit.comwrote: Hi, I'm implementing a control which consists of an integer field and a slider where the slider comes from jquery UI. My

How do I call my javascript after each wicket partial update?

2008-01-11 Thread bmarvell
I'd like to be able to run a piece of javascript after each wicket ajax update. Is this possible without hacking the source and if so how? Thanks :) -- View this message in context: http://www.nabble.com/How-do-I-call-my-javascript-after-each-wicket-partial-update--tp14759508p14759508.html

Re: How do I call my javascript after each wicket partial update?

2008-01-11 Thread bmarvell
] -- View this message in context: http://www.nabble.com/How-do-I-call-my-javascript-after-each-wicket-partial-update--tp14759508p14760119.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e

Re: How do I call my javascript after each wicket partial update?

2008-01-11 Thread wicket user
in context: http://www.nabble.com/How-do-I-call-my-javascript-after-each-wicket-partial-update--tp14759508p14759508.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Re: How do I call my javascript after each wicket partial update?

2008-01-11 Thread Gerolf Seitz
? Thanks :) -- View this message in context: http://www.nabble.com/How-do-I-call-my-javascript-after-each-wicket-partial-update--tp14759508p14759508.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: How do I call my javascript after each wicket partial update?

2008-01-11 Thread Gerolf Seitz
update. Is this possible without hacking the source and if so how? Thanks :) -- View this message in context: http://www.nabble.com/How-do-I-call-my-javascript-after-each-wicket-partial-update--tp14759508p14759508.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: how to call a javascript function?

2007-11-15 Thread Dipu Seminlal
] wrote: Hi, I have a form in a page, after user fill some data in and press 'Save' I want to call/or not to call a javascript function, in my code I was try to do like: Form form = new Form(form, new CompoundPropertyModel(this)){ protected void onSubmit

RE: how to call a javascript function?

2007-11-15 Thread Clay Lehman
to call a javascript function? override the onComponentTag of the form object, hope this helps protected void onComponentTag(final ComponentTag tag) { super.onComponentTag(tag); tag.put(onSubmit, return yourValidateFunction(); } cheers -dipu On Nov 15, 2007 3:23 PM

how to call a javascript function?

2007-11-15 Thread raybristol
Hi, I have a form in a page, after user fill some data in and press 'Save' I want to call/or not to call a javascript function, in my code I was try to do like: Form form = new Form(form, new CompoundPropertyModel(this)){ protected void onSubmit