class specialpanel extends feedbackpanel implements iheadercontributor {
abstractdefaultajaxbehavior callback;
public specialpanel() {
callback=new abstractdefaultajaxbehavior() {
getCallbackUrl(boolean active) {
return super.getCallbackUrl+"&message='+message+''";
}
onevent(target) {
string message=getrequest().getparameter("message");
error(message);
target.addcomponent(specialpanel.this);
};
add(callback);
}
onrenderhead(response) {
response.renderjavascript("function report(message) {
"+callback.getcallbackscript() +" }");
}
}
then in your js call report(message)
-igor
On Fri, May 20, 2011 at 11:04 AM, eugenebalt <[email protected]> wrote:
> Sorry, but can someone help? This is pretty urgent.
>
> I like the 2nd idea, it looks easier to implement. I need to issue an AJAX
> request for the FeedbackPanel inside of JavaScript. The only thing is, I
> haven't used AJAX by itself. Thanks
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Set-FeedbackPanel-with-Error-from-JavaScript-tp3536164p3539185.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]