Download file and redirect in one go?

2014-12-04 Thread Stefan Renz
Hi, after a form submission, I'd like to redirect the user to another page, and stream a file to the browser (generated as a result of the form submission). How would I achieve this? I can do both single steps, but not both together... Thanks, bye, Stefan

Re: Download file and redirect in one go?

2014-12-04 Thread Ernesto Reinaldo Barreiro
After submit redirect to the new page that automatically trigger an AJAX request and use https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow On Thu, Dec 4, 2014 at 12:17 PM, Stefan Renz s.r...@efonds.com wrote: Hi, after a form submission, I'd like

Production deployment ajax problem

2014-12-04 Thread armandoxxx
Hey guys .. I've got problem with AjaxFallbackLink in production deployment ... for example : SettingsComponent.this.hideAll(); hides all panels (sets visibility to false) SettingsComponent.this.infoComponent.setVisible(true); sets desired panel to visible

Re: Serve file without download links etc

2014-12-04 Thread fred-fri
Ended up doing something like this: //in Application init mountResource(file, new ResourceReference() { @Override public IResource getResource() { return new AbstractResource() { @Override protected ResourceResponse newResourceResponse(Attributes

jqueryuidatepicker Wicket.Ajax: FunctionsExecuter.processNext: TypeError: Cannot read property 'indexOf' of undefined

2014-12-04 Thread fachhoch
getting this error Wicket.Ajax: FunctionsExecuter.processNext: TypeError: Cannot read property 'indexOf' of undefined panel has a text-field onDomReady I calling jqueryui.datepicker() function to modify this text-field. Any ajax updates after clicking on the calendar icon or entering text

Re: Production deployment ajax problem

2014-12-04 Thread Martin Grigorov
Hi, You need to call component.setOutputMarkupPlaceholderTag(true) for all components which are hidden and should be shown with Ajax. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Dec 4, 2014 at 10:55 AM, armandoxxx armando@dropchop.com wrote: Hey

Re: Production deployment ajax problem

2014-12-04 Thread armandoxxx
This ... ... does not help ... and to tell you the truth I don't want these panels to show in markup ... I just want my panelWrapper to have content replaced with the new panel (which should be visible) Regards Armando -- View this message in context:

Re: Production deployment ajax problem

2014-12-04 Thread armandoxxx
this is all the code I have for this panels ... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668618.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Production deployment ajax problem

2014-12-04 Thread Martin Grigorov
Then fire the browser debugger and check what id the old id of the wrapper and what is the id for the component element in the ajax response. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Dec 4, 2014 at 1:59 PM, armandoxxx armando@dropchop.com wrote:

Re: Production deployment ajax problem

2014-12-04 Thread Ernesto Reinaldo Barreiro
Hi, panelWrapper is the one that needs .setOutputMarkupPlaceholderTag(true) On Thu, Dec 4, 2014 at 12:59 PM, armandoxxx armando@dropchop.com wrote: This ... ... does not help ... and to tell you the truth I don't want these panels to show in markup ... I just want my panelWrapper to

Re: Production deployment ajax problem

2014-12-04 Thread armandoxxx
tried it .. does not help ... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668621.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Production deployment ajax problem

2014-12-04 Thread armandoxxx
checking it out ... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668622.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: Production deployment ajax problem

2014-12-04 Thread Martin Grigorov
and this.aboutComponent.setOutputMarkupId(true); this.accountComponent.setOutputMarkupId(true); this.alertsComponent.setOutputMarkupId(true); this.infoComponent.setOutputMarkupId(true); are not really needed Martin Grigorov Wicket Training and Consulting

Re: Production deployment ajax problem

2014-12-04 Thread armandoxxx
removed it ;) btw ... HTML code wicket:container gets ID id7c on first load .. NOW I PRESS BUTTON to show another panel in response I get -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668624.html Sent from the

Re: Production deployment ajax problem

2014-12-04 Thread Ernesto Reinaldo Barreiro
replace wicket container by a div. In production it will banish. On Thu, Dec 4, 2014 at 1:10 PM, armandoxxx armando@dropchop.com wrote: removed it ;) btw ... HTML code wicket:container gets ID id7c on first load .. NOW I PRESS BUTTON to show another panel in response I get

Re: Production deployment ajax problem

2014-12-04 Thread Ernesto Reinaldo Barreiro
vanish On Thu, Dec 4, 2014 at 1:22 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: replace wicket container by a div. In production it will banish. On Thu, Dec 4, 2014 at 1:10 PM, armandoxxx armando@dropchop.com wrote: removed it ;) btw ... HTML code wicket:container

