On 12/14/06, Johan Compagner <[EMAIL PROTECTED]> wrote:

how do you map the String work to a phone class anyway?

i guess it could be like this:

class Person
{
  Phone work;
  Phone cell;
}

Then i could understand the example But currently i don't see how
to "convert" the string work to a Phone object that has 3 strings..


I have a "toString" method on my Phone object which I'm trying to set as the
value of "work" or "cell". I guess my question is how do I map my Phone
model to the IModel object passed in?

How do I map my "new Phone()" model to the "IModel m"?
public PhoneNumber(String id, IModel m) {
       super(id, new Model(new Phone()));

Does that make more sense?

Cheers,
-js
-------------------------------------------------------------------------
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-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to