You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Douglas Ferguson <do...@douglasferguson.us> on 2009/09/08 07:13:00 UTC
Property Models
If I have a have this:
CompoundPropertyModel(Person)
PropertyModel(Person, "name");
Would this be accurate?
CompoundPropertyModel<Person>
PropertyModel<String> <-assuming name is a string
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Property Models
Posted by Pedro Santos <pe...@gmail.com>.
T is the type parameter for the model object (
http://static.ddpoker.com/javadoc/wicket/1.4-m1/org/apache/wicket/model/IModel.html),
if you are creating an PropertyModel to retrieve and access an String
property, so String is the correct type parameter for the PropertyModel...
On Tue, Sep 8, 2009 at 2:13 AM, Douglas Ferguson <douglas@douglasferguson.us
> wrote:
> If I have a have this:
>
> CompoundPropertyModel(Person)
>
> PropertyModel(Person, "name");
>
> Would this be accurate?
>
> CompoundPropertyModel<Person>
> PropertyModel<String> <-assuming name is a string
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>