Re: backspace - when not on focus in field

2014-03-13 Thread Martin Grigorov
Hi, On Thu, Mar 13, 2014 at 3:15 AM, nazeem wrote: > Thanks Niranjan & Swen, I managed to add this js to block backspace when > not > on focus on form fields. I believe this fix will not be required when we > get > Wicket 7 ajax history support ? > Ajax history support is not in the roadmap fo

Re: More Wicket JSESSION_ID Issues

2014-03-13 Thread Martin Grigorov
Hi, On Wed, Mar 12, 2014 at 9:52 PM, Aaron J. Garcia wrote: > > > Martin Grigorov apache.org> writes: > > > > > Hi, > > > > It sounds like an issue with the IDE. > > What is the produced url with the custom jsession id ? Does it work if > you > > paste this url directly in the browser address

Re: The wicket way of getting application base URL

2014-03-13 Thread jchappelle
We just use a configuration property in our application that is stored in our "properties" database table. So our solution really doesn't involve wicket at all. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/The-wicket-way-of-getting-application-base-URL-tp4664925p466

Re: The wicket way of getting application base URL

2014-03-13 Thread Chris Snyder
I think that such a configuration option is likely your only choice, and is something I often see in other webapps. The only other option I can think of would be if the proxy was passing a header with the original requested URL. However, I don't see such functionality in mod_proxy (at least from a

Re: Close Browser Behavior

2014-03-13 Thread Daniela L
Hi Martin, if found the reason why the data is not freed in onInvalidate, the Spring/Hibernate update to the database issues a "There is no application attached to current thread ContainerBackgroundProcessor[StandardEngine[Catalina]]". Is this a wicket or a tomcat issue? Best Regards Daniela 2014

Re: Close Browser Behavior

2014-03-13 Thread Martin Grigorov
Hi, Maybe it is a problem in your code ;-) In case of session expiration this method is called in a non-worker thread, i.e. * there are no thread locals exported for the Application, RequestCycle and Session. * The Session is the current instance. The Application can be found by using * {@lin

Testing Form with AjaxSubmitLink

2014-03-13 Thread Nick Pratt
How do you submit a form via WicketTester and an AjaxSubmitLink? *HomePage.java:* public class HomePage extends WebPage { private static final long serialVersionUID = 1L; private String email; public HomePage( final PageParameters parameters ) { super( parameters ); Form form = new Form( "f

Re: Testing Form with AjaxSubmitLink

2014-03-13 Thread Martin Grigorov
Hi, See the javadoc of org.apache.wicket.util.tester.BaseWicketTester#clickLink(java.lang.String, boolean) Martin Grigorov Wicket Training and Consulting On Thu, Mar 13, 2014 at 8:06 PM, Nick Pratt wrote: > How do you submit a form via WicketTester and an AjaxSubmitLink? > > > *HomePage.java:

Re: Testing Form with AjaxSubmitLink

2014-03-13 Thread Nick Pratt
Any reason that the FormTester.submit() couldn't be modified to check the type of the form submitter, and invoke the correct code accordingly? N On Thu, Mar 13, 2014 at 3:28 PM, Martin Grigorov wrote: > Hi, > > See the javadoc of > org.apache.wicket.util.tester.BaseWicketTester#clickLink(java.l

Re: Testing Form with AjaxSubmitLink

2014-03-13 Thread Gabriel Landon
As Martin said you can use : tester.clickLink("form:submit", true); You can also use : tester.executeAjaxEvent("form:submit", "onclick"); Regards, Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Testing-Form-with-AjaxSubmitLink-tp4664946p4664949.html Sent

Re: Testing Form with AjaxSubmitLink

2014-03-13 Thread Martin Grigorov
There is something similar already - org.apache.wicket.util.tester.FormTester#submitLink But it doesn't support Ajax at the moment. Feel free to send a PR (preferably with a test case) Martin Grigorov Wicket Training and Consulting On Thu, Mar 13, 2014 at 9:53 PM, Nick Pratt wrote: > Any reas

Pass exception to internal error page

2014-03-13 Thread jchappelle
I am using wicket 6.14.0. I have a RequestCycleListener that listens for onException. I handle PageExpiredException, UnauthorizedInstantiationException(this is custom), and by default I redirect to a custom ErrorPage class that takes the Exception object in the constructor. It also contains a list

Extending the DataTable class doesnt work

2014-03-13 Thread chathuraka.waas
Hi, i'm trying to migrate my application from 1.4 to 6.14. i have a class extending the DataTable and it seems not working after the migration. i tried replacing the extended class with the DataTable class and it worked fine. this is my code for extending the DataTable class. public class Te