Not because I want to hijact the thread.. But you could use a compound
property model inorder to get rid of all the propertymodels..
jensiator wrote:
Oh and to you that has read this thread looking for code examples. Here is my
code for doing this. (Hope it's the right way of doing it)
There is no form or repeater in the page. It only shows a persons data from
the database. Even when hitting refresh in browser.
In page constructor public MyConstuctor(UUID pSelectePersonIdKey)
PersonDetachedModel personModel=new
PersonMainDetachedModel(pSelectedPersonIdKey);
add(new Label("numberLabel", new PropertyModel(personModel,
"personNumber")));
add(new Label("firstnameLabel", new PropertyModel(personModel,
"firstName")));
.....
PersonDetachedModel extends LoadableDetachableModel<Person>. It holds the
personIdkey as a member.
In the load method you fetch the data from db,webservice, rest whatever.
Jens Alenius
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]