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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]


--

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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to