Re: wicket ajax question
the problem was that i wasn't passing the target back as the response.. found it better to reuse the wicket ajax stuff when it comes to updating wicket panels... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-ajax-question-tp4650579p4650583.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
wicket ajax question
I have a panel with some content. It has an AjaxLink that I use to refresh the panel. In the onclick handler I refresh the content and target.add(component..) .. that all works great... but I want to do it another way. I add an AbstractAjaxBehavior to the panel, because I want to make ajax calls to it from the client. I override renderHead() to put some JS in the client header that I can use later to call back to my panel - it is a JS object with a function that sets up a $.ajax() call using the callbackURL of my behavior... I override onRequest() to catch the incoming ajax call... sure enough it gets hit in the debugger... I do my internal refresh of my panel's model ... Now I need to get it to re-render.. the AjaxLink did this via target.add(..component), so I figured I would get myself an AjaxRequestTarget and do the same: WebApplication app = (WebApplication)getComponent().getApplication(); AjaxRequestTarget target = app.newAjaxRequestTarget(getComponent().getPage()); ... then target.add(..component..) as before... however this time the panel doesn't appear to redraw... what am I missing? TIA -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-ajax-question-tp4650579.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
Re: WICKET AJAX QUESTION
How are you attempting to clean textbox? For example you could clear textbox setting model object to empty string and adding textbox to AjaxRequestTarget. Hi, i have one textbox. we send the value of text box to listchoice. On add button , we used ajax. But i am unable to clear the textbox value after successfully add. Plz help me. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WICKET-AJAX-QUESTION-tp4361992p4361992.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org