• 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: 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


  • Follow-Ups:
    • Re: Type casting in WOComponents
      • From: Mike Schrag <email@hidden>
References: 
 >Re: Type casting in WOComponents (From: Aaron Thompson <email@hidden>)
 >Re: Type casting in WOComponents (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: URGENT!!! Downgrade WebObjects 5.3.* to 5.2.4 as well Java 1.5.* to 1.4.2_09
  • Next by Date: [ANN] WO Tutorial is finally finished
  • Previous by thread: Re: Type casting in WOComponents
  • Next by thread: Re: Type casting in WOComponents
  • Index(es):
    • Date
    • Thread