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 wrote: > +1 > > We're also seeing these sporadically and a custom exception would help a > lot. > > Thomas > On Jul 7, 2014 10:12 AM, "Martin

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 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 refreshed > after the Aja

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 wrote: > Hey all,

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: > TextField t = new TextField("xyz") { > > @Override >

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 wrote: > Hi, > > > really need to use #equals() ... > > > checking for identity equality should be OK too > > I've ju

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 a

Re: Validate FormComponent raw input before conversion

2014-07-12 Thread Francois Meillet
TextField t = new TextField("xyz") { @Override public final IConverter getConverter(Class clazz) { return (IConverter) new IntegerConverter() { @Override protected ConversionException newConversio