Re: Best way to trap Enter key in a form in a modal window

2012-12-03 Thread Martin Grigorov
Hi, On Mon, Dec 3, 2012 at 1:05 PM, Chris Colman chr...@stepaheadsoftware.comwrote: I understand that with a form in a modal window you must explicitly declare an AjaxButton component because modal windows require AJAX comms (BTW this should probably be mentioned in the Form Javadoc page

wicket-library.com session expiring too early

2012-12-03 Thread Lucio Crusca
Hello *, I try filing this bug (whishlist) here, because I haven't found any contact email on the wicket-library.com website. As a wicket newbie, I use wicket-library.com examples a lot. However reading through Java/HTML code, understanding what's going on, identifying relevant lines of code,

Re: wicket-library.com session expiring too early

2012-12-03 Thread Martin Grigorov
Hi, The examples are hosted for free by this hosting provider. The short session timeout is one of their requirements to keep the used memory low. You can always download the .war file from http://central.maven.org/maven2/org/apache/wicket/wicket-examples/ and run them locally with as big

Re: Wicket and Struts together have a problem when not adding mountpath to the Wicket-Page

2012-12-03 Thread cknafl
Yeah, that is working but that's in fact also a workaround. I don't want to mount all my pages. Or do I understand something wrong... My webapp has a login and should not have any mountpaths... (except of Loginpage itself). Kind Regards Christoph -- View this message in context:

Re: Wicket and Struts together have a problem when not adding mountpath to the Wicket-Page

2012-12-03 Thread Martin Grigorov
Well, Wicket has no idea that you use Struts and even less where are the pages managed by Struts. What about the approach with UrlRenderer#renderContextRelativeUrl() ? On Mon, Dec 3, 2012 at 3:10 PM, cknafl chr.kn...@gmail.com wrote: Yeah, that is working but that's in fact also a workaround.

UrlResourceReference escapes too much?

2012-12-03 Thread Andreas Kappler
Hi, I am trying to render a reference to a Javascript library which is stored somewhere in my webapp directory using UrlResourceReference: public void renderHead(IHeaderResponse response) { super.renderHead(response); response.render(JavaScriptHeaderItem.forReference(new

Re: UrlResourceReference escapes too much?

2012-12-03 Thread Martin Grigorov
Hi, Try with org.apache.wicket.markup.head.JavaScriptHeaderItem#forUrl() This method cares about context relative urls. On Mon, Dec 3, 2012 at 4:06 PM, Andreas Kappler andreas.kapp...@jato-consulting.de wrote: Hi, I am trying to render a reference to a Javascript library which is stored

Re: UrlResourceReference escapes too much?

2012-12-03 Thread Andreas Kappler
Hi Martin, thanks for your quick reply, it does indeed work with forUrl but what I didn't mention before is that I am using a ResourceReference because I want to declare a dependency using ResourceReference#getDependencies. Is there a way to do this? Best Regards, Andreas Am 03.12.2012

Re: UrlResourceReference escapes too much?

2012-12-03 Thread Martin Grigorov
I'm not sure. I have to debug it to be able to say what happens. On Mon, Dec 3, 2012 at 4:16 PM, Andreas Kappler andreas.kapp...@jato-consulting.de wrote: Hi Martin, thanks for your quick reply, it does indeed work with forUrl but what I didn't mention before is that I am using a

Re: which server?

2012-12-03 Thread Nick Pratt
Tomcat is stable, very widely used, and has lots of documentation / examples out there. Jetty also works well. We normally deploy on Tomcat (7.x now) On Mon, Dec 3, 2012 at 10:28 AM, Lucio Crusca lu...@sulweb.org wrote: Hello *, I'm approaching my 1st web application deployment (be it

Re: wicket-library.com session expiring too early

2012-12-03 Thread Lucio Crusca
In data lunedì 3 dicembre 2012 14:51:35, Martin Grigorov ha scritto: You can always download the .war file from http://central.maven.org/maven2/org/apache/wicket/wicket-examples/ and run them locally with as big session timeout as you need. Thanks, I've deployed locally. How do I raise the

Re: wicket-library.com session expiring too early

2012-12-03 Thread Lucio Crusca
In data lunedì 3 dicembre 2012 19:58:55, Lucio Crusca ha scritto: Thanks, I've deployed locally. How do I raise the session timeout? Never mind, I've found it: session-config session-timeout5/session-timeout in web.xml.

RE: master branch compiler error in core?

2012-12-03 Thread Chris Colman
Just pushed a hack that solves the problem. Pull and try again. Yah! That works. It's a pity clirr's file separator agnostic solution is so verbose heh! Given that it is Java based I hoped clirr could have used package style separators i.e. the period '.' but they don't work with it. On Mon,

RE: Best way to trap Enter key in a form in a modal window

2012-12-03 Thread Chris Colman
Hi, On Mon, Dec 3, 2012 at 1:05 PM, Chris Colman chr...@stepaheadsoftware.comwrote: I understand that with a form in a modal window you must explicitly declare an AjaxButton component because modal windows require AJAX comms (BTW this should probably be mentioned in the Form Javadoc page

Re: a question on different data grid components available for wicket

2012-12-03 Thread Ernesto Reinaldo Barreiro
Martin, All grid functionality seems to be ported to jquery... I have pushed the changes master. https://github.com/wicketstuff/core/commit/85920962aa601e6114234caa9e7b2304c603ba49 It would be nice if someone with a real application using inMethod grid can give it a try. Cheers, Ernesto On

Re: Best way to trap Enter key in a form in a modal window

2012-12-03 Thread Ernesto Reinaldo Barreiro
Hi, On Mon, Dec 3, 2012 at 10:11 PM, Chris Colman chr...@stepaheadsoftware.comwrote: Hi, On Mon, Dec 3, 2012 at 1:05 PM, Chris Colman chr...@stepaheadsoftware.comwrote: I understand that with a form in a modal window you must explicitly declare an AjaxButton component because modal

Model is null after submit, using FormComponentPanel

2012-12-03 Thread Raul
Hello, I want to create a reusable component for use as part of a form, for this class use FormComponentPanel, As the following article. https://cwiki.apache.org/WICKET/creating-custom-formcomponentpanels-to-build-valid-objects-using-wickets-form-validation-logic.html My problem is that when I

Re: select2 integration -Duplicate(selected) value are appear in drop down box

2012-12-03 Thread Thomas Götz
I can't detect anything wrong with your implementation on first sight. Is it possible that you can reproduce the described behavior in a Quickstart? -Tom On 01.12.2012, at 03:09, Madasamy mcruncher madas...@mcruncher.com wrote: FooProvider implementation is public class FooProvider

Form Validation not called

2012-12-03 Thread ttboy_01
Hi community, I've got a little problem here with a real simple form. Everything is working fine except the validation of my Validator which is never called. I've set a breakpoint to the onvalidation method... nothing. I think I am missunderstanding the architecture of form/validation. Here's

RE: Best way to trap Enter key in a form in a modal window

2012-12-03 Thread Chris Colman
The other important thing to mention in Form's Javadoc is that a form in a ModalWindow can not be closed without AJAX. i.e. you can't do the close in the standard Form.onSubmit handler as that is given no AjaxRequestTarget parameter which is required to perform the ModalWindow close. Trying to

Re: Setting focus in a form in a ModalWindow

2012-12-03 Thread Thomas Götz
What about this: Form myForm = new Form(form); add(myForm); final Component myComponentToFocus = ...; myForm.add(myComponentToFocus); final ModalWindow modalWindow = new ModalWindow(modal) { @Override public void show(AjaxRequestTarget target) { super.show(target);

RE: Model is null after submit, using FormComponentPanel

2012-12-03 Thread Colin Rogers
Raul, There are better qualified people to answer this, but... Are the components actually passing validation? Pre-validation the model would be null - if the validation fails the model would be null. If the component validates then the model would be updated with the valid value. Col.

a weird exception when update Panel

2012-12-03 Thread JamesXWang
Hi Folks, On one of my v6.1 wick page there is a set of tabs and a main panel. When user click on a new tab it will trigger an ajax behavior and create a different panel to update the main panel. Sometimes I've seen below exception if I click the tab quickly once the page is loaded. But it didn't