Re: Calling wicket from javascript

2012-05-07 Thread jcf1974
I tried to call wicket from javascript without using a wicket behaviour,
 and the error/warning i get is  "wcall is not defined".




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Calling-wicket-from-javascript-tp4614627p4614859.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Calling wicket from javascript

2012-05-07 Thread jcf1974
Hello, 
 I'm new in this forum, and i love wicket!!!
My question is: 
What wrong with this code?

   @Override
protected IAjaxCallDecorator getAjaxCallDecorator() {
return new
AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {
private static final long serialVersionUID = 1L;

@Override
public CharSequence preDecorateScript(CharSequence
script) {
return "function callWicket(){" + script + "};
$('.search-div').slideDown('slow',callWicket());";
}
};
}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Calling-wicket-from-javascript-tp4614627.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org