Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > having trouble with WebObjects tutorial

having trouble with WebObjects tutorial
Thread Tools
Dedicated MacNNer
Join Date: Jan 2001
Location: Meida, PA USA
Status: Offline
Reply With Quote
Aug 5, 2001, 05:53 PM
 
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
~ Mike
--
Personal Site: MikeZornek.com
Other Interests: WebDevWiki.com
     
Junior Member
Join Date: Nov 2000
Location: Goose Creek, SC, USA
Status: Offline
Reply With Quote
Aug 6, 2001, 12:21 PM
 
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 ]
     
zorn  (op)
Dedicated MacNNer
Join Date: Jan 2001
Location: Meida, PA USA
Status: Offline
Reply With Quote
Aug 6, 2001, 08:06 PM
 
UGH!

Yep that was my mistake .. thanks alot for the help.

Mike
~ Mike
--
Personal Site: MikeZornek.com
Other Interests: WebDevWiki.com
     
Junior Member
Join Date: Nov 2000
Location: Goose Creek, SC, USA
Status: Offline
Reply With Quote
Aug 7, 2001, 09:57 AM
 
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
Reply With Quote
Aug 12, 2001, 09:49 PM
 
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.
     
zorn  (op)
Dedicated MacNNer
Join Date: Jan 2001
Location: Meida, PA USA
Status: Offline
Reply With Quote
Aug 12, 2001, 10:10 PM
 
I would join and post your code the wo dev maiing list(s) @: http://www.omnigroup.com/community/d.../mailinglists/

Its seems be one of the best (of the very few) WO help corners. Also for more WO help check out: http://www.stepwise.com/

Hope that helps ya.

Mike
~ Mike
--
Personal Site: MikeZornek.com
Other Interests: WebDevWiki.com
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Aug 17, 2001, 11:17 PM
 
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 .
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:23 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2