Re: Type casting in WOComponents
Re: Type casting in WOComponents
- Subject: Re: Type casting in WOComponents
- From: Aaron Thompson <email@hidden>
- Date: Thu, 7 Jun 2007 10:30:19 -0400
Forgive me if this is a really obvious answer, but what do you mean
by "the key"? If phone is a property of Administrator but not User,
and in my component I have a WOString with value = user.phone, it
gives an error.
Otherwise, as Chuck kinda pointed out, it might be easiest to create
separate edit pages and not fight it.
Thank you for your feedback,
Aaron Thompson
On Jun 6, 2007, at 6:49 PM, Guido Neitzer wrote:
On 06.06.2007, at 15:58, Aaron Thompson wrote:
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?
You might just use the key ... it should work. No cast necessary.
Or add a wrapper method in your subclass of the generic edit page
to return the casted object.
cug
_______________________________________________
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