compound property models use component's id as an _expression_ - its basically a shortcut for propertymodels, so
page.setModel(new CompoundPropertyModel(new Person());
page.add(new Label("address.city"));
page.add(new Label("address.zipcode"));
is equivalent to
page.add(new Label("addr", new PropertyModel(person, " address.city")));
page.add(new Label("zip", new PropertyModel(person, "address.zipcode")));
there is a page on the wiki on models that talks about a lot of these
-Igor
On 9/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,
Iam working with the wicket treetable component and would like to know the following. How does the model know the propertyexpression for a component. I see that propertymodel, compoundpropertymodel and BoundCompoundPropertyModel.java classes provide implementations of this method. I would like to know who calls these methods in the first place.
I would appreciate any help as Iam new to wicket and eager to know this.
Regards,
prakash
___________________________________________________________________________________
PrivatePhoneTM- FREE telephone number & voicemail. A number so private, you can make it public.
http://www.privatephone.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop