Re: How to suppress AJAX Debug JS
Hi, The Ajax debug window should not appear in deployment mode at all. On Thu, Nov 20, 2014 at 3:07 PM, Christian Smolka christian.smo...@etecture.de wrote: Hi @all! I'm using 6.18 and I'm in deployment mode and I already called this.getDebugSettings().setAjaxDebugModeEnabled(false); Wicket does this for you in DEPLOYMENT mode. No need to do it explicitly. But still the JQuery AJAX debug JS file is present in the final markup. So dropping following lines Wicket.Ajax.DebugWindow.enabled=true; Wicket.Ajax.DebugWindow.init(); in the browser's console still shows the debug panel. How do I really switch it off? Put a breakpoint at org.apache.wicket.resource.CoreLibrariesContributor#contributeAjax() and see why it goes into the 'if' branch. Thx in advance! Christian
How to suppress AJAX Debug JS
Hi @all! I'm using 6.18 and I'm in deployment mode and I already called this.getDebugSettings().setAjaxDebugModeEnabled(false); But still the JQuery AJAX debug JS file is present in the final markup. So dropping following lines Wicket.Ajax.DebugWindow.enabled=true; Wicket.Ajax.DebugWindow.init(); in the browser's console still shows the debug panel. How do I really switch it off? Thx in advance! Christian 0x1FB15F8A.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Ajax and JS
Hello, I want to perform an Ajax operation using a JS. The situation is that I have a Dialog (from JQuery, well actually WiQuery) and I want a button there to perform an Ajax operation. How do I bind JS and Ajax? I tried AbstractDefaultAjaxBehavior and getUrl. I tried to make an ajaxLink and then to simulate the onclick of it. No success.. Thanks for any help Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: Ajax and JS
in wicket examples there is an example that shows ajax with the prototype js lib, adapt that to use jquery. -igor On Tue, May 11, 2010 at 10:05 AM, Eyal Golan egola...@gmail.com wrote: Hello, I want to perform an Ajax operation using a JS. The situation is that I have a Dialog (from JQuery, well actually WiQuery) and I want a button there to perform an Ajax operation. How do I bind JS and Ajax? I tried AbstractDefaultAjaxBehavior and getUrl. I tried to make an ajaxLink and then to simulate the onclick of it. No success.. Thanks for any help Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax and JS
Hi Eyal, Why not use wicket native AJAX? On wiQuery there is a DialogButton class you can use to add buttons to the dialog. This class has a method public void setJsScope(JsScope jsScope) { this.jsScope = jsScope; } which you can easily use to write wicket AJAX callback. e.g. if(callbacks.contains(DraggableEvent.DRAG)){ draggableBehavior.setInnerDragEvent(new JsScopeUiEvent() { private static final long serialVersionUID = 1L; /* (non-Javadoc) * @see org.odlabs.wiquery.core.javascript.JsScope#execute(org.odlabs.wiquery.core.javascript.JsScopeContext) */ @Override protected void execute(JsScopeContext scopeContext) { scopeContext.append(wicketAjaxGet(' + getCallbackUrl(true) + + DRAG_TYPE + = + DraggableEvent.DRAG.toString().toLowerCase() + ',null,null, function() {return true;})); } }); } on DraggableAjaxBehavior Maybe WiQuery should provide a class ready to use for this use case. Best, Ernesto On Tue, May 11, 2010 at 7:05 PM, Eyal Golan egola...@gmail.com wrote: Hello, I want to perform an Ajax operation using a JS. The situation is that I have a Dialog (from JQuery, well actually WiQuery) and I want a button there to perform an Ajax operation. How do I bind JS and Ajax? I tried AbstractDefaultAjaxBehavior and getUrl. I tried to make an ajaxLink and then to simulate the onclick of it. No success.. Thanks for any help Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org