Re: Type casting in WOComponents
Re: Type casting in WOComponents
- Subject: Re: Type casting in WOComponents
- From: Anjo Krank <email@hidden>
- Date: Fri, 8 Jun 2007 08:53:09 +0200
Am 08.06.2007 um 06:19 schrieb Mike Schrag:
Right, so this is true -- If assignedRegion is a property of Admin
only, then you can't bind to that key on User or WOLips will yell.
What is going on here is that the contract you have in your
component says that it's a User, so in the general case, you can't
bind assignedRegion. If, however, you KNOW under certain
circumstances that you have an Admin rather than a User, the
easiest path to this would be to add a method to your component:
or use Wonder's ERXInstanceOfConditional...
Cheers, Anjo
_______________________________________________
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