On 8/25/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> i think that is a foolish argument as you are assuming property model should
> only work on _beans_
> it is perfectly normal to do something like this:
>
> class data { public String name; public int age; }

Yes, I hope you didn't really think that I would be against using
public fields directly were you?!

> and wicket should work with this. if this data object is a private inner of
> something and is only used there wth is the point of creating
> getters/setters?

Because that confirms to the bean spec and to what probably 90% of
people would initially expect.

> so our property model should work like this:
>
> always try setter/getter first, if not fallback onto the field.
>
> i dont really see a danger of propertymodel accessing private members
> because you can do it yourself if you wanted - and in fact you ARE doing it
> yourself by specifying that property path.

That is a ridiculous statement.

Eelco

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to