thats odd ValueMap is just a hashmap so why it wants to get a username is strange testing..
johan On 9/5/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > Looks like a bug in property resolver that it doesn't handle maps > properly. Johaaan? > > -Matej > > On 9/5/07, David Leangen <[EMAIL PROTECTED]> wrote: > > > > Thanks. > > > > I managed to find the class of the source of the problem, and it seems > > to be internal to Wicket. > > > > org.apache.wicket.authentication.panel.SignInPanel > > > > The form in this class (in wicket-auth-roles) uses this: > > > > /** El-cheapo model for form. */ > > private final ValueMap properties = new ValueMap(); > > > > And declares the property like this: > > > > add(username = > > new TextField("username", new PropertyModel(properties, "username"))); > > > > > > I'm guessing that the Exception is due to either some kind of change in > > ValueMap, or a change in the property resolver... > > > > > > > > > > > > On Tue, 2007-09-04 at 21:28 -0700, Igor Vaynberg wrote: > > > looks like a propertymodel misbehaving somewhere. > > > > > > set a breakpoint on that exception. when it is thrown you can walk up > > > the stack and see what model/component is causing this. > > > > > > -igor > > > > > > > > > On 9/4/07, David Leangen <[EMAIL PROTECTED]> wrote: > > > > > > Migrating from 1.2 to 1.3. > > > > > > I've been trying to track down the cause of the following > > > error. > > > > > > Since this is using reflection, I'm not getting any useful > > > line numbers > > > or direct information on the cause. > > > > > > > > > If anybody can shed some light on this for me, I'd really > > > appreciate it! > > > > > > All I know is that it happens at render time when visiting one > > > of the > > > components, but it's difficult to find the exact component. > > > > > > > > > > > > java.lang.NoSuchMethodException: > > > org.apache.wicket.util.value.ValueMap.isUsername() > > > at java.lang.Class.getMethod(Class.java:1581) > > > at > > > org.apache.wicket.util.lang.PropertyResolver.findGetter > > > (PropertyResolver.java:501) > > > at > > > org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter( > PropertyResolver.java:317) > > > > > > ... > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >