Re: Reload Wicket classes/markup without reloading Servlet Container
Hi, I also recommend this library https://github.com/stagemonitor/stagemonitor Stagemonitor has nice web page for tracking/monitoring. Thanks, Ilya - Orienteer(http://orienteer.org) - open source Business Application Platform On Fri, Sep 2, 2016 at 12:08 AM, Martin Grigorov wrote: > Hi, > > I use DCEVM (https://github.com/dcevm/dcevm). > It doesn't have all the bells and whisles like JRebel but it is FREE and > does a great job in reloading classes! > Combined with an embedded web container (as Tobias suggested) is the best! > > For reloading markup - Wicket does itself without any extermal help in DEV > mode. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Fri, Sep 2, 2016 at 8:59 AM, Martijn Dashorst < > martijn.dasho...@gmail.com > > wrote: > > > At € day job we pay a lot to use jrebel. Not perfect but does the job > > reasonably well. Unfortunately their new licensing model made it about 4 > > times more expensive for us to use it. > > > > Martijn > > > > On Friday, 2 September 2016, Tobias Soloschenko < > > tobiassolosche...@googlemail.com> wrote: > > > > > Hi, > > > > > > you could use Jetty and run it in debug mode within your IDE. See > > > StartExamples Java-Class > > > > > > https://github.com/apache/wicket/blob/master/wicket- > > > examples/src/test/java/org/apache/wicket/examples/StartExamples.java > > > > > > kind regards > > > > > > Tobias > > > > > > > Am 02.09.2016 um 03:19 schrieb James Selvakumar > > >: > > > > > > > > Dear Wicket community, > > > > > > > > May I know what techniques/tools are used by the community to reload > > > Wicket > > > > classes and markup without reloading Servlet Container to speed up > > > > development? > > > > > > > > -- > > > > Thanks & regards > > > > James Selvakumar > > > > mCruncher > > > > > > - > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > > > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > > > > > > -- > > Become a Wicket expert, learn from the best: http://wicketinaction.com > > >
Re: Form from post to multipart
Hello! Issue has been solved by the following code. What do you think about inclusion of it into official wicket code? /** * Update Form EncType to "multipart/form-data" of there is something which require multipart is in target ajax response */ public class FixFormEncTypeListener extends AjaxRequestTarget.AbstractListener { @Override public void onAfterRespond(Map map, IJavaScriptResponse response) { Set> formsToUpdate = new HashSet<>(); for (Map.Entry entry : map.entrySet()) { Component component = entry.getValue(); Form form = component.findParent(Form.class); if(form!=null && form.isMultiPart()) formsToUpdate.add(form.getRootForm()); } for (Form form : formsToUpdate) { response.addJavaScript("{var e = document.getElementById('"+form.getMarkupId()+"'); e.encoding= 'multipart/form-data'; e.encType=e.encoding;}"); } } } Thanks, Ilya - Orienteer(http://orienteer.org) - open source Business Application Platform On Mon, Sep 5, 2016 at 2:32 AM, Илья Нарыжный wrote: > It will not solve the problem... Component which want to be mutatable > doesn't want to know about parent forms. So forms in ajax mode should > somehow adjust encoding automatically, but resending of whole content of a > form is not good option, imho. > > Thanks, > > Ilya > > - > Orienteer(http://orienteer.org) - open source Business Application > Platform > > > On Mon, Sep 5, 2016 at 1:29 AM, Maxim Solodovnik > wrote: > >> Maybe you can use nested forms? >> >> On Mon, Sep 5, 2016 at 2:51 PM, Илья Нарыжный wrote: >> >> > Hello! >> > >> > Please help to figure out is there some good solution for the following >> > situation: >> > >> > There is a page with Form with in it. Form contains lots of components >> > underneath. And some components can be changed by AJAX from "view" >> > representation to "edit". And sometimes "edit" is some file upload >> > component. And in this case to work proporly: form encoding should be >> > changed to multipart. But I don't want to make it by sending in ajax >> > response whole Form, because it's pretty big... Is there a good way >> update >> > just a component and if parent form is not multipart - switch it to >> > multipart? >> > >> > Thanks, >> > >> > Ilya >> > >> > - >> > Orienteer(http://orienteer.org) - open source Business Application >> > Platform >> > >> >> >> >> -- >> WBR >> Maxim aka solomax >> > >
Re: WicketTester Access Component Specific resource bundles
Hi David, The answer is YES. But I'll need more information about your current setup to be able to suggest how to fix it. I guess your resources are in YourApplication.properties but your tests use MockApplication. If this is the case then you have two options: 1) new WicketTester(new YourApplication()) 2) tester.getApplication().getResourceSettings().getStringResourceLoaders().add(new ClassStringResourceLoader(YourApplication.class)) (I don't have my IDE in front of me right now, so the names could be slightly wrong). Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sat, Sep 3, 2016 at 3:53 PM, David Beer wrote: > Hi All > > I am new to WicketTester and am trying to test the content on my panel via > the page. My question is more around the fact that the panel requests its > content from a resource file via ResourceModel, is there a way I can use > the same resource file in my tests? > > Thanks > > David >
Re: Form from post to multipart
It will not solve the problem... Component which want to be mutatable doesn't want to know about parent forms. So forms in ajax mode should somehow adjust encoding automatically, but resending of whole content of a form is not good option, imho. Thanks, Ilya - Orienteer(http://orienteer.org) - open source Business Application Platform On Mon, Sep 5, 2016 at 1:29 AM, Maxim Solodovnik wrote: > Maybe you can use nested forms? > > On Mon, Sep 5, 2016 at 2:51 PM, Илья Нарыжный wrote: > > > Hello! > > > > Please help to figure out is there some good solution for the following > > situation: > > > > There is a page with Form with in it. Form contains lots of components > > underneath. And some components can be changed by AJAX from "view" > > representation to "edit". And sometimes "edit" is some file upload > > component. And in this case to work proporly: form encoding should be > > changed to multipart. But I don't want to make it by sending in ajax > > response whole Form, because it's pretty big... Is there a good way > update > > just a component and if parent form is not multipart - switch it to > > multipart? > > > > Thanks, > > > > Ilya > > > > - > > Orienteer(http://orienteer.org) - open source Business Application > > Platform > > > > > > -- > WBR > Maxim aka solomax >
Re: Form from post to multipart
Maybe you can use nested forms? On Mon, Sep 5, 2016 at 2:51 PM, Илья Нарыжный wrote: > Hello! > > Please help to figure out is there some good solution for the following > situation: > > There is a page with Form with in it. Form contains lots of components > underneath. And some components can be changed by AJAX from "view" > representation to "edit". And sometimes "edit" is some file upload > component. And in this case to work proporly: form encoding should be > changed to multipart. But I don't want to make it by sending in ajax > response whole Form, because it's pretty big... Is there a good way update > just a component and if parent form is not multipart - switch it to > multipart? > > Thanks, > > Ilya > > - > Orienteer(http://orienteer.org) - open source Business Application > Platform > -- WBR Maxim aka solomax
Re: examples7x.wicket.apache.org --> 502 Proxy Error
Restarted. Now should be ok. Thank you! On 04/09/2016 22:15, Francois Meillet wrote: http://examples7x.wicket.apache.org/index.html is down. There is a 502 Proxy Error http://examples6x.wicket.apache.org/index.html is OK. François - 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
Form from post to multipart
Hello! Please help to figure out is there some good solution for the following situation: There is a page with Form with in it. Form contains lots of components underneath. And some components can be changed by AJAX from "view" representation to "edit". And sometimes "edit" is some file upload component. And in this case to work proporly: form encoding should be changed to multipart. But I don't want to make it by sending in ajax response whole Form, because it's pretty big... Is there a good way update just a component and if parent form is not multipart - switch it to multipart? Thanks, Ilya - Orienteer(http://orienteer.org) - open source Business Application Platform