 |
 |
having trouble with WebObjects tutorial
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Meida, PA USA
Status:
Offline
|
|
To: webobjects-dev@omnigroup.comFrom: Mike Zornek <mikezornek@mikezornek.com>Subjec t: Apple tutorial not working for me.Cc: Bcc: X-Attachments: I'm working on the following Apple WO tutorial but am having trouble. http://developer.apple.com/techpubs/...ent/index.html I've addedpublic NSTimestamp currentTime() { // by default, a new NSTimestamp object is initialized // to the current date and time return new NSTimestamp(); }to my Main.java file then save it then try to go in to WO Builder to bind it to a WOString element but currentTimeits not in the list at the bottom.little help?  Mike
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Nov 2000
Location: Goose Creek, SC, USA
Status:
Offline
|
|
Where did you add your NSTimestamp method? You didn't accidentally stick it in the constructor did you? I am not at my WebObjects computer now but I think it should look like:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
<font color = green>public</font> class Main extends WoComponent {
<font color = green>public</font> Main(WoContext context) {
<font color = purple>super</font>(context)
}
<font color = green>public</font> NSTimestamp currentTime() {
<font color = green>return</font> new Timestamp();
}
}
</font>[/code]
I apologize if this is not it. Also I figure you are following the tutorial and opening WebObjects Builder by clicking on Main.wo in Project Builder. Let me know if there is anything else.
[ 08-06-2001: Message edited by: skeedog98 ]
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Meida, PA USA
Status:
Offline
|
|
UGH!
Yep that was my mistake .. thanks alot for the help.
Mike
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Nov 2000
Location: Goose Creek, SC, USA
Status:
Offline
|
|
You are very welcome, glad that I could help. I looked back at the tutorial when you posed your ? and saw that that would be an easy mistake to make.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2001
Status:
Offline
|
|
I'm having a little trouble extending one of the tutorials to be a working application. I'm using the Author example in the discovering wo for html as a guide. Here's what I'm trying to do:
I want to set up an application to administer and view notes for a class I'm teaching. I've got the application set up so that I can input my notes and I've got a viewer page that queries the database for notes of a particular day (just like the author list that allows you to view books). Now, I want to get a little fancy-pants and have a WOPopUpButton with the notes that have been input into the database. I've gotten the popup to display the correct field but when I try to submit or view pages based on the selection, nothing happens. There is no output on the viewer page. It loads up but nothing is returning from the query. I think my problem is that the items that are going into the popup menu are a list and not really an array like they should be. I've been able to get around that by figuring out what to bind it to so that an array of my classdates (the items I want to select from the database by) are displayed. I'm afraid that this half-assed attempt is not really working because I'm not referencing something right. Anyone got any suggestions? I can post my code if someone even knows where I should start (getting good webobjects help is somewhat difficult). TIA.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Meida, PA USA
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status:
Offline
|
|
Torfile: The OmniGroup list is a good place, I am a regular user of that list. If you want someone to have a quick look, you can email me the application, and I can take a look. I assume it is a WO5 app? I would offer some hints, but it is a little difficult without source code to look at. Once you get the hang of the frameworks they are wonderful, but you do spend some time in the beginning fighting them...
If you want just email them to me at larkost@softhome.net .
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|