• 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: question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question


  • Subject: Re: question
  • From: Denis Stanton <email@hidden>
  • Date: Thu, 6 Feb 2003 11:56:12 +1300

Joan

On Thursday, February 6, 2003, at 08:09  AM, Green Joan wrote:

nextPage.setUser(user);

setUser(user) function seems not existed.

I do not have the book to look at so I cannot tell your the exact answer, but I can see there is an error in the line "nextPage.setUser(user);"


You have to identify the particular component that nextPage represents. You need a cast statement. It should look like this:
(MyPage)nextPage.setUser(user);


Where MyPage is the name of the component that includes the setUser method.
If you don't put (MyPage) in front of nextPage then you can only use the standard methods defined for the nextPage. If you need to use your own methods, like setUser you have to put (MyPage) in front.


Denis
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: question
      • From: Art Isbell <email@hidden>
References: 
 >question (From: "Green Joan" <email@hidden>)

  • Prev by Date: Java Client beginner question
  • Next by Date: Re: Has anyone seen a problem with LEFT JOINs in WO 5.2 and MySql?
  • Previous by thread: Re: question
  • Next by thread: Re: question
  • Index(es):
    • Date
    • Thread