Re: jqueryuidatepicker Wicket.Ajax: FunctionsExecuter.processNext: TypeError: Cannot read property 'indexOf' of undefined

2014-12-04 Thread fachhoch
It my javascript issue not with wicket. I resolved it. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/jqueryuidatepicker-Wicket-Ajax-FunctionsExecuter-processNext-TypeError-Cannot-read-property-indexOf-d-tp4668609p4668610.html Sent from the Users forum

Re: Production deployment ajax problem

2014-12-04 Thread armandoxxx
It works now replaced wicket:container with div and it works regards Armando PS: FML -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668629.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Production deployment ajax problem

2014-12-04 Thread armandoxxx
trying ... thank you ! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668627.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: Production deployment ajax problem

2014-12-04 Thread armandoxxx
it's been a while since I've read the https://cwiki.apache.org/confluence/display/WICKET/Wicket%27s+XHTML+tags#Wicket'sXHTMLtags-Elementwicket:container thank you for your help Regards Armando -- View this message in context:

Force AjaxLink to be enabled

2014-12-04 Thread ChambreNoire
Hi, Having recently migrated an old app all the way from 1.3 to 6, one of the issues I encountered was that links and other component take their parents into consideration when determining their enabled state (introduced in 1.4?). This is a real pain for me in a few specific cases. I can't

Re: Force AjaxLink to be enabled

2014-12-04 Thread Martin Grigorov
Hi, Yes. There is! But I will tell you how to do it only if you update your thread about the caret selection with the final solution so other users can also use it ;-) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Dec 4, 2014 at 4:51 PM, ChambreNoire

Re: Force AjaxLink to be enabled

2014-12-04 Thread ChambreNoire
Ha! Yes I was going to do that tonight but fine. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Force-AjaxLink-to-be-enabled-tp4668631p4668633.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Force AjaxLink to be enabled

2014-12-04 Thread Ernesto Reinaldo Barreiro
LOL On Thu, Dec 4, 2014 at 4:04 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Yes. There is! But I will tell you how to do it only if you update your thread about the caret selection with the final solution so other users can also use it ;-) Martin Grigorov Wicket Training and

Re: FIXED: TextField cursor reset mid-editing

2014-12-04 Thread ChambreNoire
OK so this is what I have. Disclaimer: I'm no javascript/jQuery expert so this is mostly cobbled together from things I have found online and tested in my particular situation. Any optimisations are more than welcome! So first the script (function($) { $.fn.getCaretPosition = function() {

Re: FIXED: TextField cursor reset mid-editing

2014-12-04 Thread Martin Grigorov
Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Dec 4, 2014 at 5:19 PM, ChambreNoire a...@tentelemed.com wrote: OK so this is what I have. Disclaimer: I'm no javascript/jQuery expert so this is mostly cobbled together from things I have found

Re: Force AjaxLink to be enabled

2014-12-04 Thread Martin Grigorov
Check AbstractLink#isLinkEnabled() Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Dec 4, 2014 at 5:13 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: LOL On Thu, Dec 4, 2014 at 4:04 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi,

Re: Force AjaxLink to be enabled

2014-12-04 Thread ChambreNoire
Haha I had already overridden AbstractLink#isLinkEnabled() and yes now Wicket renders a link rather than a span but clicking doesn't work. OnClick() isn't called at all. CN -- View this message in context:

Re: Download file and redirect in one go?

2014-12-04 Thread Stefan Renz
Hi, how do I automatically trigger an AJAX request? Timer behavior? Any other ideas? I'd rather like to keep the download (resource generating code) on the page that contains the form. The page I want to redirect to has nothing to do with the resource... Thanks, bye Stefan Ernesto Reinaldo

Re: Download file and redirect in one go?

2014-12-04 Thread Ernesto Reinaldo Barreiro
You can also 1- mount a resource and serve the file from there. 2- Once new page is loaded you do setTimeout(\window.location.href=' + url + '\, 100); where url is the URL of the resource. This will trigger download. On Thu, Dec 4, 2014 at 4:50 PM, Stefan Renz s.r...@efonds.com wrote: Hi,

Wickedcharts (Wicked charts) Best Practice

2014-12-04 Thread NeilLeigh
I would like thank Tom Hombergs for Wickedcharts . It is a tremendous tool. I’m still getting to grips with it (and with Highcharts for that matter) but things are gradually falling into place.I’d like to ask a question regarding recommended methodology regarding the source of chart ‘constants’.