> component - both Ajax and non-Ajax.
>
> On Thu, Apr 26, 2012 at 4:46 PM, Jordi Deu-Pons 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'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();
> Aj
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();
AjaxRequestTar
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 Behavio
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
__
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
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)){
pro
ache.org
Subject: Re: how 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();
bristol <[EMAIL PROTECTED]> 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 Compound