• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Type casting in WOComponents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Type casting in WOComponents


  • Subject: Re: Type casting in WOComponents
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 6 Jun 2007 15:47:39 -0700

No, it is not possible. But why would you need to typecast them? If User has a phone, then so does an Administrator and a Sponsor. You would only need to typecast if Administrator or Sponsor added other attributes that you wanted to edit. But then it would not really be a generic edit page.

Chuck

On Jun 6, 2007, at 2:58 PM, Aaron Thompson wrote:

Dear list,
Is it possible to do type casting in a binding in a .wod file? I would like to have a value binding something like value = ((Administrator)user).phone
A little background, I have a User class extended by, say, an Administrator class and a Sponsor class. I'd like to have a generic edit user page that can edit both of them. If this isn't possible, has anyone else found a solution to a similar situation?


	Thank you!

Aaron Thompson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Type casting in WOComponents (From: Aaron Thompson <email@hidden>)

  • Prev by Date: Type casting in WOComponents
  • Next by Date: Re: Type casting in WOComponents
  • Previous by thread: Type casting in WOComponents
  • Next by thread: Re: Type casting in WOComponents
  • Index(es):
    • Date
    • Thread