Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-24 Thread Juergen Donnerstag
I'm +1 on changing this as well Juergen On 8/24/05, Anders Peterson <[EMAIL PROTECTED]> wrote: > Eelco Hillenius wrote: > > > I find it perfectly natural that the 'name' > > property of a null object gets me null when working with Ognl. In > > fact, that's another good reason to support this; al

[Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-24 Thread Anders Peterson
Eelco Hillenius wrote: I find it perfectly natural that the 'name' property of a null object gets me null when working with Ognl. In fact, that's another good reason to support this; all expression languages like Ognl, but also JSF's and for example Velocity's allows you to have expression where

Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-24 Thread Eelco Hillenius
Yep,. it should just ignore it. The property model regconizes it has null as the actual model object, so it should just do nothing. Though I can see this might introduce bugs that aren't immediately obvious, it is still the case that we can't fail fast as the actual model object can come from anywh

Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-24 Thread Johan Compagner
i think martijn means What happens if you get the post request from the poster. Where should the textfield set the data on? I agree the other way around then null is just null... johan Eelco Hillenius wrote: No, why? Wicket should react by checking for nulls and not failing. Person p = (Perso

Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-24 Thread Eelco Hillenius
No, why? Wicket should react by checking for nulls and not failing. Person p = (Person)getModelObject(); won't fail if it's null. Any PropertyModel should just return null if the 'master' property is null. Why is that so strange? And what does it have to do with parsing request parameters? I find

Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-24 Thread Martijn Dashorst
How should Wicket react to this? public MyPage() { add(new MyForm("form", new CompoundPropertyModel(null))); } public class MyForm extends Form { public MyForm(String id, IModel model) { super(id, model); add(new TextField("name")); } } This is what you propose... How sho

[Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-24 Thread Eelco Hillenius
Unfortunately, I don't own an Apple. Martijn does though :) I don't agree with Martijn actually. Like I said, we have had developer discussions about this before. I think we should allow nulls in all our models. I can't see anything wrong with that. Just an 'empty' case. And even if we decided (li

[Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-24 Thread Anders Peterson
Martijn Dashorst wrote: Anders, Don't get me wrong, I don't mean to be harsh, but I think you don't 'grok' the Wicket way, given your comments below. I try to give the 'wicket mindset', and it is only my opinion, perhaps other community members feel differently. And I'm handicapted: I'm dutc

Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Martijn Dashorst
Pff... this is the third time I need to send this message, my providers' smtp server has appeared on the black list of a spam blocker and no mail gets through to the sf.net mailinglist from my home account. :-S Anders, Don't get me wrong, I don't mean to be harsh, but I think you don't 'grok'

[Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Anders Peterson
Anders -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anders Peterson Sent: Tuesday, August 23, 2005 10:48 AM To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Re: KeyValueCoding and ProperyModel Hi, it's me agian... I just discovered

Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Eelco Hillenius
- > >>From: [EMAIL PROTECTED] > >>[mailto:[EMAIL PROTECTED] On Behalf Of > >>Anders Peterson > >>Sent: Tuesday, August 23, 2005 10:48 AM > >>To: wicket-user@lists.sourceforge.net > >>Subject: [Wicket-user] Re: KeyValueCoding and ProperyMode

[Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Anders Peterson
Sent: Tuesday, August 23, 2005 10:48 AM To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Re: KeyValueCoding and ProperyModel Hi, it's me agian... I just discovered that this works perfectly fine: Map tmpMap = new HashMap(); Ognl.setValue("testValue", tmpMap, new Int

RE: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Igor Vaynberg
5 10:48 AM > To: wicket-user@lists.sourceforge.net > Subject: [Wicket-user] Re: KeyValueCoding and ProperyModel > > Hi, it's me agian... > > I just discovered that this works perfectly fine: > > Map tmpMap = new HashMap(); > Ognl.setValue("testValue", tmpMap,

[Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Anders Peterson
Hi, it's me agian... I just discovered that this works perfectly fine: Map tmpMap = new HashMap(); Ognl.setValue("testValue", tmpMap, new Integer(1)); Then couldn't CompoundProtertyModel have a Map as a default object (if allowing null objects is a problem)? /Anders Anders Peterson wrote:

[Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Anders Peterson
In case it wasn't clear... An NSDictionary instance will accept *any* ognl expression. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java Anders Peterson wrote: Hi, I have a background doing WebObjects (WO) programming. http://developer.apple.com/webobjects