Guys i thought we should slow down! ;)
3 core devs giving the same kind of advice!
Now everybody should know really how it shoudl work the next time ;)

johan


On 5/8/07, Matej Knopp <[EMAIL PROTECTED]> wrote:

new Label("name", new Model() {
   public Object getObject() {
      return myBean.getName(3);
   }
});

-Matej

On 5/8/07, ywtsang <[EMAIL PROTECTED]> wrote:
>
> it is easy to reference the property of a model by using "java bean"
notation
> as:
>
> add(new Label("name", new PropertyModel(myModel, "name")));
>
> (get the value of name property from the myModel)
>
> what about if I want to insert some parameters in my property getter
method?
> e.g. I have a getter method:
> String getName(int)
>
> is it possible to "use" this getter method by passing an integer value
in
> PropertyModel?
>
> -Wing
> --
> View this message in context:
http://www.nabble.com/expression-to-get-property-tf3707591.html#a10369629
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to