From Stephan.Bachofen@uptime.ch Wed Jul 26 00:27:11 2000 Received: from uptime.ch (ugzh.uptime.ch [212.126.160.119]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id AAA26534 for ; Wed, 26 Jul 2000 00:27:09 -0700 (PDT) Received: from zhp155wks (localhost [127.0.0.1]) by uptime.ch (8.8.8+Sun/8.8.8) with SMTP id JAA06787 for ; Wed, 26 Jul 2000 09:26:57 +0200 (MET DST) Message-ID: <03dc01bff6d2$d68c7ec0$118610ac@uptime.ch> From: "Stephan Bachofen" To: Subject: HTTP PUT Method not supported? MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 00:27:12 2000 It seem's that WebObjects doesn't support the HTTP PUT Method. If I send a PUT request via the Web-Server (which invokes the Adaptor) I get the message HTTP/1.1 200 OK Apple Server: Microsoft-IIS/4.0 Date: Fri, 21 Jul 2000 09:29:57 GMT content-type: text/html Unknown HTTP method, or HTTP PUT or HEAD method not supported. On the other hand, if I send the PUT request directly to the WebObjects Application, the Application just cut's the connection without doing anything. That lead's me to question if Web Objects does support the HTTP PUT Method or not. Or what I'm doing wrong? The Help pages (at WOResponse by method()) says that WeObjects does. But the help pages might be wrong in that case (wouldn't be the first time anyway). They might mix up HTTP PUT with the HTTP POST command there. I'm using WebObjects Version 4.0 Any hint would be appreciated Thanks Stephan Bachofen From jeremym@cogapp.com Wed Jul 26 06:59:43 2000 Received: from finch-post-11.mail.demon.net (finch-post-11.mail.demon.net [194.217.242.39]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id GAA12470 for ; Wed, 26 Jul 2000 06:59:42 -0700 (PDT) Received: from cogapp.demon.co.uk ([158.152.25.85] helo=internal.cogapp.com) by finch-post-11.mail.demon.net with smtp (Exim 2.12 #1) id 13HRim-000OAz-0B for webobjects-dev@omnigroup.com; Wed, 26 Jul 2000 13:59:41 +0000 Received: from wilma by internal.cogapp.com (CommuniGate SMTP 3.1.1) with SMTP id S.2459494997cc for ; Wed, 26 Jul 2000 15:04:50 +0100 From: "Jeremy Mabbitt" To: "WebObjects Dev" Subject: archiving EOs with XML Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 06:59:44 2000 Have been trying to come to terms with Apple's XML framework and some things are puzzling me - wonder if anyone can help. When I archive an enterprise object without specifying a mapping model, I get attributes "objectID" and "objectIDRef" added, which identify each object uniquely and appear to prevent object definitions from being repeated in the archive. This is all very nice, but I can't see where the IDs come from. What I'd like to be able to do is specify a model file, so that the output doesn't contain "type" attributes and is generally more readable, and still have these object IDs and references. With my efforts so far, I lose the objectID/Ref fields as soon as I define a mapping model. What I want to achieve with this, preferably without having to reimplement anything already in the XML framework, is the following: 1. The ability to archive a whole database as XML, and be able to restore it without having to first wipe the existing data - ie use EOF to only update/insert changed/new objects (of course requiring archival of primary keys); 2. The ability to return as readable XML (no "type" attributes, for example, and ideally some more meaningful object IDs - perhaps the primary keys?) any section of my database, omitting certain relationships (and hence tables) from the XML that are not of interest. If this XML can be read back in and the database updated appropriately, then this would provide the means for natural database independent, interface independent data editing over HTTP. Any clues greatly appreciated! Jeremy Mabbitt Cognitive Applications Ltd From froy@singleentry.com Wed Jul 26 10:03:27 2000 Received: from kevin.singleentry.com (ns1.singleentry.com [216.142.28.235]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id KAA29663 for ; Wed, 26 Jul 2000 10:03:26 -0700 (PDT) Received: from darkman.singleentry.com (cm21614016975.laketravis.ispchannel.com [216.140.169.75]) by kevin.singleentry.com (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id MAA13222 for ; Wed, 26 Jul 2000 12:03:24 -0500 Message-Id: <200007261703.MAA13222@kevin.singleentry.com> X-Authentication-Warning: kevin.singleentry.com: Host cm21614016975.laketravis.ispchannel.com [216.140.169.75] claimed to be darkman.singleentry.com To: webobjects-dev@omnigroup.com Subject: WORepetition and background coloring From: Fabien Roy Reply-To: froy@singleentry.com X-Mailer-Extensions: SWSignature 1.3.2 X-Mailer: by Apple MailViewer (2.106) Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 10:03:29 2000 Hi, I am looking for an example on how to use different background color on even or odd line of a WORepetition. Thanks. -- _,,---,,,_ /| _,;;-; ._ `'`-.',\ `-'' ) /, ._,-( ( -7,| (_/`-' `--\_)``---` Fabien Roy Singleentry.com 107 RR 620 South, suite 117 Lakeway, TX 78734 Tel: (512) 266-6379 ext 1350 Fax: (512) 266-6375 Mob: (512) 796-9854 http://www.singleentry.com From aaron@running-start.com Wed Jul 26 10:11:26 2000 Received: from thor.running-start.com (thor.running-start.com [207.182.34.9]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id KAA00844 for ; Wed, 26 Jul 2000 10:11:24 -0700 (PDT) Received: from running-start.com (ryo-ohki [207.182.37.40]) by thor.running-start.com (8.9.3/8.9.0) with ESMTP id KAA23912; Wed, 26 Jul 2000 10:11:02 -0700 (MST) Message-ID: <397F1BA6.D0989476@running-start.com> From: Aaron Freshwater Organization: Running Start, Inc. X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: froy@singleentry.com CC: webobjects-dev@omnigroup.com Subject: Re: WORepetition and background coloring References: <200007261703.MAA13222@kevin.singleentry.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 10:11:28 2000 pseudocode basically, set up a flag which toggles every time you use it: BOOL flag; - flag { if(flag) { flag = NO; } else { flag = YES; } return flag; } - bgcolor { if([self flag]) { return COLOR1; } return COLOR2; } also you'll want to reset it in awake (so your colors don't switch around on page refresh): - awake { flag = NO; } wod: MY_TR :WOGenericElement { elementName = "TR"; bgcolor = bgcolor; } -aaron who is angered by all the new WO spam escaping his filter Fabien Roy wrote: > Hi, > > I am looking for an example on how to use different background color > on even or odd line of a WORepetition. > > Thanks. > > -- > _,,---,,,_ /| > _,;;-; ._ `'`-.',\ > `-'' ) /, ._,-( ( -7,| > (_/`-' `--\_)``---` > Fabien Roy > Singleentry.com > 107 RR 620 South, suite 117 > Lakeway, TX 78734 > Tel: (512) 266-6379 ext 1350 > Fax: (512) 266-6375 > Mob: (512) 796-9854 > http://www.singleentry.com > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- ----------------------------------------- Aaron Freshwater Senior Software Engineer Running Start, Inc. aaron@running-start.com (520)-547-4210 ----------------------------------------- From ricardo@mpv.com Wed Jul 26 10:35:53 2000 Received: from mpv.com (ip114.110.136.216.in-addr.arpa [216.136.110.114]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id KAA04412 for ; Wed, 26 Jul 2000 10:35:52 -0700 (PDT) Received: from tecate [24.20.194.15] by mpv.com (FTGate 2, 2, 2, 1); Wed, 26 Jul 2000 12:42:16 -0500 To: WebObjects-dev@omnigroup.com Subject: Re: WORepetition and background coloring In-Reply-To: <200007261657.LAA13181@kevin.singleentry.com> From: "Ricardo J. Parada" X-Mailer: by Apple MailViewer (2.106) Message-Id: Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 10:35:54 2000 > you can test for even or oddness with ((i % 2) == 0) means i is even You can also do a AND to test for even/odd as follows: if (i & 1 == 1) return "OddColor"; else return "EvenColor"; From rrutigliano@mail.kindercare.com Wed Jul 26 10:43:20 2000 Received: from mailhub.kindercare.com (mailhub.kindercare.com [208.0.30.130]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id KAA05242 for ; Wed, 26 Jul 2000 10:43:20 -0700 (PDT) Received: from services.kindercare.com ([208.0.30.5] helo=mail.kindercare.com) by mailhub.kindercare.com with esmtp (Exim 3.15 #1) id 13HVD8-0002m3-00 for webobjects-dev@omnigroup.com; Wed, 26 Jul 2000 10:43:14 -0700 Received: from mail.kindercare.com ([10.1.64.19]) by mail.kindercare.com (Netscape Messaging Server 3.6) with ESMTP id AAA5D57 for ; Wed, 26 Jul 2000 10:43:13 -0700 Message-ID: <397F2332.797D3FB@mail.kindercare.com> From: "Richard Rutigliano" X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: webobjects-dev@omnigroup.com Subject: Help With LDAP Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 10:43:21 2000 I have an wo app that does an LDAP Authorization. It works fine on my local machine, but when I deploy to our production server, it will not authenticate users. The offending line of code looks like this: String encodedAuth=this.context().request().headerForKey("authorization"); On production, this is equal to null, but it should be "Basic". The funny part is that if you access the app on the production server using the port number directly, it works fine. Our production server uses Apache. Is this an Apache configuration problem? Any ideas? -thanks -- Rick Rutigliano Sr. Analyst/Developer KinderCare Learning Centers 503-872-1719 From jhodapp@mcservices.com Wed Jul 26 12:15:14 2000 Received: from mcservices.com (mail.mcservices.com [207.250.124.70]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id MAA12801 for ; Wed, 26 Jul 2000 12:15:13 -0700 (PDT) Received: from [10.0.1.6] (207.250.124.30) by mcservices.com with ESMTP (Eudora Internet Mail Server 2.2.2); Wed, 26 Jul 2000 14:16:32 -0500 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Subject: Catching exceptions... From: Jim Hodapp To: Web Objects Development Questions Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 12:15:15 2000 How do I catch any exceptions that the current EOEditingContext object might throw if there are any exceptions for it? Is there a list somewhere in the documentation of the possible exceptions that I just missed? Thanks! Jim H From dneumann@apple.com Wed Jul 26 12:18:54 2000 Received: from mail-out1.apple.com (mail-out1.apple.com [17.254.0.52]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id MAA13222 for ; Wed, 26 Jul 2000 12:18:53 -0700 (PDT) Received: from mailgate2.apple.com (A17-129-100-225.apple.com [17.129.100.225]) by mail-out1.apple.com (8.9.3/8.9.3) with ESMTP id MAA01242 for ; Wed, 26 Jul 2000 12:18:52 -0700 (PDT) Received: from scv3.apple.com (scv3.apple.com) by mailgate2.apple.com (Content Technologies SMTPRS 4.1.2) with ESMTP id ; Wed, 26 Jul 2000 11:40:55 -0700 Received: from apple.com ([17.126.144.17]) by scv3.apple.com (8.9.3/8.9.3) with ESMTP id LAA29527; Wed, 26 Jul 2000 11:40:54 -0700 (PDT) Message-ID: <397F3110.632DDF52@apple.com> From: David Neumann Organization: Apple iServices ObjectWare X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; I) X-Accept-Language: en MIME-Version: 1.0 To: Richard Rutigliano CC: webobjects-dev@omnigroup.com Subject: Re: Help With LDAP References: <397F2332.797D3FB@mail.kindercare.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 12:18:56 2000 Some web server interfaces don't pass this header. In the case of Netscape 3.6, the authorization header is NOT passed for CGI. BUT it is passed for NSAPI. You might have to tweak something with Apache to get it to pass that header. Possibly you might need to do something like for Netscape... use a plugin instead of CGI. Richard Rutigliano wrote: > > I have an wo app that does an LDAP Authorization. It works fine on my > local machine, but when I deploy to our production server, it will not > authenticate users. The offending line of code looks like this: > > String > encodedAuth=this.context().request().headerForKey("authorization"); > > On production, this is equal to null, but it should be "Basic". The > funny part is that if you access the app on the production server using > the port number directly, it works fine. > > Our production server uses Apache. Is this an Apache configuration > problem? Any ideas? > > -thanks > > -- > > Rick Rutigliano > Sr. Analyst/Developer > KinderCare Learning Centers > 503-872-1719 > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev From dneumann@apple.com Wed Jul 26 12:21:01 2000 Received: from mail-out2.apple.com (mail-out2.apple.com [17.254.0.51]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id MAA13709 for ; Wed, 26 Jul 2000 12:21:00 -0700 (PDT) Received: from mailgate2.apple.com (A17-129-100-225.apple.com [17.129.100.225]) by mail-out2.apple.com (8.9.3/8.9.3) with ESMTP id MAA05353 for ; Wed, 26 Jul 2000 12:20:59 -0700 (PDT) Received: from scv3.apple.com (scv3.apple.com) by mailgate2.apple.com (Content Technologies SMTPRS 4.1.2) with ESMTP id ; Wed, 26 Jul 2000 12:08:29 -0700 Received: from apple.com ([17.126.144.17]) by scv3.apple.com (8.9.3/8.9.3) with ESMTP id MAA08235; Wed, 26 Jul 2000 12:08:28 -0700 (PDT) Message-ID: <397F3785.B7443936@apple.com> From: David Neumann Organization: Apple iServices ObjectWare X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; I) X-Accept-Language: en MIME-Version: 1.0 To: Joe Brown , webobjects-dev@omnigroup.com Subject: Re: Strange Session data crossover problem !! References: <00c901bff697$07928280$0300a8c0@PYRUSMALUS> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 12:21:11 2000 Are the URLs DirectActions? If so, that action will invoke and generate a page. If a session is needed during the generation process then it will be. The data 'leak' could simply by arguments on an GET URL... for example: http://host/cgi-bin/WebObjects/app.woa/wa/showAccount?userID=78&wosid=3453453u34 Of course if you don't want to allow such activity, then you might want to check a flag in the session for a logged in status before invoking an action. d Joe Brown wrote: > > Hi, > > We've witnessed a strange and very worrying problem whereby one visitor to > our WebObjects app has been served a page that should have been delivered to > another, earlier/concurrent user. We are unsure how often this is happening > and why as we are unable to recreate the problem easily but we have > witnessed it once ourselves and have had 1 guest report a similar problem. > > The occasion when we witnessed the problem, we had clicked on a link on > (what should have been) a timed out session. Instead of being taken to our > usual 'Timeout' handler page we were instead presented with a page that had > earlier been served to another guest in a different session. We could tell > this as the page contained guest specific information and we could confirm > from the DB that that guest had just used the system. > > There are no data or methods shared at the Application() level which should > allow this to happen. My understanding is that the WebObjects framework > should preserve 'per-session' context and state and keep these seperate. > We've not introduced anything outwith the norm which would make me suspect > our application. > > The URL in the browser window showed our original session information and > ID, the page we were served contained a link which revealed a different > session ID, presumably that of the other, earlier guest. > > We have two instances of the application running on one machine if this > makes any difference. > > Naturally this opens up potential security problems if one guest to a data > sensitive site can unexpectedly be served data intended for a different > guest. Is there anything we may have introduced into our app which could > cause this behaviour or any other WebObjects/Apache problem which could > produce the same results ? > > Any help would be gratefully appreciated. > > Joe. > > _______________________________________________ > WebObjects mailing list > WebObjects@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects From jleung@ci.tacoma.wa.us Wed Jul 26 14:01:08 2000 Received: from mailgate.ci.tacoma.wa.us (mailgate.ci.tacoma.wa.us [131.191.254.40]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id OAA20243 for ; Wed, 26 Jul 2000 14:01:07 -0700 (PDT) From: jleung@ci.tacoma.wa.us Received: from m3.ci.tacoma.wa.us (m3.ci.tacoma.wa.us [131.191.6.57]) by mailgate.ci.tacoma.wa.us (8.8.8/8.8.8) with ESMTP id OAA19362 for ; Wed, 26 Jul 2000 14:01:07 -0700 (PDT) Received: by m3.ci.tacoma.wa.us with Internet Mail Service (5.5.2650.21) id ; Wed, 26 Jul 2000 14:02:44 -0700 Message-ID: To: webobjects-dev@omnigroup.com Subject: Printing NSArray objects in Java MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="windows-1252" Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 14:01:22 2000 Does anyone know of a way, in Java, to print out objects from an NSArray similar to the "description" method in objective-c? TIA, John From kwuolle@ceiss.org Wed Jul 26 14:04:50 2000 Received: from io.ceiss.org ([216.86.118.2]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id OAA20853 for ; Wed, 26 Jul 2000 14:04:48 -0700 (PDT) Received: by ganymede.ceiss.org with Internet Mail Service (5.5.2650.21) id ; Wed, 26 Jul 2000 14:08:37 -0700 Message-ID: <7F629D3E76A2D3118F1C00508B73057712D6DB@elara.ceiss.org> From: Kyle Wuolle To: webobjects-dev@omnigroup.com Subject: RE: Printing NSArray objects in Java MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="windows-1252" Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 14:04:54 2000 Implement a public String toString() method in the classes you want to print and java automatically calls the method when required. eg System.out.prinln((MyClass)myArray.objectAtIndex(i)); will automatically call the toString method in MyClass. -----Original Message----- From: jleung@ci.tacoma.wa.us [mailto:jleung@ci.tacoma.wa.us] Sent: Wednesday, July 26, 2000 2:03 PM To: webobjects-dev@omnigroup.com Subject: Printing NSArray objects in Java Does anyone know of a way, in Java, to print out objects from an NSArray similar to the "description" method in objective-c? TIA, John _______________________________________________ WebObjects-dev mailing list WebObjects-dev@omnigroup.com http://www.omnigroup.com/mailman/listinfo/webobjects-dev From rklems@running-start.com Wed Jul 26 14:06:27 2000 Received: from thor.running-start.com (thor.running-start.com [207.182.34.9]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id OAA21216 for ; Wed, 26 Jul 2000 14:06:26 -0700 (PDT) Received: from [12.25.48.210] ([12.25.48.210]) by thor.running-start.com (8.9.3/8.9.0) with SMTP id OAA19332; Wed, 26 Jul 2000 14:06:21 -0700 (MST) Message-ID: <397F7CF6.6EB19164@running-start.com> Received: from SURT by [12.25.48.210] via smtpd (for thor.Running-Start.COM [207.182.34.9]) with SMTP; 26 Jul 2000 21:03:07 UT From: "Ryan R. Klems" X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: jleung@ci.tacoma.wa.us CC: webobjects-dev@omnigroup.com Subject: Re: Printing NSArray objects in Java References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 14:06:29 2000 array.toString() ? -Ryan jleung@ci.tacoma.wa.us wrote: > > Does anyone know of a way, in Java, to print out objects from an NSArray > similar to the "description" method in objective-c? > > TIA, > > John > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- Ryan R. Klems Senior Software Engineer Running Start, Inc. (520)-547-4265 rklems@running-start.com http://www.running-start.com From michael@stb.nccom.com Wed Jul 26 14:23:36 2000 Received: from lh2.rdc1.tx.home.com (ioracle@ha2.rdc1.tx.home.com [24.4.0.67]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id OAA22714 for ; Wed, 26 Jul 2000 14:23:35 -0700 (PDT) Received: from stb.nccom.com ([24.21.232.160]) by lh2.rdc1.tx.home.com (InterMail vM.4.01.02.00 201-229-116) with ESMTP id <20000726212334.GPGL13510.lh2.rdc1.tx.home.com@stb.nccom.com> for ; Wed, 26 Jul 2000 14:23:34 -0700 Message-ID: <397F4089.1F8119A0@stb.nccom.com> From: Michael Gersten Reply-To: michael@stb.nccom.com X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: "'webobjects-dev@omnigroup.com'" Subject: Re: Initialising PageWithName Objects References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 14:23:41 2000 I'm not familiar with java, but I do have this idea: Does java require that the initializers initialize 'this', or can it return a new object and require callers to use that? If so, then you could do something like .... /* I want to initialize a new page now */ ArgHandler.pushArg("My initialization string", "MyPage"); nextPage = pageWithName("MyPage"); ... In the initializer: public MyPage() { String argument = ArgHandler.popArg("MyPage"); return MyPage(argument); } You still need to write the ArgHandler class. The idea of having the arguments be stored on a stack (instead of just storing one or two fixed items) is to permit recursive calls; the idea of passing the class name is both for sanity checking, and to permit arguments to be pushed on in one order, but popped off in another order (because you may not know the order that sub-entities get created in, but still want to specify information to them). Michael Erik Doernenburg wrote: > > Emily Catharine Bache wrote: > > > Of course you can use the constructor!!! The framework methode > > > pageWithName() will just instantiate your new page and do some other > > > stuff to e.g. register the page in the request-response-cycle and > > > therefore > > > of course the standard constructor MyPage() is called. > > > > The problem is that I can't pass arguments to the constructor if I use > > pageWithName(). As you say, pageWithName() uses the default constructor > > MyPage(). If I declare a second constructor, MyPage(String argument) for > > example, pageWithName() won't call it. What I'd like to be able to do is: > > > > public MyPage someActionMethod() { > > String argument = calculateString(); > > MyPage page = new MyPage(argument); > > return page; > > } > > > > so that MyPage can use the argument to initialise a final member variable. > > Unfortunately this doesn't work, because my page won't be initialised > > correctly, registered in the request-response cycle etc. What I instead have > > to do is: > > > > public MyPage someActionMethod() { > > String argument = calculateString(); > > MyPage page = (MyPage)pageWithName("MyPage"); // calls default > > constructor > > page.setSomeString(argument); > > return page; > > } > > > > Which works, but means I can't declare my member variable "final" in MyPage. > > > > Is there a way to do all the registering and context setting and stuff on a > > page that I've constructed? [...] > > I tried something similar a while ago when I wanted to render WOComponents > into NSTextViews. What I did (all in ObjC and WO 4) was to instantiate the > component and then get hold of the template using WOComponent's > templateWithHTMLString method. The problem is that (to my knowledge) there > is no public method to associate the template with the component instance. > In WebObjects 4 the following did the trick: > > myComponent.takeValueForKey(myTemplate, "_template"); > > Finally, you might want to throw in a > > myComponent.ensureAwakeInContext(someContext); > > where someContext was freshly instantiated in my application. You should > probably use session.context(). > > Needless to say that (a) I don't know whether this really covers all of > the functionality of pageWithName and (b) I would not recommend this for > production code. > > good luck, > erik > > _______________________________________________ > WebObjects-talk mailing list > WebObjects-talk@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-talk From michael@stb.nccom.com Wed Jul 26 14:23:50 2000 Received: from lh2.rdc1.tx.home.com (ioracle@ha2.rdc1.tx.home.com [24.4.0.67]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id OAA22785 for ; Wed, 26 Jul 2000 14:23:49 -0700 (PDT) Received: from stb.nccom.com ([24.21.232.160]) by lh2.rdc1.tx.home.com (InterMail vM.4.01.02.00 201-229-116) with ESMTP id <20000726212347.GPOA13510.lh2.rdc1.tx.home.com@stb.nccom.com> for ; Wed, 26 Jul 2000 14:23:47 -0700 Message-ID: <397F4089.1F8119A0@stb.nccom.com> From: Michael Gersten Reply-To: michael@stb.nccom.com X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: "'webobjects-dev@omnigroup.com'" Subject: Re: Initialising PageWithName Objects References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 14:23:54 2000 I'm not familiar with java, but I do have this idea: Does java require that the initializers initialize 'this', or can it return a new object and require callers to use that? If so, then you could do something like .... /* I want to initialize a new page now */ ArgHandler.pushArg("My initialization string", "MyPage"); nextPage = pageWithName("MyPage"); ... In the initializer: public MyPage() { String argument = ArgHandler.popArg("MyPage"); return MyPage(argument); } You still need to write the ArgHandler class. The idea of having the arguments be stored on a stack (instead of just storing one or two fixed items) is to permit recursive calls; the idea of passing the class name is both for sanity checking, and to permit arguments to be pushed on in one order, but popped off in another order (because you may not know the order that sub-entities get created in, but still want to specify information to them). Michael Erik Doernenburg wrote: > > Emily Catharine Bache wrote: > > > Of course you can use the constructor!!! The framework methode > > > pageWithName() will just instantiate your new page and do some other > > > stuff to e.g. register the page in the request-response-cycle and > > > therefore > > > of course the standard constructor MyPage() is called. > > > > The problem is that I can't pass arguments to the constructor if I use > > pageWithName(). As you say, pageWithName() uses the default constructor > > MyPage(). If I declare a second constructor, MyPage(String argument) for > > example, pageWithName() won't call it. What I'd like to be able to do is: > > > > public MyPage someActionMethod() { > > String argument = calculateString(); > > MyPage page = new MyPage(argument); > > return page; > > } > > > > so that MyPage can use the argument to initialise a final member variable. > > Unfortunately this doesn't work, because my page won't be initialised > > correctly, registered in the request-response cycle etc. What I instead have > > to do is: > > > > public MyPage someActionMethod() { > > String argument = calculateString(); > > MyPage page = (MyPage)pageWithName("MyPage"); // calls default > > constructor > > page.setSomeString(argument); > > return page; > > } > > > > Which works, but means I can't declare my member variable "final" in MyPage. > > > > Is there a way to do all the registering and context setting and stuff on a > > page that I've constructed? [...] > > I tried something similar a while ago when I wanted to render WOComponents > into NSTextViews. What I did (all in ObjC and WO 4) was to instantiate the > component and then get hold of the template using WOComponent's > templateWithHTMLString method. The problem is that (to my knowledge) there > is no public method to associate the template with the component instance. > In WebObjects 4 the following did the trick: > > myComponent.takeValueForKey(myTemplate, "_template"); > > Finally, you might want to throw in a > > myComponent.ensureAwakeInContext(someContext); > > where someContext was freshly instantiated in my application. You should > probably use session.context(). > > Needless to say that (a) I don't know whether this really covers all of > the functionality of pageWithName and (b) I would not recommend this for > production code. > > good luck, > erik > > _______________________________________________ > WebObjects-talk mailing list > WebObjects-talk@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-talk From ehermanson@gofish.com Wed Jul 26 14:28:05 2000 Received: from [12.25.48.210] (sfntes.seafax.com [12.25.48.210]) by scyther.omnigroup.com (8.9.1/8.9.1) with SMTP id OAA23743 for ; Wed, 26 Jul 2000 14:28:03 -0700 (PDT) Received: from sfntes.seafax.com by [12.25.48.210] via smtpd (for omnigroup.com [198.151.161.1]) with SMTP; 26 Jul 2000 21:24:47 UT Received: from LEPTON ([10.170.1.21]) by sfntes.seafax.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id PHYYQSDJ; Wed, 26 Jul 2000 17:24:30 -0400 Message-ID: <00f201bff747$ee931ae0$1501aa0a@seafax.com> From: "Eric Hermanson" To: Subject: Joins and Relationship Optionality MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00EF_01BFF726.66A0DEE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 14:28:15 2000 This is a multi-part message in MIME format. ------=_NextPart_000_00EF_01BFF726.66A0DEE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm just wondering why EOModeler defaults to "Inner" join, especially = for optional relationships? If you construct a qualifier that spans two = tables, a master table and the corresponding destination table, joining = across the optional relationship, the resulting fetch will not include = all of the proper records unless you set the join to "Left Outer". The = missing records are master records that have no corresponding records in = the destination table. EOF should know from the optionality of the = relationship that the join should be LeftOuter (not inner). Shouldn't the EOModeler Join pop-up just be removed all together, = whereby EOF just makes all mandatory relationships Inner Joins, and = Optional relationships LeftOuter joins? It doesn't seem that RightOuter = join would even work in EOF at all (the fetch would always return 0 = records), and FullOuter would just equate to LeftOuter since the "Right" = half of the FullOuter doesn't matter in EOF (as just described). - Eric ------=_NextPart_000_00EF_01BFF726.66A0DEE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I'm just wondering why EOModeler = defaults to=20 "Inner" join, especially for optional relationships?  If you = construct a=20 qualifier that spans two tables, a master table and the=20 corresponding destination table, joining across the optional=20 relationship, the resulting fetch will not include all of the proper = records=20 unless you set the join to "Left Outer".  The missing records are = master=20 records that have no corresponding records in the destination=20 table.  EOF should know from the optionality of the relationship = that the=20 join should be LeftOuter (not inner).
 
Shouldn't the EOModeler Join pop-up = just be removed=20 all together, whereby EOF just makes all mandatory relationships = Inner=20 Joins, and Optional relationships LeftOuter joins?  It doesn't seem = that=20 RightOuter join would even work in EOF at all (the fetch would = always=20 return 0 records), and FullOuter would just equate to LeftOuter since = the=20 "Right" half of the FullOuter doesn't matter in EOF (as just=20 described).
 
- Eric
 
------=_NextPart_000_00EF_01BFF726.66A0DEE0-- From kwuolle@ceiss.org Wed Jul 26 14:44:19 2000 Received: from io.ceiss.org (io.ceiss.org [216.86.118.2]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id OAA26168 for ; Wed, 26 Jul 2000 14:44:19 -0700 (PDT) Received: by ganymede.ceiss.org with Internet Mail Service (5.5.2650.21) id ; Wed, 26 Jul 2000 14:48:09 -0700 Message-ID: <7F629D3E76A2D3118F1C00508B73057712D6DE@elara.ceiss.org> From: Kyle Wuolle To: "'webobjects-dev@omnigroup.com'" Subject: RE: Initialising PageWithName Objects MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 14:44:20 2000 Why don't you just cast the page returned by pageWithName to the page object. eg : objMyPage = (MyPage) pageWithName("MyPage"); ... then call setters like: objMyPage.setTitle("..."); That way you don't need a final class to pass args with etc... (which is sloppy java). -----Original Message----- From: Michael Gersten [mailto:michael@stb.nccom.com] Sent: Wednesday, July 26, 2000 12:48 PM To: 'webobjects-dev@omnigroup.com' Subject: Re: Initialising PageWithName Objects I'm not familiar with java, but I do have this idea: Does java require that the initializers initialize 'this', or can it return a new object and require callers to use that? If so, then you could do something like .... /* I want to initialize a new page now */ ArgHandler.pushArg("My initialization string", "MyPage"); nextPage = pageWithName("MyPage"); ... In the initializer: public MyPage() { String argument = ArgHandler.popArg("MyPage"); return MyPage(argument); } You still need to write the ArgHandler class. The idea of having the arguments be stored on a stack (instead of just storing one or two fixed items) is to permit recursive calls; the idea of passing the class name is both for sanity checking, and to permit arguments to be pushed on in one order, but popped off in another order (because you may not know the order that sub-entities get created in, but still want to specify information to them). Michael Erik Doernenburg wrote: > > Emily Catharine Bache wrote: > > > Of course you can use the constructor!!! The framework methode > > > pageWithName() will just instantiate your new page and do some other > > > stuff to e.g. register the page in the request-response-cycle and > > > therefore > > > of course the standard constructor MyPage() is called. > > > > The problem is that I can't pass arguments to the constructor if I use > > pageWithName(). As you say, pageWithName() uses the default constructor > > MyPage(). If I declare a second constructor, MyPage(String argument) for > > example, pageWithName() won't call it. What I'd like to be able to do is: > > > > public MyPage someActionMethod() { > > String argument = calculateString(); > > MyPage page = new MyPage(argument); > > return page; > > } > > > > so that MyPage can use the argument to initialise a final member variable. > > Unfortunately this doesn't work, because my page won't be initialised > > correctly, registered in the request-response cycle etc. What I instead have > > to do is: > > > > public MyPage someActionMethod() { > > String argument = calculateString(); > > MyPage page = (MyPage)pageWithName("MyPage"); // calls default > > constructor > > page.setSomeString(argument); > > return page; > > } > > > > Which works, but means I can't declare my member variable "final" in MyPage. > > > > Is there a way to do all the registering and context setting and stuff on a > > page that I've constructed? [...] > > I tried something similar a while ago when I wanted to render WOComponents > into NSTextViews. What I did (all in ObjC and WO 4) was to instantiate the > component and then get hold of the template using WOComponent's > templateWithHTMLString method. The problem is that (to my knowledge) there > is no public method to associate the template with the component instance. > In WebObjects 4 the following did the trick: > > myComponent.takeValueForKey(myTemplate, "_template"); > > Finally, you might want to throw in a > > myComponent.ensureAwakeInContext(someContext); > > where someContext was freshly instantiated in my application. You should > probably use session.context(). > > Needless to say that (a) I don't know whether this really covers all of > the functionality of pageWithName and (b) I would not recommend this for > production code. > > good luck, > erik > > _______________________________________________ > WebObjects-talk mailing list > WebObjects-talk@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-talk _______________________________________________ WebObjects-dev mailing list WebObjects-dev@omnigroup.com http://www.omnigroup.com/mailman/listinfo/webobjects-dev From mfinney@noochee.com Wed Jul 26 15:23:11 2000 Received: from exchange.csprings.dmwgroup.com ([205.168.71.236]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id PAA28879 for ; Wed, 26 Jul 2000 15:23:10 -0700 (PDT) Received: by exchange.dmwgroup.com with Internet Mail Service (5.5.2650.21) id ; Wed, 26 Jul 2000 16:25:17 -0600 Message-ID: From: "Finney, Michael" To: "'webobjects-dev@omnigroup.com'" Subject: Solved FW: Class Description cannot be nil error. _setClassDe scription Importance: low X-Priority: 5 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 15:23:12 2000 We believe there were spaces in the qualified Java class name (com.company.something.SomeClassName in the EOModeling tool.) Whatever the exact cause, the result was the meta data for the class was not being loaded. Instead of a EOClassDescription getting passed to the framework, I believe a null was getting passed. Thus, the "Class Description cannot be nil error. _setClassDescription" The class description was unable to be loaded correctly or at all. Thanks for your time all, Michael Finney Sun Certified Programmer for the Java 2 Platform > -----Original Message----- > From: Finney, Michael [SMTP:mfinney@noochee.com] > Sent: Tuesday, July 25, 2000 6:55 PM > To: 'webobjects@omnigroup.com' > Subject: Class Description cannot be nil error. > _setClassDescription > > Class Description cannot be nil error. _setClassDescription > > Ever seen this error? WebObjects 4.5, Java (with Objective C bridge of > course) > > I heard to fix the problem the 3 argument constructor of the > EOGenericRecord > subclass (that the error referred to) should be used. I am not sure how > to > though. > > What does the error mean? How can I fix it? > > I just wanted to do a > SomeClass theObj = new SomeClass(); > theObj.callSomeFunctionLikeSetForExample(some other object); > > Thanks, > Michael Finney > Sun Certified Programmer for the Java 2 Platform > > _______________________________________________ > WebObjects mailing list > WebObjects@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects From mclark@marketcircle.com Wed Jul 26 15:34:40 2000 Received: from netmax.tacticalstep.com (24.69.168.200.on.wave.home.com [24.69.168.200]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id PAA00253 for ; Wed, 26 Jul 2000 15:34:39 -0700 (PDT) Received: from mobileblue ([192.168.0.126]) by netmax.tacticalstep.com (8.8.8/8.8.8) with SMTP id SAA29107 for ; Wed, 26 Jul 2000 18:34:37 -0400 (EDT) (envelope-from mclark@marketcircle.com) Message-Id: <4.1.20000726182612.01d01c60@pop.idirect.com> X-Sender: mclark@mail.marketcircle.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 To: webobjects-dev@omnigroup.com From: Michael Clark Subject: PropertyList in Java?? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 15:34:41 2000 Hello All. Oh where oh where did PropertyList stuff go? No more reading plists into dicts or arrays?? Did this stuff get moved? How do I read a property list in Java?? (in WO4.5) Can some one fill me in on this please! :) Thanks in advance, Michael. ------ Michael Clark Marketcircle: Advanced Technology Group, Inc. Tel: (905) 837-8627 Mobile: (416) 676-9456 Fax: (905) 837-2546 Email: mclark@marketcircle.com Web: http://www.marketcircle.com/atg/ From ricardo@mpv.com Wed Jul 26 15:53:35 2000 Received: from mpv.com (ip114.110.136.216.in-addr.arpa [216.136.110.114]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id PAA01817 for ; Wed, 26 Jul 2000 15:53:34 -0700 (PDT) Received: from tecate [24.20.194.15] by mpv.com (FTGate 2, 2, 2, 1); Wed, 26 Jul 2000 18:00:01 -0500 To: webobjects-dev@omnigroup.com Subject: Re: PropertyList in Java?? From: "Ricardo J. Parada" X-Mailer: by Apple MailViewer (2.106) Message-Id: Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 15:53:36 2000 > How do I read a property list in Java?? Here's a code snippet that has worked for me... import com.apple.yellow.foundation.*; import java.io.File; File file = new File(filepath); NSData data = new NSData(file); String string = new String(data.bytes(0, data.length())); NSDictionary plist = (NSDictionary)NSPropertyListSerialization.propertyListFromString(string); From kristoffer-lists@codedivision.com Wed Jul 26 16:26:29 2000 Received: from officeline.dk (mail.codedivision.com [195.97.169.4]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id QAA03537 for ; Wed, 26 Jul 2000 16:26:29 -0700 (PDT) Received: from [212.130.8.237] (HELO [192.168.1.2]) by officeline.dk (CommuniGate Pro SMTP 3.3) with ESMTP id 729736 for webobjects-dev@omnigroup.com; Thu, 27 Jul 2000 01:26:27 +0200 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Subject: On-the-fly creation of graphs... From: Kristoffer Peterhansel To: WO-dev/Omnigroup Message-ID: Mime-version: 1.0 Organization: The Code Division Content-type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by scyther.omnigroup.com id QAA03537 Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 16:26:31 2000 Heya. I was just wondering if there is any frameworks (or libs or whatever) for WO that makes it possible to do simple on-the-fly graphs? Just some simple x y plotting with lines between the points. Anyway. I think I found a couple commercial ones. But since it's for a pet project of mine that's not really an option. Kristoffer Peterhänsel - Just someone... From john@pollard.net Wed Jul 26 16:36:32 2000 Received: from mail1.svr.pol.co.uk ([195.92.193.18]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id QAA04388 for ; Wed, 26 Jul 2000 16:36:30 -0700 (PDT) Received: from [195.92.198.123] (helo=mail17.svr.pol.co.uk) by mail1.svr.pol.co.uk with esmtp (Exim 3.13 #0) id 13Haiz-0003v8-00 for webobjects-dev@omnigroup.com; Thu, 27 Jul 2000 00:36:29 +0100 Received: from modem-66.eglantine.dialup.pol.co.uk ([62.136.174.66] helo=JORDAN) by mail17.svr.pol.co.uk with smtp (Exim 3.13 #0) id 13Haix-0005zV-00 for webobjects-dev@omnigroup.com; Thu, 27 Jul 2000 00:36:28 +0100 Reply-To: From: "John Pollard" To: Subject: Exception when creating an EOGenericRecord in an Editing Context - please help Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 16:36:35 2000 I have the following snippet of code to create a Transaction object (which is an EOGenericRecord as generated on the client side from EOModeler). I followed the EOF Developer's Guide on how to create an enterprise object. System.out.println("Creating class description"); EOClassDescription classDesc = EOClassDescription.classDescriptionForEntityName("Transaction"); System.out.println("Creating a new Transaction object"); EOEnterpriseObject enterpriseObject = classDesc.createInstanceWithEditingContext(editingContext(), null); System.out.println("We have created a: " + enterpriseObject); System.out.println("The class of this thing is: " + enterpriseObject.getClass()); // Now treat as a Transaction rather than a EOEnterpriseObject so I can set some specific values. Transaction transaction = (mp.client.Transaction) enterpriseObject; The problem I get is a class cast exception, here is the output... Creating class description Creating a new Transaction object We have created a: {values = {narrative = ; transactionState = ; acc ountingDate = ; dateTimeStamp = ; reference = ; items = null; transactiontype = null; }; self = ; } The class of this thing is: class Transaction Exception occurred during event dispatching: java.lang.ClassCastException: Transaction If getClass() says it is a Transaction shouldn't I be able to cast it into one? If not, how should I create a new transaction (I can't just construct it as it is an EOGenericRecord - even though this is in fact derived from EOCustomObject in Java client which I also find confusing!). Thanks for your help John From Dave@Yost.com Wed Jul 26 17:18:18 2000 Received: from mta1.eni.net (mta1.eni.net [205.214.55.22]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id RAA06948 for ; Wed, 26 Jul 2000 17:18:17 -0700 (PDT) Received: from se30.com ([209.101.249.240]) by mta1.eni.net with SMTP id <20000727001816.FFIQ4737.mta1@se30.com>; Wed, 26 Jul 2000 17:18:16 -0700 Received: from [209.101.249.200] (HELO bigsur.Yost.com) by se30.com (Stalker SMTP Server 1.8b8) with ESMTP id S.0000185310; Wed, 26 Jul 2000 16:18:16 -0800 Message-Id: <4.3.2.7.0.20000726170946.00b63840@mail4.bayarea.net> X-Sender: dayost@mail4.bayarea.net X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 To: James Dempsey From: Dave Yost Subject: setStoresIDsInCookies(true); then why ?wosid=xxx Cc: webobjects-dev@omnigroup.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 17:18:18 2000 >Date: Wed, 12 Jan 2000 13:46:55 -0800 (PST) >From: James Dempsey >To: Multiple recipients of list >Subject: Re: DirectAction and Session > >... >Suggestion: Try putting the session ID in a cookie. I did not have time to check it out - but first try toggling setStoresIDsInCookies to true in the Session constructor. In Component Actions this stores the session ID in a cookie instead of the URL. Haven't tried it with direct actions. ... This does not seem to work. Is there a trick? We setStoresIDsInCookies(true); A page is generated that has a directAction form in it, and the URL generated has the ?wosid=xxxx in it. Thanks Dave From maxmuller@mac.com Wed Jul 26 18:04:49 2000 Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id SAA12422 for ; Wed, 26 Jul 2000 18:04:49 -0700 (PDT) Received: from cartman ([63.202.209.220]) by mta6.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with SMTP id <0FYC00HDL03MLD@mta6.snfc21.pbi.net> for webobjects-dev@omnigroup.com; Wed, 26 Jul 2000 17:59:47 -0700 (PDT) From: Max Muller Subject: Re: setStoresIDsInCookies(true); then why ?wosid=xxx To: webobjects-dev@omnigroup.com Message-id: <0FYC00HDM03MLD@mta6.snfc21.pbi.net> X-Mailer: by Apple MailViewer (2.106) Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 18:04:52 2000 Hi, > >Suggestion: Try putting the session ID in a cookie. I did not have time to check it > out - but first try toggling setStoresIDsInCookies to true in the Session > constructor. In Component Actions this stores the session ID in a cookie instead > of the URL. Haven't tried it with direct actions. ... > > This does not seem to work. Is there a trick? > > We setStoresIDsInCookies(true); > A page is generated that has a directAction form in it, and the URL generated has > the ?wosid=xxxx in it. In addition to storing the id in a cookie you need to turn off storing the id in the url, ie after the above line, add: setStoresIDsInURLs(false); Regards, Max From froy@singleentry.com Wed Jul 26 18:16:37 2000 Received: from kevin.singleentry.com ([216.142.28.235]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id SAA13268 for ; Wed, 26 Jul 2000 18:16:33 -0700 (PDT) Received: from darkman.singleentry.com (cm21614016975.laketravis.ispchannel.com [216.140.169.75]) by kevin.singleentry.com (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id UAA19160 for ; Wed, 26 Jul 2000 20:16:31 -0500 Message-Id: <200007270116.UAA19160@kevin.singleentry.com> X-Authentication-Warning: kevin.singleentry.com: Host cm21614016975.laketravis.ispchannel.com [216.140.169.75] claimed to be darkman.singleentry.com To: webobjects-dev@omnigroup.com Subject: Re: WORepetition and background coloring [Thanks] From: Fabien Roy Reply-To: froy@singleentry.com X-Mailer-Extensions: SWSignature 1.3.2 X-Mailer: by Apple MailViewer (2.106) Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 18:16:39 2000 Thanks to all who responded. I got it working with the WORepetition index binding. However I got another question; I need a working Java example on how to use the JSImageFlyover dynamic element. Fabien. -- _,,---,,,_ /| _,;;-; ._ `'`-.',\ `-'' ) /, ._,-( ( -7,| (_/`-' `--\_)``---` Fabien Roy Singleentry.com 107 RR 620 South, suite 117 Lakeway, TX 78734 Tel: (512) 266-6379 ext 1350 Fax: (512) 266-6375 Mob: (512) 796-9854 http://www.singleentry.com From dempseyj@apple.com Wed Jul 26 19:48:45 2000 Received: from mail-out2.apple.com (mail-out2.apple.com [17.254.0.51]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id TAA17582 for ; Wed, 26 Jul 2000 19:48:44 -0700 (PDT) Received: from mailgate2.apple.com (A17-129-100-225.apple.com [17.129.100.225]) by mail-out2.apple.com (8.9.3/8.9.3) with ESMTP id TAA15620 for ; Wed, 26 Jul 2000 19:48:44 -0700 (PDT) Received: from scv3.apple.com (scv3.apple.com) by mailgate2.apple.com (Content Technologies SMTPRS 4.1.2) with ESMTP id ; Wed, 26 Jul 2000 19:48:43 -0700 Received: from [17.197.34.245] (dempja2.apple.com [17.197.34.245]) by scv3.apple.com (8.9.3/8.9.3) with ESMTP id TAA02430; Wed, 26 Jul 2000 19:48:43 -0700 (PDT) User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Subject: Re: Exception when creating an EOGenericRecord in an Editing Context - please help From: James Dempsey To: , Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 19:48:47 2000 I'm guessing that if you changed your code to: Transaction transaction = (Transaction) enterpriseObject; instead of: Transaction transaction = (mp.client.Transaction) enterpriseObject; The error will disappear. > System.out.println("The class of this thing is: " + > enterpriseObject.getClass()); Notice when you send a class toString() (as is implied by the System.out.println), it will give you it's fully qualified path name. Notice that the result gives you just Transaction - no package. (or more correctly the 'default package' I believe). The other thing to note, is that you never actually insert the new object into the editing context. The method createInstanceWithEditingContext() DOES NOT do an insert. (I believe it takes the editing context so it can figure out which of potentially many EOF stacks it is sitting on top of, so it can determine the correct models that service the entity, so you get the right kind of instance back). You need a line of code somewhere like: editingContext().insertObject(enterpriseObject); Hope this helps. -James -- James Dempsey Apple iServices Training Apple Computer, Inc. dempsey@apple.com (408) 974-7817 > From: John Pollard > Reply-To: john@pollard.net > Date: Wed, 26 Jul 2000 23:36:50 +0100 > To: webobjects-dev@omnigroup.com > Subject: Exception when creating an EOGenericRecord in an Editing Context - > please help > > > I have the following snippet of code to create a Transaction object (which > is an EOGenericRecord as generated on the client side from EOModeler). I > followed the EOF Developer's Guide on how to create an enterprise object. > > > System.out.println("Creating class description"); > EOClassDescription classDesc = > EOClassDescription.classDescriptionForEntityName("Transaction"); > > System.out.println("Creating a new Transaction object"); > EOEnterpriseObject enterpriseObject = > classDesc.createInstanceWithEditingContext(editingContext(), null); > > System.out.println("We have created a: " + enterpriseObject); > System.out.println("The class of this thing is: " + > enterpriseObject.getClass()); > > // Now treat as a Transaction rather than a EOEnterpriseObject so I can set > some specific values. > Transaction transaction = (mp.client.Transaction) enterpriseObject; > > > The problem I get is a class cast exception, here is the output... > > Creating class description > Creating a new Transaction object > We have created a: {values = {narrative = com.apple.client.eocontrol.EONu > llValue>; transactionState = ; > acc > ountingDate = ; dateTimeStamp > = lass com.apple.client.eocontrol.EONullValue>; reference = com.apple.clien > t.eocontrol.EONullValue>; items = null; transactiontype = null; }; self = > Transaction[Gid Not Found](166b9c)>; } > The class of this thing is: class Transaction > Exception occurred during event dispatching: > java.lang.ClassCastException: Transaction > > If getClass() says it is a Transaction shouldn't I be able to cast it into > one? If not, how should I create a new transaction (I can't just construct > it as it is an EOGenericRecord - even though this is in fact derived from > EOCustomObject in Java client which I also find confusing!). > Thanks for your help > John > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev From dempseyj@apple.com Wed Jul 26 20:01:14 2000 Received: from mail-out1.apple.com (mail-out1.apple.com [17.254.0.52]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id UAA18179 for ; Wed, 26 Jul 2000 20:01:14 -0700 (PDT) Received: from mailgate2.apple.com (A17-129-100-225.apple.com [17.129.100.225]) by mail-out1.apple.com (8.9.3/8.9.3) with ESMTP id UAA17274 for ; Wed, 26 Jul 2000 20:01:13 -0700 (PDT) Received: from scv3.apple.com (scv3.apple.com) by mailgate2.apple.com (Content Technologies SMTPRS 4.1.2) with ESMTP id ; Wed, 26 Jul 2000 20:01:13 -0700 Received: from [17.197.34.245] (dempja2.apple.com [17.197.34.245]) by scv3.apple.com (8.9.3/8.9.3) with ESMTP id UAA02763; Wed, 26 Jul 2000 20:01:12 -0700 (PDT) User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Subject: Re: PropertyList in Java?? From: James Dempsey To: "Ricardo J. Parada" , Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 20:01:16 2000 In 4.5 there is also an NSPropertyListSerialization method that will take an NSData directly. Saving you a full line of code... ;) NSPropertyListSerialization.propertyListFromData(); BTW, if you haven't already fired up the JavaBrowser app (in the WebObjects menu/program group/what-have-you on OS X Server/NT) it's a good thing to do. Perusing the Java Browser, you can see things that the doc may have inadvertently missed (like the NSPropertyListSerialization class and its methods). In an argument between the class browser and the docs, the runtime class browser wins... Also, it can be quicker to navigate from framework to framework/class to class than in the HTML-based Info Center. I usually have them both open when I'm working. Of course, if you're in Obj-C. The class browser is built into PB. Just click the little "object blocks" button for an Obj-C class browser. Just another unsung but handy tool in everyone's favorite $699 world-class app server. Cheers, James -- James Dempsey Apple iServices Training Apple Computer, Inc. dempsey@apple.com (408) 974-7817 > From: "Ricardo J. Parada" > Date: Wed, 26 Jul 2000 15:53:32 -0700 > To: webobjects-dev@omnigroup.com > Subject: Re: PropertyList in Java?? > >> How do I read a property list in Java?? > > Here's a code snippet that has worked for me... > > import com.apple.yellow.foundation.*; > import java.io.File; > > File file = new File(filepath); > NSData data = new NSData(file); > String string = new String(data.bytes(0, data.length())); > NSDictionary plist = > (NSDictionary)NSPropertyListSerialization.propertyListFromString(string); > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev From kconlan@apple.com Wed Jul 26 21:25:28 2000 Received: from mail-out1.apple.com (mail-out1.apple.com [17.254.0.52]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id VAA20325 for ; Wed, 26 Jul 2000 21:25:27 -0700 (PDT) Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out1.apple.com (8.9.3/8.9.3) with ESMTP id VAA25541 for ; Wed, 26 Jul 2000 21:25:27 -0700 (PDT) Received: from scv2.apple.com (scv2.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.1.5) with ESMTP id ; Wed, 26 Jul 2000 21:25:26 -0700 Received: from apple.com (rara2ppp24.apple.com [17.219.112.33]) by scv2.apple.com (8.9.3/8.9.3) with ESMTP id VAA10843; Wed, 26 Jul 2000 21:25:25 -0700 (PDT) Message-ID: <397FB96E.4F63C3BA@apple.com> From: Kent Conlan Organization: Apple Enterprise Software X-Mailer: Mozilla 4.73 [en] (WinNT; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: Scott Corscadden CC: webobjects-dev@omnigroup.com Subject: Re: Encryption References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Wed Jul 26 21:25:30 2000 Scott, The problem is that you must first add the provider. See below for an Example Kent ------------------------------------------------------------------- // Application.java import com.apple.yellow.foundation.*; import com.apple.yellow.webobjects.*; import com.apple.yellow.eocontrol.*; import java.security.*; import cryptix.*; public class Application extends WOApplication { /** Cryptix Fix for JDK 1.1 not correctly implementing class unloading as clarified at http://www.javasoft.com/docs/books/jls/clarify.html - in particular it will sometimes unload classes loaded by the default ("system") classloader. */ private static final Class workaround = java.security.Security.class; static { // dynamically add the Cryptix Provider Security.addProvider(new cryptix.provider.Cryptix()); } } ------------------------------------------------------------------- Scott Corscadden wrote: > > Thanks for pointing me to the Cryptix libraries, they do seem like what I'll > need... However, I'd like to build them as a Framework that I can then > build & link into when needed, as opposed to actually installing them via > the script (and creating a need to do that again & again on deployment > boxes, etc..). > > When I try to build a project of type Framework, with the .java files dumped > in, it complains about 'could not import class > cryptix.provider.key.blah....' which I suspect has to do with the order of > compiling the packages themselves. Any clues? Am I shooting myself in the > foot (again ;) > > TIA > ScottC > > _______________________________________________ > WebObjects mailing list > WebObjects@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects From norbert.heger@obdev.at Thu Jul 27 00:59:28 2000 Received: from email.aon.at (ws01sp09.highway.telekom.at [195.3.96.110]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id AAA26617 for ; Thu, 27 Jul 2000 00:59:27 -0700 (PDT) Received: from cray (M119P011.dipool.highway.telekom.at [62.46.4.203]) by email.aon.at (8.9.3/8.9.3) with SMTP id JAA34082 for ; Thu, 27 Jul 2000 09:59:25 +0200 Received: by cray (NX5.67g/NX3.0S) id AA00396; Thu, 27 Jul 2000 10:02:36 +0200 Message-Id: <200007270802.AA00396@cray> Organization: Objective Development Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 4.2mach_patches v148.2) Received: by NeXT.Mailer (1.148.2) From: Norbert Heger To: webobjects-dev@omnigroup.com Subject: Delayed method invocation Reply-To: Norbert Heger Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 00:59:29 2000 I've encountered some strange behaviour in WO4.5 when trying to perform a delayed method invocation. Using either [performSelector:withObject:afterDelay:] or [NSTimer scheduledTimer...] causes the entire app to hang until the delayed method has been finally invoked. Any ideas? Best regards, Norbert _____________________________ _________________________________ O B J E C T I V E D E V E L O P M E N T Norbert Heger Mac OS X - Cocoa - EOF norbert.heger@obdev.at Software Development +43-664-2811777 http://www.obdev.at/ From gregory.bernard@groupemultimedia.com Thu Jul 27 01:18:13 2000 Received: from localhost.localdomain (IDENT:root@boccob.rmm.fr [195.115.46.221]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id BAA27592 for ; Thu, 27 Jul 2000 01:18:12 -0700 (PDT) Received: from [195.115.46.186] (greg.rmm.fr [195.115.46.186]) by localhost.localdomain (8.9.3/8.9.3) with ESMTP id KAA26165 for ; Thu, 27 Jul 2000 10:19:57 +0200 User-Agent: Microsoft Outlook Express Macintosh Edition - 5.0 (1513) Subject: WOTextField issue=?ISO-8859-1?B?ig==?= ? From: Gregory Bernard To: WebObjects Dev Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by scyther.omnigroup.com id BAA27592 Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 01:18:14 2000 Dear users, I have a list of items / I use a WORepetition to display them with each item I want to use a WOTextField (to associate a number with each item). What kind of binding could I use with the WOTextField ? If I use a simple Key I control only one WOTextField (the last one particularly). I want to have control on evry (WOTextField, item) Thank you for your helpŠ  ________________________________________________ «?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§ ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ Grégory Bernard 10, rue vauvilliers Directeur Internet 75001 Paris France Groupe Multimédia tel : +(33) 1 40 26 79 85 ________________________________________________ «?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§ ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ From chionhwe@fudge.dhs.org Thu Jul 27 01:21:11 2000 Received: from ntdc.fudge.dhs.org (mcns3-docsis122.bd.singa.pore.net [202.156.82.122]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id BAA27802 for ; Thu, 27 Jul 2000 01:21:10 -0700 (PDT) Received: from ntdc.fudge.dhs.org (mcns3-docsis122.bd.singa.pore.net [202.156.82.122]) by ntdc.fudge.dhs.org (Netscape Messaging Server 3.62) with SMTP id 124 for ; Thu, 27 Jul 2000 16:21:05 +0800 Received: FROM fudge.dhs.org BY ntdc.fudge.dhs.org ; Thu Jul 27 16:21:04 2000 Message-ID: <397FF0F0.7EEB3ED4@fudge.dhs.org> From: Chionh Wei Peng Organization: Incaz.com X-Mailer: Mozilla 4.73 [en] (WinNT; U) X-Accept-Language: en,ja,zh,zh-CN,zh-TW MIME-Version: 1.0 To: webobjects-dev@omnigroup.com Subject: Using ActiveX in Java Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 01:21:12 2000 Hi!! I have a small problem.. I would like to use an ActiveX object in my Java-based WO app. I looked at the docs can created a protocol and a wrapper object in ObjC. I encountered an error everytime I run the WrapIt application to generate the .jobs file. Can someone who have done it before share with me how to do it? My application is running on WO4.0. A simple example will speed up my understanding. Thanks!! Wei Peng From willscheidegger@mac.com Thu Jul 27 02:25:20 2000 Received: from bw150zhb.bluewin.ch (bw150zhb.bluewin.ch [195.186.1.68]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id CAA00277 for ; Thu, 27 Jul 2000 02:25:19 -0700 (PDT) Received: from mac.com (bw2-75pub237.bluewin.ch [213.3.75.237]) by bw150zhb.bluewin.ch (8.9.3/8.9.3) with ESMTP id LAA18953 for ; Thu, 27 Jul 2000 11:24:45 +0200 (MET DST) Message-ID: <39801BAE.F34AC37F@mac.com> From: Will Scheidegger Reply-To: willscheidegger@mac.com X-Mailer: Mozilla 4.7 (Macintosh; I; PPC) X-Accept-Language: en MIME-Version: 1.0 To: webobjects-dev@omnigroup.com Subject: How to do a "Yes-No" WORadioButton Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 02:25:24 2000 Hi again, next question: How can a create a simple Yes/No radio button, which will set a String to either "yes" or "no" and of course also will get set according to the value in the String variable? You wouldn't be using a WORadioButtonList, right? I managed to do it by implementing 4 methodes and binding them to the "Yes" or "No" WORadioButton's "checked" attribute (2 returning a boolean according to the value of the String object, 2 setting the value of the String object according to the users input). I would consider this to be a hack and strongly believe that there's a better way to to it, right? Thanks for your help. Regards, Will From bufalini@rmm.fr Thu Jul 27 06:41:59 2000 Received: from localhost.localdomain (IDENT:root@boccob.rmm.fr [195.115.46.221]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id GAA07422 for ; Thu, 27 Jul 2000 06:41:58 -0700 (PDT) Received: from beorie (beorie.rmm.fr [195.115.46.192]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id PAA30402 for ; Thu, 27 Jul 2000 15:43:44 +0200 Message-ID: <007601bff7cf$bf33b0b0$c02e73c3@rmm.fr> From: "Olivier Bufalini" To: Subject: 4D DB Adaptor MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0073_01BFF7E0.82AA3130" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 06:42:01 2000 This is a multi-part message in MIME format. ------=_NextPart_000_0073_01BFF7E0.82AA3130 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello I was wondering if there is a 4D adaptor for WebObject. If not how can I = access to this database. Olivier ------=_NextPart_000_0073_01BFF7E0.82AA3130 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello
 
I was wondering if there is a 4D = adaptor for=20 WebObject. If not how can I access to this database.
 
Olivier
 
------=_NextPart_000_0073_01BFF7E0.82AA3130-- From jhodapp@mcservices.com Thu Jul 27 06:49:32 2000 Received: from mcservices.com ([207.250.124.70]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id GAA07921 for ; Thu, 27 Jul 2000 06:49:31 -0700 (PDT) Received: from [10.0.1.5] (207.250.124.54) by mcservices.com with ESMTP (Eudora Internet Mail Server 2.2.2); Thu, 27 Jul 2000 08:50:48 -0500 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Subject: Adding a series of strings to an NSArray... From: Jim Hodapp To: Web Objects Development Questions Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 06:49:34 2000 If I am iterating through a loop and retrieving different strings from a database per each iteration, how do I add these strings to an NSArray? What I am doing is trying to create and NSArray of email addresses for use with the distination address parameter for the WOMailDelivery object. Thanks, Jim H From tara@mcservices.com Thu Jul 27 07:06:05 2000 Received: from mcservices.com (mail.mcservices.com [207.250.124.70]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id HAA08696 for ; Thu, 27 Jul 2000 07:06:04 -0700 (PDT) Received: from [207.250.124.246] (207.250.124.246) by mcservices.com with ESMTP (Eudora Internet Mail Server 2.2.2); Thu, 27 Jul 2000 09:07:23 -0500 X-Mailer: Microsoft Outlook Express Macintosh Edition - 4.5 (0410) Subject: Error messages From: "Tara Hodapp" To: Web Objects Development Questions Mime-version: 1.0 X-Priority: 3 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Message-ID: <1247415653-4900006@mcservices.com> Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 07:06:06 2000 I am trying to do some error checking by comparing two fields on a registration page. I would like to post an error if two fields are not equal, and then return the user to the registration process, picking up where they were if their info is not ok. What is the easiest way to go about this (not losing the information they have already entered). Please be specific as to the Java code. Thanks. Tara From msimons@onevision.de Thu Jul 27 07:11:19 2000 Received: from outdoor.onevision.de (root@[195.127.157.60]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id HAA09119 for ; Thu, 27 Jul 2000 07:11:17 -0700 (PDT) Received: from dali.onevision.de (r1547.muc.dial.surf-callino.de [213.21.7.23]) by outdoor.onevision.de (8.10.2/8.10.2/ROSCH) with ESMTP id e6REBiQ17050; Thu, 27 Jul 2000 16:11:45 +0200 Received: from onevision.de (marc [192.168.7.102]) by dali.onevision.de (8.9.3/8.9.3/ROSCH) with ESMTP id QAA25006; Thu, 27 Jul 2000 16:10:04 +0100 (GMT+0100) Message-ID: <398050CC.9BEDEB84@onevision.de> From: Michael Simons Reply-To: msimons@onevision.de Organization: OneVision GmbH X-Mailer: Mozilla 4.6 [de] (WinNT; I) X-Accept-Language: de MIME-Version: 1.0 To: Jim Hodapp CC: Web Objects Development Questions Subject: Re: Adding a series of strings to an NSArray... References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 07:11:21 2000 Use an NSMutableArray instead of NSArray and add the Strings with addObject:(id) Jim Hodapp schrieb: > > If I am iterating through a loop and retrieving different strings from a > database per each iteration, how do I add these strings to an NSArray? What > I am doing is trying to create and NSArray of email addresses for use with > the distination address parameter for the WOMailDelivery object. > > Thanks, > > Jim H > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- "If Microsoft wanted to really challenge Java, they should have gone with PYTHON. I just don't believe it's possible for any major advances in language design to be made while restricting oneself to the mistakes Kernighan and Ritchie made 30 years ago." -- Harold Elliot From chad@objectwerks.com Thu Jul 27 07:25:43 2000 Received: from hobbiton.shire.net (frogmorton.shire.net [204.228.145.136]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id HAA10039 for ; Thu, 27 Jul 2000 07:25:42 -0700 (PDT) Received: from [216.64.45.172] (helo=192.168.99.200) by hobbiton.shire.net with esmtp (Exim 2.04 #5) id 13HoYs-0001Hz-00; Thu, 27 Jul 2000 08:22:58 -0600 From: "Chad Leigh, ObjectWerks, Inc." To: Jim Hodapp , Web Objects Development Questions Subject: Re: Adding a series of strings to an NSArray... Message-ID: <25946306.3173682338@[192.168.99.200]> In-Reply-To: X-Mailer: Mulberry/2.0.0 (MacOS) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 07:25:45 2000 Hi You need to have an NSMutableArray Here is some ObjC pseudocode while () { [myMutableArray addObject:newString]; } --On Thursday, July 27, 2000 8:49 AM -0500 Jim Hodapp wrote: > If I am iterating through a loop and retrieving different strings from a > database per each iteration, how do I add these strings to an NSArray? > What I am doing is trying to create and NSArray of email addresses for > use with the distination address parameter for the WOMailDelivery object. > > Thanks, > > Jim H > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev Chad Leigh, VP Engineering ObjectWerks, Inc. Enterprise Solutions Provider and Consulting chad@objectwerks.com From deninger@avalon.net Thu Jul 27 07:33:36 2000 Received: from arthur.avalon.net (root@arthur.avalon.net [204.71.106.20]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id HAA10830 for ; Thu, 27 Jul 2000 07:33:35 -0700 (PDT) Received: from [10.0.1.2] (dhcp80ffe582.dynamic.uiowa.edu [128.255.229.130]) by arthur.avalon.net (8.9.1/8.9.1) with ESMTP id JAA29470 for ; Thu, 27 Jul 2000 09:33:26 -0500 (CDT) Mime-Version: 1.0 X-Sender: deninger@avalon.net Message-Id: To: WebObjects Development ListServ From: Michael Deninger Subject: Custom Java class Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 07:33:37 2000 Hi, First off, I am not a real programmer. I just play one at work. Any insight regarding the below question would be appreciated. I have a simple custom class (below). The object works except that the initialization appears to ignore one of my arguments. eg. PopUpObject myPopup = new PopUpObject("None", "*"); System.out.println("The following line should be 'None *'"); System.out.println(myPopup.pass() + " " + myPopup.Display()); System debugger output: The following line should be 'None *' None None I have also tried changing the constructor to do nothing and manually setting the variables with the accessor methods after the PopUpObject has been created. Same end result, though. I can, of course, work around the problem (use an if statement and catch my None and change it to *), but I would like to know why this doesn't work. --------PopUpObject.java--------- // an object to allow creation of popup buttons // to display something different than it's selection import com.apple.yellow.foundation.*; import com.apple.yellow.webobjects.*; import com.apple.yellow.eocontrol.*; public class PopUpObject extends NSObject { protected String display; // what the popup shows protected String pass; // what will be used by the component public PopUpObject (String display, String pass) { setPass pass; setDisplay display; } public String display() { return display; } public void setDisplay(String newDisplay) { display = newDisplay; } public String pass() { return display; } public void setPass(String newPass) { pass = newPass; } } Michael Deninger The University of Iowa College of Pharmacy Phone: (319) 335-6513 deninger@blue.weeg.uiowa.edu From Stephan.Bachofen@uptime.ch Thu Jul 27 07:49:24 2000 Received: from furka.uptime.ch ([212.126.160.119]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id HAA11498 for ; Thu, 27 Jul 2000 07:49:23 -0700 (PDT) Received: from zhp155wks (localhost [127.0.0.1]) by furka.uptime.ch (8.8.8+Sun/8.8.8) with SMTP id QAA23215; Thu, 27 Jul 2000 16:49:09 +0200 (MET DST) Message-ID: <017701bff7d9$c8ba4e00$118610ac@uptime.ch> From: "Stephan Bachofen" To: "WebObjects Development ListServ" , "Michael Deninger" References: Subject: Re: Custom Java class MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 07:49:26 2000 Your accessor Method's public String pass() and public String display() are returning both the variable display :-) ----- Original Message ----- From: Michael Deninger To: WebObjects Development ListServ Sent: Thursday, July 27, 2000 4:33 PM Subject: Custom Java class > Hi, > > First off, I am not a real programmer. I just play one at work. Any > insight regarding the below question would be appreciated. > > I have a simple custom class (below). The object works except that > the initialization appears to ignore one of my arguments. eg. > > PopUpObject myPopup = new PopUpObject("None", "*"); > System.out.println("The following line should be 'None *'"); > System.out.println(myPopup.pass() + " " + myPopup.Display()); > > System debugger output: > The following line should be 'None *' > None None > > I have also tried changing the constructor to do nothing and manually > setting the variables with the accessor methods after the PopUpObject > has been created. Same end result, though. > > I can, of course, work around the problem (use an if statement and > catch my None and change it to *), but I would like to know why this > doesn't work. > > --------PopUpObject.java--------- > // an object to allow creation of popup buttons > // to display something different than it's selection > > import com.apple.yellow.foundation.*; > import com.apple.yellow.webobjects.*; > import com.apple.yellow.eocontrol.*; > > public class PopUpObject extends NSObject { > protected String display; // what the popup shows > protected String pass; // what will be used by the component > > public PopUpObject (String display, String pass) { > setPass pass; > setDisplay display; > } > > public String display() { > return display; > } > > public void setDisplay(String newDisplay) { > display = newDisplay; > } > > public String pass() { > return display; > } > > public void setPass(String newPass) { > pass = newPass; > } > > > > } > Michael Deninger > The University of Iowa College of Pharmacy > Phone: (319) 335-6513 > deninger@blue.weeg.uiowa.edu > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev > From jhodapp@mcservices.com Thu Jul 27 07:50:19 2000 Received: from mcservices.com (mail.mcservices.com [207.250.124.70]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id HAA11690 for ; Thu, 27 Jul 2000 07:50:19 -0700 (PDT) Received: from [10.0.1.5] (207.250.124.54) by mcservices.com with ESMTP (Eudora Internet Mail Server 2.2.2); Thu, 27 Jul 2000 09:51:31 -0500 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Subject: Returning the current time (hours actually)... From: Jim Hodapp To: Web Objects Development Questions Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 07:50:29 2000 If I want to check whether the current time falls between 3:00 AM to 12:00 PM how could I do this? Thanks, Jim H From Sebastien.Bigaret@enst-bretagne.fr Thu Jul 27 07:52:05 2000 Received: from audrey.enst-bretagne.fr (audrey.enst-bretagne.fr [192.108.115.9]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id HAA12307 for ; Thu, 27 Jul 2000 07:52:04 -0700 (PDT) Received: from parmentille.enst-bretagne.fr (parmentille.enst-bretagne.fr [192.44.75.17]) by audrey.enst-bretagne.fr (8.10.1/8.10.1) with ESMTP id e6REpRM14561; Thu, 27 Jul 2000 16:51:27 +0200 Received: from enst-bretagne.fr (geoclan1.enst-bretagne.fr [192.44.76.110]) by parmentille.enst-bretagne.fr (8.8.8/8.8.8) with ESMTP id QAA15012; Thu, 27 Jul 2000 16:51:26 +0200 (MET DST) Message-ID: <39804C6E.64B9E0B@enst-bretagne.fr> From: Sebastien Bigaret Organization: GeoClan S.A. X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: fr-FR,fr,en,de,ca,bg MIME-Version: 1.0 To: Michael Deninger CC: WebObjects Development ListServ Subject: Re: Custom Java class References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 07:52:08 2000 > public String pass() { // ask for pass > return display; // ... and return display! > } *Ooops* are part of our burdens, for sure! From kieren_macmillan@mac.com Thu Jul 27 07:58:43 2000 Received: from smtp13.bellglobal.com (smtp1.ab.sympatico.ca [204.101.251.52]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id HAA12893 for ; Thu, 27 Jul 2000 07:58:43 -0700 (PDT) Received: from [216.209.79.236] (HSE-Toronto-ppp100923.sympatico.ca [216.209.79.236]) by smtp13.bellglobal.com (8.8.5/8.8.5) with ESMTP id LAA03933 for ; Thu, 27 Jul 2000 11:03:01 -0400 (EDT) User-Agent: Microsoft Outlook Express Macintosh Edition - 5.01 (1630) Subject: how to determine next business day depending on country From: Kieren Richard MacMillan To: WebObjects Mailing List Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 07:58:44 2000 Hello all! We don't want to reinvent the wheel here, so we're hoping someone has done this before... Given a date and a country, we need to know the next business day taking in to account holidays. Any thoughts? How about a pre-built Framework?? ;-) Thanks! Kieren. From kieren_macmillan@mac.com Thu Jul 27 08:02:52 2000 Received: from smtp13.bellglobal.com (smtp1.ab.sympatico.ca [204.101.251.52]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id IAA13360 for ; Thu, 27 Jul 2000 08:02:51 -0700 (PDT) Received: from [216.209.79.236] (HSE-Toronto-ppp100923.sympatico.ca [216.209.79.236]) by smtp13.bellglobal.com (8.8.5/8.8.5) with ESMTP id LAA06244 for ; Thu, 27 Jul 2000 11:07:09 -0400 (EDT) User-Agent: Microsoft Outlook Express Macintosh Edition - 5.01 (1630) Subject: how to fetch *only* the last row from a database; setting a "fake" primary key From: Kieren Richard MacMillan To: WebObjects Mailing List Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 08:02:55 2000 Howdy, y'all! I need to fetch *only* the last row from a database. Of course it's easy enough to fetch *all* rows and then just use the last, but I figured there must be an easy way just to get the last row. On a related note, I was hoping someone would comment on the following process I'm using. I need to provide a "fake" primary key (i.e. independent of the database PK) for each object, with each class potentially having a different prefix and/or key length. The main problems I'm trying to avoid are: 1. two users creating objects at the same time with the same ID (even though it's not a real primary key); 2. a user seeing the key "change" right after hitting "Save Changes" (e.g. if the database detects a dupe and increments the fakePK that was initially given out); 3. having "wasted" fakePKs if the user cancels object creation. So what I'm doing now is: 1. user presses "Create New "; 2. Object appears with "[ID to be inserted]" as the ID (or not showing any ID at all at this stage, with a WOConditional on the ID itself); 3. user hits "Save Changes"; 4. During saveChanges(), ObjectID is set according to formula -- e.g. Work Request might be "WR0003"; 5. Component refreshes to show user the real ID. Not the world's best interface, admittedly, but it solves the three problems anyway. Anybody have a better idea? Any help would be appreciated -- thanks! Kieren. From willscheidegger@mac.com Thu Jul 27 08:02:57 2000 Received: from bw150zhb.bluewin.ch (bw150zhb.bluewin.ch [195.186.1.68]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id IAA13396 for ; Thu, 27 Jul 2000 08:02:56 -0700 (PDT) Received: from mac.com (bw2-69pub169.bluewin.ch [213.3.69.169]) by bw150zhb.bluewin.ch (8.9.3/8.9.3) with ESMTP id RAA11308 for ; Thu, 27 Jul 2000 17:02:23 +0200 (MET DST) Message-ID: <39806AEE.3E57B4A0@mac.com> From: Will Scheidegger Reply-To: willscheidegger@mac.com X-Mailer: Mozilla 4.7 (Macintosh; I; PPC) X-Accept-Language: en MIME-Version: 1.0 To: Webobjects Developer Mailing List Subject: What Value Classes to use in EOModeler Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 08:03:01 2000 Hi WO / EO experts, my WO application is working fine, but it's not "pretty" yet... so I decided to start again at the base: The EOModeler. Here (even after going through "EOF Tools & Tecniques" again) I have a bunch of questions on DB datatypes to Java class mapping: - Why is a java.lang.Number (abstract!) or the subclass BigDecimal o.k. for a DB datatype NUMBER, but an Integer will produce consitency check errors? (why not use an Integer or Float?) - What does the "i" or the "d" in the column "Value Type" mean? - What is a FactoryMethodName? I would assume it's the name of a method needed to convert the DB type NUMBER into the java.lang.Integer. If so, where do I create such a factory method? O.k. That's enough questions for now. Thank you for your help! Regards, Will From sebfrey@sextantti.com Thu Jul 27 08:09:11 2000 Received: from scruz.net (nic.scruz.net [165.227.1.2]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id IAA14289 for ; Thu, 27 Jul 2000 08:09:11 -0700 (PDT) Received: from [165.227.118.205] (sextantti.com [165.227.118.205]) by scruz.net (8.8.5/1.34) with ESMTP id IAA13826; Thu, 27 Jul 2000 08:08:56 -0700 (PDT) (envelope-from sebfrey@sextantti.com) User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Subject: Re: 4D DB Adaptor From: Sebastian Frey To: Olivier Bufalini , Message-ID: In-Reply-To: <007601bff7cf$bf33b0b0$c02e73c3@rmm.fr> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 08:09:12 2000 Olivier - There is no EOF Adapter for 4D. On Windows, in theory you could use the ODBC EOF Adapter and the ODBC Driver for 4D Server. The problem is, the ODBC Driver for 4D Server may not supply enough performance or an adequate level of SQL/ODBC conformance for your needs. They also have 4D Open for Java - but it's not a JDBC driver. It's essentially the same 4D Open API as the rest of the 4D Open suite. So you wouldn't be using it with any of the EOF stuff. But it should be possible to use it so WebObjects can talk to 4D. It's something I've wanted to try, but haven't found the time. Really, the thing to do is to get yourself FrontBase, OpenBase, SQL Server, Oracle, something like that. Use WebObjects with one of those, and then replicate your data from 4D to this other database. To do that, you would use the 4D ODBC Plug-In (or 4D for Oracle, if that's what you have). -Sebastian Frey Sextant Technologies http://www.sextantti.com > From: "Olivier Bufalini" > Date: Thu, 27 Jul 2000 15:37:02 +0200 > To: > Subject: 4D DB Adaptor > > Hello > > I was wondering if there is a 4D adaptor for WebObject. If not how can I > access to this database. > > Olivier > > From meena@iasun2.epfl.ch Thu Jul 27 08:10:04 2000 Received: from iamail.epfl.ch (iasun2.epfl.ch [128.178.5.172]) by scyther.omnigroup.com (8.9.1/8.9.1) with SMTP id IAA14451 for ; Thu, 27 Jul 2000 08:10:03 -0700 (PDT) Received: (qmail 20612 invoked from network); 27 Jul 2000 17:10:02 +0200 Received: from iamac98.epfl.ch (HELO iamail.epfl.ch) (128.178.5.117) by iasun2.epfl.ch with SMTP; 27 Jul 2000 17:10:02 +0200 Message-ID: <398050C9.A9A347E8@iamail.epfl.ch> From: meena noorni X-Mailer: Mozilla 4.5 (Macintosh; I; PPC) X-Accept-Language: en MIME-Version: 1.0 To: Webobjects Developer Mailing List Subject: Window status bar Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 08:10:05 2000 Can anyone tell me how to display a message on the window's status bar when the mouse moves over an element (for example, a text field or a popup button, etc.) and how to remove the message when the mouse moves out of the element ? Thanks in advance, Meena. From daniel.bleisteiner@metaobject.de Thu Jul 27 08:14:10 2000 Received: from www.zuehlsdorf.de (mail.metaobject.de [194.75.27.69]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id IAA14920 for ; Thu, 27 Jul 2000 08:13:54 -0700 (PDT) Received: from phoenix ([194.75.27.71]) by www.zuehlsdorf.de (8.9.1/8.9.1) with SMTP id RAA18286 for ; Thu, 27 Jul 2000 17:16:22 +0100 (WET DST) From: "Daniel Bleisteiner" To: "WebObjects Dev" Subject: How to format NSNumber with 2 decimals as string... Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 08:14:11 2000 Daniel Bleisteiner, MetaObject GmbH - Oranienburger Strasse 69, 10117 Berlin Tel: +49-30-285381-10, Fax: +49-30-285381-99 -----Ursprüngliche Nachricht----- Von: Daniel Bleisteiner [mailto:daniel.bleisteiner@metaobject.de] Gesendet: Dienstag, 26. Juni 2007 16:34 An: WebObjects Betreff: How to format NSNumber with 2 decimals as string... Hi there, i just tried to get a string from an NSNumber using [NSString stringWithFormat:@"%@",anNSNumber] using WebScript. This one only gives me the integer part of the NSNumber. So i tried [NSString stringWithFormat:@"%.2@",anNSNumber] and even [NSString stringWithFormat:@"%.2f",[anNSNumber floatValue]] both without success. They gave me extraordanary large values. Whats the hint for getting a simple 2-decimal string representation of an NSNumber like "12.89" ? Daniel Bleisteiner, MetaObject GmbH - Oranienburger Strasse 69, 10117 Berlin Tel: +49-30-285381-10, Fax: +49-30-285381-99 From daniel.bleisteiner@metaobject.de Thu Jul 27 08:14:26 2000 Received: from www.zuehlsdorf.de (mail.metaobject.de [194.75.27.69]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id IAA14995 for ; Thu, 27 Jul 2000 08:14:23 -0700 (PDT) Received: from phoenix ([194.75.27.71]) by www.zuehlsdorf.de (8.9.1/8.9.1) with SMTP id RAA18290 for ; Thu, 27 Jul 2000 17:16:56 +0100 (WET DST) From: "Daniel Bleisteiner" To: "WebObjects Dev" Subject: Problem with to WOApps with similar name... Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 08:14:28 2000 Hi there, it's so anoying that i just wanted to ask if it's still present in v4.5... WebObjects 4.0.1 can't handle 2 WOApps with similar names. I got one WOApp called "TXTsomething" and another one called "TXT". Whenever i start "TXT" after "TXTsomething" the first gets overwriten in /tmp/WebObjects.conf and therefor won't interact with the client anymore. If i start "TXT" before "TXTsomething" all works as usual. This is anoying during developement cause i need to restart "TXTsomething" everytime i started "TXT". Does 4.5 act the same way or will i get rid of this bug with the upgrade? Daniel Bleisteiner, MetaObject GmbH - Oranienburger Strasse 69, 10117 Berlin Tel: +49-30-285381-10, Fax: +49-30-285381-99 From scottc@centricsystems.ca Thu Jul 27 08:24:23 2000 Received: from mail.centricsystems.ca (ns1.centricsystems.ca [207.236.96.226]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id IAA15812 for ; Thu, 27 Jul 2000 08:24:23 -0700 (PDT) Received: from [207.236.96.230] by mail.centricsystems.ca with ESMTP (Eudora Internet Mail Server 1.2); Thu, 27 Jul 2000 11:25:48 -0500 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Subject: Re: Encryption From: Scott Corscadden To: Kent Conlan CC: Message-ID: In-Reply-To: <397FB96E.4F63C3BA@apple.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 08:24:25 2000 > Scott, > > The problem is that you must first add the provider. > See below for an Example This is good to know; thanks Kent. However.. I am still trying to compile the WebObjects Framework with the Cryptix stuff separately. That kind of a project doesn't have an Application.java, and I can't seem to get THAT to compile. I'd have no problem using the workaround in a WOApp that needs it; I just need to be able to create a Framework having the java classes.. Anyone else have an idea? ScottC > Kent > > ------------------------------------------------------------------- > // Application.java > import com.apple.yellow.foundation.*; > import com.apple.yellow.webobjects.*; > import com.apple.yellow.eocontrol.*; > import java.security.*; > import cryptix.*; > > public class Application extends WOApplication > { > /** > Cryptix > Fix for JDK 1.1 not correctly implementing class unloading as clarified at > http://www.javasoft.com/docs/books/jls/clarify.html - in particular it will > sometimes unload classes loaded by the default ("system") classloader. > */ > private static final Class workaround = java.security.Security.class; > > static { > // dynamically add the Cryptix Provider > Security.addProvider(new cryptix.provider.Cryptix()); > } > } > ------------------------------------------------------------------- > > > > > Scott Corscadden wrote: >> >> Thanks for pointing me to the Cryptix libraries, they do seem like what I'll >> need... However, I'd like to build them as a Framework that I can then >> build & link into when needed, as opposed to actually installing them via >> the script (and creating a need to do that again & again on deployment >> boxes, etc..). >> >> When I try to build a project of type Framework, with the .java files dumped >> in, it complains about 'could not import class >> cryptix.provider.key.blah....' which I suspect has to do with the order of >> compiling the packages themselves. Any clues? Am I shooting myself in the >> foot (again ;) >> >> TIA >> ScottC >> >> _______________________________________________ >> WebObjects mailing list >> WebObjects@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/webobjects From bmarquis@ogse.com Thu Jul 27 08:26:23 2000 Received: from sbnt4.ogse.com (gateway.ogse.com [12.2.153.230]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id IAA16176 for ; Thu, 27 Jul 2000 08:26:22 -0700 (PDT) Received: by SBNT4 with Internet Mail Service (5.5.2448.0) id ; Thu, 27 Jul 2000 10:25:51 -0500 Message-ID: From: "Brian P. Marquis" To: "'Jim Hodapp'" , Web Objects Development Questions Subject: RE: Returning the current time (hours actually)... MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 08:26:27 2000 Take a look at NSGregorianDate in the WO Info Center. int currentHour = new NSGregorianDate().hourOfDay(); if ( 2 < currentHour < 13 ) { // do stuff here } > -----Original Message----- > From: Jim Hodapp [SMTP:jhodapp@mcservices.com] > Sent: Thursday, July 27, 2000 9:50 AM > To: Web Objects Development Questions > Subject: Returning the current time (hours actually)... > > If I want to check whether the current time falls between 3:00 AM to 12:00 > PM how could I do this? > > Thanks, > > Jim H > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev From mhinca@hotpop.com Thu Jul 27 08:42:18 2000 Received: from zagnut.hotpop.com (zagnut.hotpop.com [204.57.55.32]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id IAA17290 for ; Thu, 27 Jul 2000 08:42:18 -0700 (PDT) Received: from psecontract2 (h182.n-C6AC05.sac.verio.net [198.172.5.182]) by zagnut.hotpop.com (Postfix) with SMTP id AEC9B63A52; Thu, 27 Jul 2000 11:42:11 -0400 (EDT) Reply-To: From: "Michael Henderson" To: "meena noorni" , "Webobjects Developer Mailing List" Subject: RE: Window status bar Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Importance: Normal In-Reply-To: <398050C9.A9A347E8@iamail.epfl.ch> X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 08:42:19 2000 This is a javascrippt question, not webobjects. I have the O'Reilly JavaScript book on my shelf for times like this. However my bookshelf is at home and I am not! Try using onmouseover in your HTML to execute some javascript when the mouse moves over your element, and set the status message there (You'll have to find that out yourself - see the book mentioned above). There is probably a onmouseexit value you can use to execute javascript to clear the field, again the O'Rielly book will give you what you need. In plain HTML: Link In WOD: MyLink: WOHyperlink { action = submit; string = "Link"; onmouseover = "doSomething()"; } In general anything in the bindings for a dynamic element that is not recognized by the element (e.g onmouseover in the example above) is passed right through into the generated HTML. You can even bind these items to a method and generate different javascript code based on some logic in the method. regards, Michael Henderson Web Application Construction With WebObjects email: mhenderson@behindthesite.com www: www.behindthesite.com -----Original Message----- From: webobjects-dev-admin@omnigroup.com [mailto:webobjects-dev-admin@omnigroup.com]On Behalf Of meena noorni Sent: Thursday, July 27, 2000 8:10 AM To: Webobjects Developer Mailing List Subject: Window status bar Can anyone tell me how to display a message on the window's status bar when the mouse moves over an element (for example, a text field or a popup button, etc.) and how to remove the message when the mouse moves out of the element ? Thanks in advance, Meena. _______________________________________________ WebObjects-dev mailing list WebObjects-dev@omnigroup.com http://www.omnigroup.com/mailman/listinfo/webobjects-dev From kieren_macmillan@mac.com Thu Jul 27 08:47:13 2000 Received: from smtp13.bellglobal.com (smtp1.ab.sympatico.ca [204.101.251.52]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id IAA17707 for ; Thu, 27 Jul 2000 08:47:12 -0700 (PDT) Received: from [216.209.79.236] (HSE-Toronto-ppp100923.sympatico.ca [216.209.79.236]) by smtp13.bellglobal.com (8.8.5/8.8.5) with ESMTP id LAA27038; Thu, 27 Jul 2000 11:51:25 -0400 (EDT) User-Agent: Microsoft Outlook Express Macintosh Edition - 5.01 (1630) Subject: Re: Returning the current time (hours actually)... From: Kieren Richard MacMillan To: "Brian P. Marquis" , "'Jim Hodapp'" , Web Objects Development Questions Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 08:47:14 2000 Hello, Brian -- > if ( 2 < currentHour < 13 ) Does this really work? I would have thought it would always return true, since it would calculate in the same manner as: if ( (2 < currentHour) < 13 ) and that you must instead use a logical operator, like so: if (2 < currentHour && currentHour > 13) Am I incorrect? Thanks! Kieren. From mhinca@hotpop.com Thu Jul 27 08:51:09 2000 Received: from zagnut.hotpop.com (zagnut.hotpop.com [204.57.55.32]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id IAA18123 for ; Thu, 27 Jul 2000 08:51:09 -0700 (PDT) Received: from psecontract2 (h182.n-C6AC05.sac.verio.net [198.172.5.182]) by zagnut.hotpop.com (Postfix) with SMTP id 63E3F63A85; Thu, 27 Jul 2000 11:51:03 -0400 (EDT) Reply-To: From: "Michael Henderson" To: "Jim Hodapp" , "Web Objects Development Questions" Subject: RE: Returning the current time (hours actually)... Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Importance: Normal In-Reply-To: X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 08:51:11 2000 Hi, Try: public boolean nowBetweenHours(int min, int max) { NSGregorianDate date = new NSGregorianDate(); int hod = date.hourOfDay() + 1; return (hod >= min & hod <= max); } And use it: if (nowBetweenHours(3, 24) { this.doWhatYouWannDo(); } Warning this code is untested, just typed in to outlook, read the docs on NSGregorianDate for the real scoop. Cheers, Michael Henderson Web Application Construction With WebObjects email: mhenderson@behindthesite.com www: www.behindthesite.com -----Original Message----- From: webobjects-dev-admin@omnigroup.com [mailto:webobjects-dev-admin@omnigroup.com]On Behalf Of Jim Hodapp Sent: Thursday, July 27, 2000 7:50 AM To: Web Objects Developme nt Questions Subject: Returning the current time (hours actually)... If I want to check whether the current time falls between 3:00 AM to 12:00 PM how could I do this? Thanks, Jim H _______________________________________________ WebObjects-dev mailing list WebObjects-dev@omnigroup.com http://www.omnigroup.com/mailman/listinfo/webobjects-dev From bmarquis@ogse.com Thu Jul 27 08:51:20 2000 Received: from sbnt4.ogse.com (gateway.ogse.com [12.2.153.230]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id IAA18138 for ; Thu, 27 Jul 2000 08:51:20 -0700 (PDT) Received: by SBNT4 with Internet Mail Service (5.5.2448.0) id ; Thu, 27 Jul 2000 10:50:50 -0500 Message-ID: From: "Brian P. Marquis" To: "'Kieren Richard MacMillan'" , "Brian P. Marquis" , "'Jim Hodapp'" , Web Objects Development Questions Subject: RE: Returning the current time (hours actually)... MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 08:51:23 2000 You are correct. The if should read: if ( 2 < currentTime && currentTime < 13 ) { -- Brian > -----Original Message----- > From: Kieren Richard MacMillan [SMTP:kieren_macmillan@mac.com] > Sent: Thursday, July 27, 2000 10:48 AM > To: Brian P. Marquis; 'Jim Hodapp'; Web Objects Development Questions > Subject: Re: Returning the current time (hours actually)... > > Hello, Brian -- > > > if ( 2 < currentHour < 13 ) > > Does this really work? I would have thought it would always return true, > since it would calculate in the same manner as: > > if ( (2 < currentHour) < 13 ) > > and that you must instead use a logical operator, like so: > > if (2 < currentHour && currentHour > 13) > > Am I incorrect? > > Thanks! > Kieren. From robert.wohlfahrt@sachsen-net.com Thu Jul 27 08:54:15 2000 Received: from digedag.comnet (IDENT:root@p3e9e6f86.dip0.t-ipconnect.de [62.158.111.134]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id IAA18686 for ; Thu, 27 Jul 2000 08:54:13 -0700 (PDT) Received: from dag.comnet (wohlfahr@dag.comnet [192.168.10.20]) by digedag.comnet (8.8.7/8.8.7) with SMTP id RAA00756 for ; Thu, 27 Jul 2000 17:49:54 +0200 From: wohlfahr-list@sachsen-net.com Organization: Com.Net GbR To: webobjects-dev@omnigroup.com Subject: problems with providing data for downloading X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00072717561400.00658@dag.comnet> Content-Transfer-Encoding: 8bit Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 08:54:22 2000 ---------- Weitergeleitete Nachricht ---------- Subject: problems with providing data for downloading Date: Tue, 25 Jul 2000 15:45:39 +0200 From: Robert Wohlfahrt Hi, becaus I want to provide some Data from a variable to download to the clients Browser, I created the followin class: public class download extends next.wo.Component { public download(){ super(); } ImmutableBytes theData; public void setData(ImmutableBytes value){ theData=value; } public void appendToResponse(Response r, Context c){ r.setContent(theData); r.setHeader("application/octet-stream","content-type"); r.setHeader("attachment;filename=test.sod","content-disposition"); } } But everytime I link to a method, witch returns a reference to this class, I get a "NullPointerException at wo.FrameSession.appendToResponse(FrameSession.java:319)" Did I forget something (a pointer or so)? The method, witch returns the reference: public Component getDoc1(){ download doc = new download(); doc.setData(prospekt().pDoc1()); return doc; } Robert Wohlfahrt -- Robert Wohlfahrt (robert.wohlfahrt@sachsen-net.com) Tel: 0179 / 2980074 Fax: 0351 / 2880145 ------------------------------------------------------- -- Robert Wohlfahrt (robert.wohlfahrt@sachsen-net.com) Tel: 0179 / 2980074 Fax: 0351 / 2880145 From deninger@avalon.net Thu Jul 27 08:54:56 2000 Received: from arthur.avalon.net (root@arthur.avalon.net [204.71.106.20]) by scyther.omnigroup.com (8.9.1/8.9.1) with ESMTP id IAA18908 for ; Thu, 27 Jul 2000 08:54:53 -0700 (PDT) Received: from [10.0.1.2] (dhcp80ffe582.dynamic.uiowa.edu [128.255.229.130]) by arthur.avalon.net (8.9.1/8.9.1) with ESMTP id KAA13057 for ; Thu, 27 Jul 2000 10:54:50 -0500 (CDT) Mime-Version: 1.0 X-Sender: deninger@avalon.net Message-Id: To: WebObjects Development ListServ From: Michael Deninger Subject: Enumeration efficiency Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: webobjects-dev-admin@omnigroup.com Errors-To: webobjects-dev-admin@omnigroup.com X-BeenThere: webobjects-dev@omnigroup.com X-Mailman-Version: 2.0beta3 Precedence: bulk List-Id: Developing web applications using WebObjects Date: Thu Jul 27 08:55:00 2000 Hi, First off, thanks everyone for putting up with my sometimes stupid questions. This question should be less silly and might generate some good discussion. When programming in Java, which would be a better design for manipulating large amounts of data from the database: 1) do one large fetch from the DB and enumerate through all (eventually thousands) of records 2) do seve