AjaxLazyLoadPanel is block other page render while processing
We have using 6.6.0 in our application. In home page we using AjaxLazyLoadPanel to load the widgets data, It take long time to render the widget. When loading widget, if click the other page, the page is not rendered immediately. After completed AjaxLazyLoadPanel process then only the clicked page is render.The AjaxLazyLaodPanel is blocking my request. Hep me to solve this problem?.
Re: I have not found file where per session data get store under work Folder in wicket application
Hi, Which web container do you use ? Where did you look at ? Martin Grigorov Wicket Training and Consulting On Sat, Feb 8, 2014 at 10:02 AM, Sharad Raut raut.sha...@gmail.com wrote: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/I-have-not-found-file-where-per-session-data-get-store-under-work-Folder-in-wicket-application-tp4664316.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: AjaxLazyLoadPanel is block other page render while processing
Hi, See http://markmail.org/message/4gxbwbhoqojutox6 Martin Grigorov Wicket Training and Consulting On Mon, Feb 10, 2014 at 9:31 AM, MadasamySankarapandian madas...@mcruncher.com wrote: We have using 6.6.0 in our application. In home page we using AjaxLazyLoadPanel to load the widgets data, It take long time to render the widget. When loading widget, if click the other page, the page is not rendered immediately. After completed AjaxLazyLoadPanel process then only the clicked page is render.The AjaxLazyLaodPanel is blocking my request. Hep me to solve this problem?.
Re: Wicket Wizzard Question / Custom Overview Bars
Hi Paul, thanx a lot for your detailed answer. :-) Helped much, but my primary question was, why the overviewbar is on the left hand side, not on the top. Possibly the header is what I am looking for, showing the current step information(?). But then, I still do not know, what the overviewbar was originally meant for. Patrick :-) Am 08.02.2014 19:36, schrieb Paul Bors: Find the panel you want to modify, say the WizardButtonBar and extend it: public class MyWizardButtonBar extends WizardButtonBar { private static final long serialVersionUID = 1L; public MyWizardButtonBar(String id, Wizard wizard, final boolean finishOnAnyStep) { super(id, wizard); addOrReplace(new MyFinishButton(finish, wizard) { private static final long serialVersionUID = 1L; @Override public boolean isEnabled() { return (super.isEnabled() || finishOnAnyStep); } }); } } Then change its HTML to whatever you want, ie MyWizardButtonBar.html I have as: html xmlns:wicket=http://wicket.apache.org; wicket:panel div align=right input wicket:id=previous type=submit class=toolbox-form-submit value=[Previous] / input wicket:id=next type=submit class=toolbox-form-submit value=[Next] / input wicket:id=last type=submit class=toolbox-form-submit value=[Last] / input wicket:id=cancel type=submit class=toolbox-form-submit value=[Cancel] / input wicket:id=finish type=submit class=toolbox-form-submit value=[Finish] / /div /wicket:panel /html Finally, extend the Wizard itself and override the factory method you need changed: public class MyWizard extends Wizard { ... @Override protected Component newButtonBar(String id) { return new MyWizardButtonBar(id, this, finishOnAnyStep()); } ... } Then change the Wizard's HTML as you please but preserve the Wicket component tree hirarachy. Something like this: html xmlns:wicket=http://wicket.apache.org; wicket:panel form wicket:id=form table class=wicketExtensionsWizardOuterTable tr td valign=top span wicket:id=overview[[Overview]]/span /td td valign=top table class=wicketExtensionsWizardInnerTable tr class=wicketExtensionsWizardHeaderRow td valign=top class=wicketExtensionsWizardHeaderspan wicket:id=header[[Header]]/span/td /tr tr class=wicketExtensionsWizardViewRow td valign=top class=wicketExtensionsWizardViewdiv wicket:id=view class=wicketExtensionsWizardViewInner[[View]]/div/td /tr tr class=wicketExtensionsWizardFeedbackRow td valign=top class=wicketExtensionsWizardFeedbackspan wicket:id=feedback[[Feeback]]/span/td /tr tr class=wicketExtensionsWizardButtonBarRow td valign=top class=wicketExtensionsWizardButtonBarspan wicket:id=buttons[[Buttons]]/span/td /tr /table /td /tr /table /form /wicket:panel /html On a side note, I didn't like the default of the Finish button so I changed that too: public class MyFinishButton extends WizardButton { private static final long serialVersionUID = 1L; public MyFinishButton(String id, IWizard wizard) { super(id, wizard, org.apache.wicket.extensions.wizard.finish); } /** * @see org.apache.wicket.Component#isEnabled() */ public boolean isEnabled() { IWizardStep activeStep = getWizardModel().getActiveStep(); return (activeStep != null getWizardModel().isLastStep(activeStep)); } /** * @see org.apache.wicket.extensions.wizard.WizardButton#onClick() */ public final void onClick() { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, notify the wizard if(step.isComplete()) { getWizardModel().finish(); } else { error(getLocalizer().getString( org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete, this) ); } } } On Fri, Feb 7, 2014 at 9:04 AM, Patrick Davids patrick.dav...@nubologic.com wrote: Hi all, did someone already noticed, a custom overriden overview-bar of wickets wizzard is
Re: Wicket Wizzard Question / Custom Overview Bars
Hi Patrick, usually a wizard has an overview on the left side: http://en.wikipedia.org/wiki/Wizard_%28software%29 Regards Sven On 02/10/2014 10:04 AM, Patrick Davids wrote: Hi Paul, thanx a lot for your detailed answer. :-) Helped much, but my primary question was, why the overviewbar is on the left hand side, not on the top. Possibly the header is what I am looking for, showing the current step information(?). But then, I still do not know, what the overviewbar was originally meant for. Patrick :-) Am 08.02.2014 19:36, schrieb Paul Bors: Find the panel you want to modify, say the WizardButtonBar and extend it: public class MyWizardButtonBar extends WizardButtonBar { private static final long serialVersionUID = 1L; public MyWizardButtonBar(String id, Wizard wizard, final boolean finishOnAnyStep) { super(id, wizard); addOrReplace(new MyFinishButton(finish, wizard) { private static final long serialVersionUID = 1L; @Override public boolean isEnabled() { return (super.isEnabled() || finishOnAnyStep); } }); } } Then change its HTML to whatever you want, ie MyWizardButtonBar.html I have as: html xmlns:wicket=http://wicket.apache.org; wicket:panel div align=right input wicket:id=previous type=submit class=toolbox-form-submit value=[Previous] / input wicket:id=next type=submit class=toolbox-form-submit value=[Next] / input wicket:id=last type=submit class=toolbox-form-submit value=[Last] / input wicket:id=cancel type=submit class=toolbox-form-submit value=[Cancel] / input wicket:id=finish type=submit class=toolbox-form-submit value=[Finish] / /div /wicket:panel /html Finally, extend the Wizard itself and override the factory method you need changed: public class MyWizard extends Wizard { ... @Override protected Component newButtonBar(String id) { return new MyWizardButtonBar(id, this, finishOnAnyStep()); } ... } Then change the Wizard's HTML as you please but preserve the Wicket component tree hirarachy. Something like this: html xmlns:wicket=http://wicket.apache.org; wicket:panel form wicket:id=form table class=wicketExtensionsWizardOuterTable tr td valign=top span wicket:id=overview[[Overview]]/span /td td valign=top table class=wicketExtensionsWizardInnerTable tr class=wicketExtensionsWizardHeaderRow td valign=top class=wicketExtensionsWizardHeaderspan wicket:id=header[[Header]]/span/td /tr tr class=wicketExtensionsWizardViewRow td valign=top class=wicketExtensionsWizardViewdiv wicket:id=view class=wicketExtensionsWizardViewInner[[View]]/div/td /tr tr class=wicketExtensionsWizardFeedbackRow td valign=top class=wicketExtensionsWizardFeedbackspan wicket:id=feedback[[Feeback]]/span/td /tr tr class=wicketExtensionsWizardButtonBarRow td valign=top class=wicketExtensionsWizardButtonBarspan wicket:id=buttons[[Buttons]]/span/td /tr /table /td /tr /table /form /wicket:panel /html On a side note, I didn't like the default of the Finish button so I changed that too: public class MyFinishButton extends WizardButton { private static final long serialVersionUID = 1L; public MyFinishButton(String id, IWizard wizard) { super(id, wizard, org.apache.wicket.extensions.wizard.finish); } /** * @see org.apache.wicket.Component#isEnabled() */ public boolean isEnabled() { IWizardStep activeStep = getWizardModel().getActiveStep(); return (activeStep != null getWizardModel().isLastStep(activeStep)); } /** * @see org.apache.wicket.extensions.wizard.WizardButton#onClick() */ public final void onClick() { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, notify the wizard if(step.isComplete()) { getWizardModel().finish(); } else { error(getLocalizer().getString( org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete, this) ); } } } On Fri, Feb 7, 2014 at 9:04 AM, Patrick
RE: Wicket Wizzard Question / Custom Overview Bars
It's just a design decision ... the default design is that the steps are displayed on the left side (like in Jira's Wizard for example). But like Paul described you are free to change this like it fits for you. Best Regards, Marvin Richter -Original Message- From: Patrick Davids [mailto:patrick.dav...@nubologic.com] Sent: Monday, February 10, 2014 10:06 AM To: users@wicket.apache.org Subject: Re: Wicket Wizzard Question / Custom Overview Bars Hi Paul, thanx a lot for your detailed answer. :-) Helped much, but my primary question was, why the overviewbar is on the left hand side, not on the top. Possibly the header is what I am looking for, showing the current step information(?). But then, I still do not know, what the overviewbar was originally meant for. Patrick :-) Am 08.02.2014 19:36, schrieb Paul Bors: Find the panel you want to modify, say the WizardButtonBar and extend it: public class MyWizardButtonBar extends WizardButtonBar { private static final long serialVersionUID = 1L; public MyWizardButtonBar(String id, Wizard wizard, final boolean finishOnAnyStep) { super(id, wizard); addOrReplace(new MyFinishButton(finish, wizard) { private static final long serialVersionUID = 1L; @Override public boolean isEnabled() { return (super.isEnabled() || finishOnAnyStep); } }); } } Then change its HTML to whatever you want, ie MyWizardButtonBar.html I have as: html xmlns:wicket=http://wicket.apache.org; wicket:panel div align=right input wicket:id=previous type=submit class=toolbox-form-submit value=[Previous] / input wicket:id=next type=submit class=toolbox-form-submit value=[Next] / input wicket:id=last type=submit class=toolbox-form-submit value=[Last] / input wicket:id=cancel type=submit class=toolbox-form-submit value=[Cancel] / input wicket:id=finish type=submit class=toolbox-form-submit value=[Finish] / /div /wicket:panel /html Finally, extend the Wizard itself and override the factory method you need changed: public class MyWizard extends Wizard { ... @Override protected Component newButtonBar(String id) { return new MyWizardButtonBar(id, this, finishOnAnyStep()); } ... } Then change the Wizard's HTML as you please but preserve the Wicket component tree hirarachy. Something like this: html xmlns:wicket=http://wicket.apache.org; wicket:panel form wicket:id=form table class=wicketExtensionsWizardOuterTable tr td valign=top span wicket:id=overview[[Overview]]/span /td td valign=top table class=wicketExtensionsWizardInnerTable tr class=wicketExtensionsWizardHeaderRow td valign=top class=wicketExtensionsWizardHeaderspan wicket:id=header[[Header]]/span/td /tr tr class=wicketExtensionsWizardViewRow td valign=top class=wicketExtensionsWizardViewdiv wicket:id=view class=wicketExtensionsWizardViewInner[[View]]/div/td /tr tr class=wicketExtensionsWizardFeedbackRow td valign=top class=wicketExtensionsWizardFeedbackspan wicket:id=feedback[[Feeback]]/span/td /tr tr class=wicketExtensionsWizardButtonBarRow td valign=top class=wicketExtensionsWizardButtonBarspan wicket:id=buttons[[Buttons]]/span/td /tr /table /td /tr /table /form /wicket:panel /html On a side note, I didn't like the default of the Finish button so I changed that too: public class MyFinishButton extends WizardButton { private static final long serialVersionUID = 1L; public MyFinishButton(String id, IWizard wizard) { super(id, wizard, org.apache.wicket.extensions.wizard.finish); } /** * @see org.apache.wicket.Component#isEnabled() */ public boolean isEnabled() { IWizardStep activeStep = getWizardModel().getActiveStep(); return (activeStep != null getWizardModel().isLastStep(activeStep)); } /** * @see org.apache.wicket.extensions.wizard.WizardButton#onClick() */ public final void onClick() { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state,
About getMarkupType() from MarkupContainer
Hi I have an issue on wicket-jade (https://github.com/decebals/wicket-jade/issues/1) and I cannot find a nice solution. The use case is that I have an EmbeddedPanel (html markup) in a JadePanel (jade markup) and when I try to run my test I get a MarkupNotFoundException: Failed to find markup file associated. The problem is that JadePanel (parent of EmbeddedPanel) returns new MarkupType(jade, text/x-jade) on getMarkupType and current implementation for Markupcontainer.getMarkupType is: public MarkupType getMarkupType() { MarkupContainer parent = getParent(); if (parent != null) { return parent.getMarkupType(); } return null; } It's clear that wicket search for EmbeddedPanel.jade and not EmbeddedPanel.html It's a solution to override getMarkupType() from EmbeddedPanel to returnMarkupType.HTML_MARKUP_TYPE but I want something more general because I must override manually all my panels embedded in JadePanel. Any idea? Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/About-getMarkupType-from-MarkupContainer-tp4664340.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
Palette - sort on change
Hello, i am looking for a way to sort a palette (available and selected items) automatically on change. I found this thread from 2010 (http://apache-wicket.1842946.n4.nabble.com/automatic-palette-sorting-td1894198.html). Since the thread is 3 years old, i wanted to know if there is a more elegant solution than patch the JavaScript file? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Palette-sort-on-change-tp4664342.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: About getMarkupType() from MarkupContainer
Forget about. I resolved my problem much easy. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/About-getMarkupType-from-MarkupContainer-tp4664340p4664343.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: The AjaxSubmitLink does not respond after migrating to wicket 6
Did you have any luck with the migration? Im currently facing the same issue, none of my Ajax components seems to be working. Should we do any configuration changes? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/The-AjaxSubmitLink-does-not-respond-after-migrating-to-wicket-6-tp4664294p4664339.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: Modular Wicket Application
You can get sample project from github: https://github.com/ReginaldasR/wicket-modular 2014-02-09 18:41 GMT+02:00 IowA [via Apache Wicket] ml-node+s1842946n4664328...@n4.nabble.com: You can get sample project from github: https://github.com/ReginaldasR/wicket-modular -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Modular-Wicket-Application-tp4664317p4664328.html To unsubscribe from Modular Wicket Application, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4664317code=cmVnaW5hbGRhc3JAZ21haWwuY29tfDQ2NjQzMTd8MTc4MDQ3NjU5 . NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- Pagarbiai Reginaldas Raila el. paštas: reginald...@gmail.com mob. 863850968 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Modular-Wicket-Application-tp4664317p4664331.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: Modular Wicket Application
You can get sample project from github: https://github.com/ReginaldasR/wicket-modular -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Modular-Wicket-Application-tp4664317p4664328.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
How to implement an auto-save behavior
I’m attempting to migrate an auto-saving behavior from wicket 1.5 to wicket 6. In wicket 1.5 it worked by doing something like this every 30 seconds to loop through auto-save-enabled forms on the page and submit them: $(form.ajaxAutoSave).each(function() { var form = $(this); wicketSubmitFormById(form.attr('id')...) } The AJAX migration documentation - https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax - suggests replacing Wicket.submitFormById with Wicket.Ajax.submitForm , but this method does not appear to exist: replacing the above code with $(form.ajaxAutoSave).each(function() { var form = $(this); //unsure of expected params so just picked one from the migration documentation Wicket.Ajax.submitForm({f:form.attr('id')}); } When the function is called I can see the following error in the console: Uncaught TypeError: Object # has no method 'submitForm' So I went into the console and I can see that Wicket.Ajax is defined, but Wicket.Ajax.submitForm is not. Is the documentation incorrect here, or is there some additional step to take to gain access to the submitForm method? Alternatively - is there a better way to create an auto-save behavior? AjaxFormSubmitBehavior would appear to almost meet the need, if there is a way to tie it to a timer-generated event. Boris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to implement an auto-save behavior
Maybe Wicket.Ajax.Call.subitMultipartForm? On Mon, Feb 10, 2014 at 4:56 PM, Boris Goldowsky bgoldow...@cast.orgwrote: I'm attempting to migrate an auto-saving behavior from wicket 1.5 to wicket 6. In wicket 1.5 it worked by doing something like this every 30 seconds to loop through auto-save-enabled forms on the page and submit them: $(form.ajaxAutoSave).each(function() { var form = $(this); wicketSubmitFormById(form.attr('id')...) } The AJAX migration documentation - https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax - suggests replacing Wicket.submitFormById with Wicket.Ajax.submitForm , but this method does not appear to exist: replacing the above code with $(form.ajaxAutoSave).each(function() { var form = $(this); //unsure of expected params so just picked one from the migration documentation Wicket.Ajax.submitForm({f:form.attr('id')}); } When the function is called I can see the following error in the console: Uncaught TypeError: Object # has no method 'submitForm' So I went into the console and I can see that Wicket.Ajax is defined, but Wicket.Ajax.submitForm is not. Is the documentation incorrect here, or is there some additional step to take to gain access to the submitForm method? Alternatively - is there a better way to create an auto-save behavior? AjaxFormSubmitBehavior would appear to almost meet the need, if there is a way to tie it to a timer-generated event. Boris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro
Re: How to implement an auto-save behavior
Thanks, but that also results in Wicket.Ajax.Call.submitMultipartForm is not a function”. I suspect the answer is to get the parameters set up correctly and then arrange for the result of getCallbackScript() to be called periodically. If someone else has done something like this and has a working example that would be really helpful. Boris On Feb 10, 2014, at 11:08 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Maybe Wicket.Ajax.Call.subitMultipartForm? On Mon, Feb 10, 2014 at 4:56 PM, Boris Goldowsky bgoldow...@cast.orgwrote: I'm attempting to migrate an auto-saving behavior from wicket 1.5 to wicket 6. In wicket 1.5 it worked by doing something like this every 30 seconds to loop through auto-save-enabled forms on the page and submit them: $(form.ajaxAutoSave).each(function() { var form = $(this); wicketSubmitFormById(form.attr('id')...) } The AJAX migration documentation - https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax - suggests replacing Wicket.submitFormById with Wicket.Ajax.submitForm , but this method does not appear to exist: replacing the above code with $(form.ajaxAutoSave).each(function() { var form = $(this); //unsure of expected params so just picked one from the migration documentation Wicket.Ajax.submitForm({f:form.attr('id')}); } When the function is called I can see the following error in the console: Uncaught TypeError: Object # has no method 'submitForm' So I went into the console and I can see that Wicket.Ajax is defined, but Wicket.Ajax.submitForm is not. Is the documentation incorrect here, or is there some additional step to take to gain access to the submitForm method? Alternatively - is there a better way to create an auto-save behavior? AjaxFormSubmitBehavior would appear to almost meet the need, if there is a way to tie it to a timer-generated event. Boris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to implement an auto-save behavior
Is not a function? If I look at the source code I see something like submitMultipartForm = function(context) { }, On Mon, Feb 10, 2014 at 5:41 PM, Boris Goldowsky bgoldow...@cast.orgwrote: Thanks, but that also results in Wicket.Ajax.Call.submitMultipartForm is not a function. I suspect the answer is to get the parameters set up correctly and then arrange for the result of getCallbackScript() to be called periodically. If someone else has done something like this and has a working example that would be really helpful. Boris On Feb 10, 2014, at 11:08 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Maybe Wicket.Ajax.Call.subitMultipartForm? On Mon, Feb 10, 2014 at 4:56 PM, Boris Goldowsky bgoldow...@cast.org wrote: I'm attempting to migrate an auto-saving behavior from wicket 1.5 to wicket 6. In wicket 1.5 it worked by doing something like this every 30 seconds to loop through auto-save-enabled forms on the page and submit them: $(form.ajaxAutoSave).each(function() { var form = $(this); wicketSubmitFormById(form.attr('id')...) } The AJAX migration documentation - https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax - suggests replacing Wicket.submitFormById with Wicket.Ajax.submitForm , but this method does not appear to exist: replacing the above code with $(form.ajaxAutoSave).each(function() { var form = $(this); //unsure of expected params so just picked one from the migration documentation Wicket.Ajax.submitForm({f:form.attr('id')}); } When the function is called I can see the following error in the console: Uncaught TypeError: Object # has no method 'submitForm' So I went into the console and I can see that Wicket.Ajax is defined, but Wicket.Ajax.submitForm is not. Is the documentation incorrect here, or is there some additional step to take to gain access to the submitForm method? Alternatively - is there a better way to create an auto-save behavior? AjaxFormSubmitBehavior would appear to almost meet the need, if there is a way to tie it to a timer-generated event. Boris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro
Re: How to implement an auto-save behavior
Hi, To submit a form all you need to provide to the object you pass to Wicket.Ajax.ajax() is the 'f' attribute: Wicket.Ajax.post({ u: 'url/to/AjaxFormSubmitBehavior', f: 'formId', sc: 'optionalSubmittingComponentId'}); I will update the Ajax chapter in the Reference guide soon to explain the JS API. Martin Grigorov Wicket Training and Consulting On Mon, Feb 10, 2014 at 5:48 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Is not a function? If I look at the source code I see something like submitMultipartForm = function(context) { }, On Mon, Feb 10, 2014 at 5:41 PM, Boris Goldowsky bgoldow...@cast.org wrote: Thanks, but that also results in Wicket.Ajax.Call.submitMultipartForm is not a function. I suspect the answer is to get the parameters set up correctly and then arrange for the result of getCallbackScript() to be called periodically. If someone else has done something like this and has a working example that would be really helpful. Boris On Feb 10, 2014, at 11:08 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Maybe Wicket.Ajax.Call.subitMultipartForm? On Mon, Feb 10, 2014 at 4:56 PM, Boris Goldowsky bgoldow...@cast.org wrote: I'm attempting to migrate an auto-saving behavior from wicket 1.5 to wicket 6. In wicket 1.5 it worked by doing something like this every 30 seconds to loop through auto-save-enabled forms on the page and submit them: $(form.ajaxAutoSave).each(function() { var form = $(this); wicketSubmitFormById(form.attr('id')...) } The AJAX migration documentation - https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax - suggests replacing Wicket.submitFormById with Wicket.Ajax.submitForm , but this method does not appear to exist: replacing the above code with $(form.ajaxAutoSave).each(function() { var form = $(this); //unsure of expected params so just picked one from the migration documentation Wicket.Ajax.submitForm({f:form.attr('id')}); } When the function is called I can see the following error in the console: Uncaught TypeError: Object # has no method 'submitForm' So I went into the console and I can see that Wicket.Ajax is defined, but Wicket.Ajax.submitForm is not. Is the documentation incorrect here, or is there some additional step to take to gain access to the submitForm method? Alternatively - is there a better way to create an auto-save behavior? AjaxFormSubmitBehavior would appear to almost meet the need, if there is a way to tie it to a timer-generated event. Boris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro
Re: Palette - sort on change
Hi, I think there is no better solution yet. Feel free to create a ticket for improvement. With a patch would be awesome! Martin Grigorov Wicket Training and Consulting On Mon, Feb 10, 2014 at 2:50 PM, smilingowl smilingow...@gmail.com wrote: Hello, i am looking for a way to sort a palette (available and selected items) automatically on change. I found this thread from 2010 ( http://apache-wicket.1842946.n4.nabble.com/automatic-palette-sorting-td1894198.html ). Since the thread is 3 years old, i wanted to know if there is a more elegant solution than patch the JavaScript file? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Palette-sort-on-change-tp4664342.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: AjaxLazyLoadPanel is block other page render while processing
I am sorry. I have solved this problem to improve getData() performance. On Tue, Feb 11, 2014 at 9:36 AM, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks for your suggestion. But problem remains same. *My html code like * . . *div wicket:id=label/div* . . *My java code like below* Class FooPanel extends Panel { public FooPanel() { . . . add(createLabel()); add(createAjaaxTimeBehaviour()); } private Label createLabel() { label = new Label(label, Loading); label.setOutputMarkupId(true); return label; } private AbstractAjaxTimerBehavior createAjaxTimeBehaviour() { return new AbstractAjaxTimerBehavior(Duration.seconds(1)) { @Override protected void onTimer(AjaxRequestTarget target) { //This method to take few seconds to fetch data * int count = getData();if (unKnownCount = 0) { FooComponent fooComponent = new FooComponent(label.getId(), count); fooComponent.setOutputMarkupId(true); label.replaceWith(fooComponent); target.add(fooComponent);} else { target.add(label);}* } }; } } Added this panel in FooPage. If click foo page from any other page the foo page render immediately. If click any other page from FooPage it takes few seconds to take render the page. On Mon, Feb 10, 2014 at 4:37 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, See http://markmail.org/message/4gxbwbhoqojutox6 Martin Grigorov Wicket Training and Consulting On Mon, Feb 10, 2014 at 9:31 AM, MadasamySankarapandian madas...@mcruncher.com wrote: We have using 6.6.0 in our application. In home page we using AjaxLazyLoadPanel to load the widgets data, It take long time to render the widget. When loading widget, if click the other page, the page is not rendered immediately. After completed AjaxLazyLoadPanel process then only the clicked page is render.The AjaxLazyLaodPanel is blocking my request. Hep me to solve this problem?.