• 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
Problem adding key with WebObjects Builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem adding key with WebObjects Builder


  • Subject: Problem adding key with WebObjects Builder
  • From: Rick Hoge <email@hidden>
  • Date: Fri, 12 Aug 2005 22:01:40 -0400


I'm stumbling through some of Apple's WebObjects tutorials (the Author database examples) and have been having problems adding Java instance variables using WO Builder.


In particular I can't get the following instructions to work:

Add the authorList instance variable:
In WebObjects Builder, select session from the AuthorBookEdit browser.
Control-click in the Session browser and choose Add Key to Session.
Name the key authorList, set its type to a mutable array of Author, and generate accessor methods.


If I do this, the following lines of code are added to my Session.java source:

    /** @TypeInfo Author */
    protected (null) authorList;

And when I build, this generates the following error message:

Session.java:17: illegal start of type
    protected (null) authorList;
              ^
Session.java:17: <identifier> expected
    protected (null) authorList;


I have to confess my knowledge of Java is very limited, otherwise I could probably figure this out more easily on my own. On the other hand I have been naively expecting that these tools would generate good Java (recent posts make it clear that the Xcode 2.1/WO 5.3, which I'm using, is pretty buggy...)


Thanks for any suggestions,

Rick




_______________________________________________ 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: Problem adding key with WebObjects Builder
      • From: Rick Hoge <email@hidden>
  • Prev by Date: Re: PostgreSQLPlugIn.framework
  • Next by Date: Re: Problem adding key with WebObjects Builder
  • Previous by thread: Component security
  • Next by thread: Re: Problem adding key with WebObjects Builder
  • Index(es):
    • Date
    • Thread