Re: question about manual of Apple's Webobjects
Re: question about manual of Apple's Webobjects
- Subject: Re: question about manual of Apple's Webobjects
- From: "Green Joan" <email@hidden>
- Date: Thu, 13 Feb 2003 02:57:32 +0800
Thanks. It is solved by adding setUser() to main
Joan
From: "Ginny McCulloh" <email@hidden>
To: <email@hidden>
CC: <email@hidden>
Subject: Re: question about manual of Apple's Webobjects
Date: Tue, 11 Feb 2003 12:50:06 -0500
Hi Joan,
It looks like you might have missed part of step 3 in the "Modifying the
Main Component" section of the "Component Communication" project.
Step 3 says to use WebObjects Builder to add a "user" instance variable of
type User, INCLUDING accessor methods. You can add these accessor methods
in the "Add Key" window under "Generate source code for:" by putting
checks
in the checkboxes adjacent to "A method returning the value" and "A method
setting the value". These accessor methods would include the setUser()
method that appears to be undefined in your Main.java source file.
Good luck!
Ginny
> From: "Green Joan" <email@hidden>
> To: email@hidden
> Cc: email@hidden
> Subject: question about manual of Apple's Webobjects
> Date: Tue, 11 Feb 2003 06:11:23 +0800
>
> It is so frustrating to learn this.
> I tried the example of Chapter 6 on Mac's manual of webobjects 5 (web
> application).
> I failed serveral times but don't know why.
>
> public WOComponent submitChanges()
> {
> Main nextPage = (Main)pageWithName("Main");
>
> //initialize your component here.
>
> //Send <code>user</code> to the Main page
//1
> nextPage.setUser(user);
//2
> return nextPage;
> }
> the line marked by 2 is erroreous. it seems that there is no "setUser"
> defined in Main.
>
> Would you please give me some help?
>
> regards
>
> Joan
>
_________________________________________________________________
SkA*;z5DEsSQ=xPP=;Aw#,GkJ9SC MSN Messenger: http://messenger.msn.com/cn
_______________________________________________
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.