Re: Validate FormComponent raw input before conversion

2014-07-12 Thread Francois Meillet
TextFieldInteger t = new TextFieldInteger(xyz) { @Override public final C IConverterC getConverter(ClassC clazz) { return (IConverterC) new IntegerConverter() { @Override protected

String length validation and windows line breaks

2014-07-12 Thread Thomas Heigl
Hey all, Recenty, probably after moving to Wicket 6.16, we see some strange behavior for TextAreas. We have been using a JavaScript library to limit the number of characters a user can enter in a textbox for years. Now we started getting validation exceptions on the server that the user entered

Re: equals() method for LoadableDetachableModels

2014-07-12 Thread Martin Grigorov
I'll test with IdentityHashMap with our main app soon. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jul 11, 2014 at 3:06 PM, Sven Meier s...@meiers.net wrote: Hi, really need to use #equals() ... checking for identity equality should be OK too

Re: Validate FormComponent raw input before conversion

2014-07-12 Thread Martin Grigorov
Hi, You can add a new key to YourApp.properties: xyz.integerKey = Wicket will use it instead of the generic message On Sat, Jul 12, 2014 at 12:17 PM, Francois Meillet francois.meil...@gmail.com wrote: TextFieldInteger t = new TextFieldInteger(xyz) { @Override

Re: String length validation and windows line breaks

2014-07-12 Thread Martin Grigorov
Hi, I think there are no such changes in Wicket lately. Just tried a\r\nb.length and a\n\rb.length in Google Chrome's console and both return 4 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sat, Jul 12, 2014 at 12:22 PM, Thomas Heigl tho...@umschalt.com

Re: best model for editing a list of items in a table?

2014-07-12 Thread Martin Grigorov
Hi, On Fri, Jul 11, 2014 at 3:12 AM, Garret Wilson gar...@globalmentor.com wrote: Ah, never mind. I found the problem. The code below will work, except for the Delete action I was using an Ajax button (with confirmation). I needed to add the following after deletion so that it will get

Re: How to handle click on removed links - WicketRuntimeException (Component 'xxx' has been removed from page)?

2014-07-12 Thread Martin Grigorov
Ticket + a quickstart please! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jul 9, 2014 at 7:52 PM, Thomas Heigl tho...@umschalt.com wrote: +1 We're also seeing these sporadically and a custom exception would help a lot. Thomas On Jul 7, 2014