Re: Download Link doesn't work on 1.5.x

2012-01-19 Thread ricmancio
no question, *I replaced:* Link link = new Link("download"){ @Override public void onClick() { IResourceStream stream = new FileResourceStream(new File(path + fileName)); getRequestCycle().scheduleRequestHandlerAfterCurrent(new ResourceStreamReques

Re: Download Link doesn't work on 1.5.x

2012-01-19 Thread ricmancio
thanks for the suggestion, but now it works also from the documentation: *https://cwiki.apache.org/WICKET/migration-to-wicket-15.html* *Redirect to non wicket or external page* suggests replacing old code : * getRequestCycle().setRequestTarget(new RedirectRequestTarget("/usage.html"));* with:

Download Link doesn't work on 1.5.x

2012-01-19 Thread ricmancio
In Wicket 1.4.x I used Link link = new Link("download"){ @Override public void onClick() { *IResourceStream stream = new FileResourceStream(new File(path + fileName)); getRequestCycle().setRequest

Re: TinyMCE and textarea : validation problem

2011-12-29 Thread ricmancio
I solved it. I added TinyMceAjaxSubmitModifier class to my AjaxButton: fc = new AjaxButton("button",form){ . }; fc.add(new TinyMceAjaxSubmitModifier()); form.add(fc); *In conclusion:* I added *TinyMceBehavior *to my textarea field and I added *TinyMceAjaxSubmitModif

TinyMCE and textarea : validation problem

2011-12-28 Thread ricmancio
I have a panel where I have a form,feedback and textarea field done so: //*add feedback panel* final FeedbackPanel feedback = new FeedbackPanel("feedback"); feedback.setOutputMarkupId(true); add(feedback); //*add form* Form form = new Form("form", new CompoundP