Re: ERXValidationException out of a Unique Constraint Violation

2008-05-27 Thread Zak Burke
On Tue, May 27, 2008 at 5:45 AM, Paul Stringer [EMAIL PROTECTED] wrote: I'm following the PracticalWebObjects advice to handle unique values validation at the database and then handle it in thrown EOGeneralAdaptorExceptions. Wish I'd checked this before I wasted time pre-checking for all this

Re: EOEditingContext for JUnit

2008-03-25 Thread Zak Burke
On Mon, Mar 24, 2008 at 4:48 PM, Chris Meyer [EMAIL PROTECTED] wrote: Thanks. That seems to work. I created a new database config, set it to Memory and could easily reproduce the problem. Now... is there any way to choose the database config at runtime so that for my regular launch of the

permission trouble with WO 5.3 on Mac OS 10.5

2008-01-29 Thread Zak Burke
Following Mike's list of how to get the WO 5.3 frameworks running under Mac OS 10.5, http://lists.apple.com/archives/Webobjects-dev/2007/Oct/msg00357.html, I'm having some permissions errors that I can't unravel. When I include the appserver/appserverusr keys in the wotaskd and womonitor

Re: permission trouble with WO 5.3 on Mac OS 10.5

2008-01-29 Thread Zak Burke
On Jan 29, 2008, at 2:46 PM, Art Isbell wrote: On Jan 29, 2008, at 7:59 AM, Zak Burke wrote: I turned on adaptor debugging and saw the adaptor was trying to cache info in /Library/WebObjects/Configuration/SiteConfig.xml, a file owned by root, so I chowned that to appserver:appserverusr

Re: permission trouble with WO 5.3 on Mac OS 10.5

2008-01-29 Thread Zak Burke
On Jan 29, 2008, at 2:18 PM, Chuck Hill wrote: On Jan 29, 2008, at 7:59 AM, Zak Burke wrote: Following Mike's list of how to get the WO 5.3 frameworks running under Mac OS 10.5, http://lists.apple.com/archives/Webobjects-dev/2007/Oct/ msg00357.html, I'm having some permissions errors

Re: new session on each request

2008-01-25 Thread Zak Burke
that the defaults for session handling would be different between these two request handlers (maybe that still counts as a bug, as Pierre suggested?), but it is documented in the WOApplication API docs so I can't really complain. zak. On Jan 24, 2008, at 2:41 PM, Zak Burke wrote: On Jan 24

new session on each request

2008-01-24 Thread Zak Burke
I'm going a little bit mad here. I am working on a new app and cannot get session management to work correctly. Requests to the root of the app (.../simple.woa) generate new sessions; requests generated from within the app (submitting a form) reuse existing sessions. I must have some basic

Re: new session on each request

2008-01-24 Thread Zak Burke
On Jan 24, 2008, at 3:15 PM, Chuck Hill wrote: On Jan 24, 2008, at 10:40 AM, Zak Burke wrote: I'm going a little bit mad here. I am working on a new app and cannot get session management to work correctly. Requests to the root of the app (.../simple.woa) generate new sessions; requests

Re: new session on each request

2008-01-24 Thread Zak Burke
On Jan 24, 2008, at 4:19 PM, Chuck Hill wrote: On Jan 24, 2008, at 1:12 PM, Zak Burke wrote: On Jan 24, 2008, at 3:15 PM, Chuck Hill wrote: On Jan 24, 2008, at 10:40 AM, Zak Burke wrote: I'm going a little bit mad here. I am working on a new app and cannot get session management to work

Re: No Instance available on Leopard / WO 5.3

2007-11-29 Thread Zak Burke
Guido Neitzer wrote on 11/28/07 5:34 PM: Then after creating /tmp/logWebObjects, I had to restart Apache. I don't believe that this was necessary prior to WO 5.4, but I'm not 100% certain I did that too, as I said. Still, no output. Note that these are different: apachectl

Re: deep down NPE in EOF

2007-11-12 Thread Zak Burke
Ray Kiddy wrote on 11/11/07 5:51 PM: On Nov 8, 2007, at 3:40 PM, Zak Burke wrote: Ken Anderson wrote on 11/5/07 9:04 AM: Since you state that all StoredName objects have MyAppPerson data, why not just fetch MyAppPerson initially and have a to-one relationship back to StoredName

Re: access to flattened relationship EOs

2007-11-09 Thread Zak Burke
Chuck Hill wrote on 11/9/07 1:00 PM: On Nov 8, 2007, at 4:09 PM, Zak Burke wrote: I have two EO classes joined in a flattened many-to-many relationship (User -- UserGroupJoin -- Group). UserGroupJoin is dead-simple -- nothing but foreign keys to User and Group. I want to log whenever one

Re: deep down NPE in EOF

2007-11-08 Thread Zak Burke
. With this implementation, EOF is now happy. zak. On Nov 4, 2007, at 7:32 PM, Chuck Hill wrote: On Nov 4, 2007, at 8:09 AM, Zak Burke wrote: I'm getting a strange NPE from deep down in EOF that I can't figure out. I think it might be related to some slightly funky modeling I'm doing

access to flattened relationship EOs

2007-11-08 Thread Zak Burke
I have two EO classes joined in a flattened many-to-many relationship (User -- UserGroupJoin -- Group). UserGroupJoin is dead-simple -- nothing but foreign keys to User and Group. I want to log whenever one of the join items is created or removed. The UI for this is a UserEdit page with Group

deep down NPE in EOF

2007-11-04 Thread Zak Burke
I'm getting a strange NPE from deep down in EOF that I can't figure out. I think it might be related to some slightly funky modeling I'm doing, but my EOs work fine in other places so I'm not sure why they're broken here. Here's the funkiness: I have two models -- NameStore and MyApp.

Re: No template found (during startup)

2007-08-06 Thread Zak Burke
Brendan Duddridge wrote on 8/2/07 1:23 PM: Hi, We've been receiving intermittently the following error in our log files: com.webobjects.appserver._private.WOComponentDefinition No template found for component ProductDetailComponent at file:/Library/Frameworks/SSCommon.framework/. The odd

Re: Setting a parameter in redirect URL

2007-07-31 Thread Zak Burke
Jeff Schmitz wrote on 7/31/07 11:28 AM: However, when I pick up the parameters on the other side, there is a stray amp; being added before the NICK parameter. [...] When I print the dictionary out it shows: login Hyperlink values: {amp;NICK = (FireBreathers); USER = (1004); amp;wosid =

Re: WOHyperlink disabled binding - set invert value

2007-07-16 Thread Zak Burke
cheonghee wrote on 7/16/07 7:01 AM: Hyperlink is disabled when aBooleanFlag is true. How do i set it in reverse..Hyperlink is not disabled when aBooleanFlag is true only in the binding field? Thanks. The easiest thing is to write a cover method that flips the value and bind to that in your

Re: [Wonder-disc] OT: Avoid automatic registration with Image Code

2007-06-08 Thread Zak Burke
Daniele Corti wrote on 6/8/07 7:07 AM: I looked for tutorial or howto for create a registration panel that ask for an authentication code, passed to the client by an image to avoid the spam registrations. http://webobjects.mdimension.com/wonder/api/er/captcha/ERCaptcha.html zak.

Re: Force quit without monitor

2007-05-09 Thread Zak Burke
Art Isbell wrote on 5/8/07 10:43 PM: I'd take that a bit further and recommend that no one use this script without rewriting it for WO 5 and the operating system under which the WO apps are deployed. I.e., consider it an outline of how a WO (re)startup script could be written. Here is

Re: Array variables in building a qualifier in EOModeler

2007-04-27 Thread Zak Burke
Saker Ghani wrote on 4/26/07 7:13 PM: Is there a simple way to build a qualifier in EOModeler such that it is possible to use a variable binding that is an array? So, for example, going beyond the traditional city = $city, is it possible to bind in the fashion, city = @cities, and have

Re: No instance found alert ?

2007-04-11 Thread Zak Burke
James Cicenia wrote on 4/11/07 10:06 AM: Anyone know of a good cheap service to monitor my web apps when they stop responding... i.e, no instance available, etc. My Adaptor Settings/Redirection URL is a CGI script that sends email (see below). You can also set up a cron-job to periodically

Re: Updating Nested To-Many Relationship

2007-04-09 Thread Zak Burke
David Avendasora wrote on 4/5/07 2:32 PM: I want to allow the user to move a RSComponent from one RoutingStep to another. I present the user with a WOPopUpButton on each rsComponent of all the RoutingSteps and they can simply pick which one they want it in. It does update everything properly,

Re: Refresh

2007-02-23 Thread Zak Burke
WIESEN Bruno wrote on 2/23/07 3:22 AM: Hi all, I have to refresh a file...so every 5 minutes an action has to be performed! But i don't know which method use...do you have an idea? See java.util.Timer and java.util.TimerTask. For example: Put this in some method called by your

Re: using primary and foreign keys as class properties

2007-02-05 Thread Zak Burke
Steven Mark McCraw wrote on 2/3/07 6:36 PM: I recall reading in some of the early Apple WebObjects documentation that it's a huge terrible thing to mark your foreign and primary keys as class properties (e.g. check the little diamond in EOModeler so that your generated classes give you setters

Re: Component to display raw row results as table

2006-10-19 Thread Zak Burke
John Huss wrote on 10/19/06 11:24 AM: Is there a component in Product Wonder or anywhere that will more or less just take an array of dictionaries (raw rows) and display it as a table? This isn't very WO-like, but it does the trick if you really just want an HTML string in return:

Re: EO/Java class default Values

2006-09-27 Thread Zak Burke
Tarun Reddy wrote on 9/27/06 4:18 PM: I assume that awakeFromInsertion (based on the name) does not execute until the actual insertion of the object in the database, which means I can't rely on the value until the object has been saved. I am currently using the method to store creation date

Re: addObjectsToBothSide... not really both side

2006-09-26 Thread Zak Burke
Dev WO wrote on 9/25/06 1:26 PM: So this one is a oneToOne relationship, with is specified in both entities A and B. [...] A and B have a foreign key to each other, but only A gets it... B's foreign key stay null. I think you may not be modeling the relationship correctly. If you really

Re: Sorting objects on attributes of related objects

2006-09-14 Thread Zak Burke
Matt Kime wrote on 9/13/06 12:38 PM: Does sortArrayUsingKeyOrderArray support sorting based on the attributes of a related object? Or do I need to make sense of NSComparator? (anyone know of any good examples?) For the record, here is a simple NSComparator example that sorts Person objects by

Re: Using distinct in to-many relationship?

2006-08-21 Thread Zak Burke
Marcos Trejo Munguia wrote on 8/21/06 2:17 PM: Recently I found that the SQL generated by a fetch using setPrefetchingRelationshipKeyPaths with a to-many relationship generates the query without distinct while for to-one relationships uses distinct. Call setUsesDistinct(true) on your

Re: WOStats URL problem

2006-08-16 Thread Zak Burke
John Huss wrote on 8/15/06 4:21 PM: When I log into JavaMonitor from a remote machine and press WOStats for a running instance it loads the url: http://localhost/cgi-bin/WebObjects/MyApp.woa/56/wa/WOStats How is the host defined in the Hosts tab of Monitor? The WOStats tool links straight to

Re: MS Word document from Web Objects app

2006-08-11 Thread Zak Burke
Inessa Weiner wrote on 8/11/06 11:00 AM: Hello, Our client would like an ability to generate a letter - MS Word document from Web Objects application. Can someone who has done a similar thing point me in the right direction? http://jakarta.apache.org/poi/index.html The POI project consists

Re: General List Disclosure of WWDC WO info

2006-08-11 Thread Zak Burke
Karl wrote on 8/11/06 2:11 PM: If you read the detailed license, any WO 5.3.x onwards application is licensed for deployment on any compatible platform without requiring the purchase of a license. IANAL, but my interpretation is different than yours. Here are details from

Re: Need help building an EOQualifier with session values

2006-05-22 Thread Zak Burke
Chuck Hill wrote on 5/21/06 11:44 AM: NSArray bindings = new NSArray( new Object [] { (Session)session().valueForKey(user.client.clientName) } ); valueForKeyPath not valueForKey I've been bitten by this one too. Is there ever a reason to use valueForKey instead of valueForKeyPath?

Re: WO Training

2006-04-25 Thread Zak Burke
David Avendasora wrote on 4/25/06 4:46 AM: I need some Web Objects development training. Where can I get it? The two Apple courses (400, 410) do not have any scheduled dates. I wouldn't hold your breath waiting for the Apple training. I check their site every few months and haven't seen any

Re: LDAP schema modification on OS X Server

2006-04-10 Thread Zak Burke
Thomas B Winans wrote on 4/9/06 3:52 PM: I need to modify the LDAP schema on OS X server to support secure access to some new functionality I am developing. Can anyone point me to where I go to learn how schema modification on OS X Server is done? Assuming you have LDAP set to run

Re: Download File Question for IE

2006-04-03 Thread Zak Burke
James Cicenia wrote on 4/3/06 10:07 AM: I am thinking it has to do with how I am setting mimetypes, etc.??? Other sites seem to work properly. Here is my simple piece of code: response.setHeader(application/vnd.ms-excel, Content-Type);

Re: Connecting to deployment database for development/testing

2006-03-30 Thread Zak Burke
(IOException e) { // log this } } On 3/28/06, Zak Burke [EMAIL PROTECTED] wrote: John Huss wrote on 3/28/06 10:23 AM: I was curious how most of you specify the URL of your database in EOModeler. Do you use localhost, etc, or the actual address of the server? What I mean is, do you

Re: Connecting to deployment database for development/testing

2006-03-28 Thread Zak Burke
John Huss wrote on 3/28/06 10:23 AM: I was curious how most of you specify the URL of your database in EOModeler. Do you use localhost, etc, or the actual address of the server? What I mean is, do you connect to the production database while developing and/or testing, or do you just use a

Re: setting up apache FOP

2006-03-21 Thread Zak Burke
Zac Konopa wrote on 3/20/06 7:01 PM: Does anyone know of any online resource where they walk you through the installation and use of the FOP module, preferably in a webobjects environment? Failing that any suggestions? The following post includes sample code for using WO with with a

Re: Thoughts on choosing a source code control system?

2006-03-13 Thread Zak Burke
Jerry W. Walker wrote on 3/13/06 10:05 AM: For any commercial project, I feel exposed without a couple things in place: a good SCM system that supports concurrent development among team members I think Mike and Jerry have summarized the, Is it worth it to even bother with SCS? issues very

Re: Site management strategies with Subversion

2006-03-13 Thread Zak Burke
[EMAIL PROTECTED] wrote on 3/13/06 3:25 PM: Something I do frequently is push small changes from a dev site to a live site. In CVS I do this by tagging the files in the dev site I want to move over with stable, then going over to the live site (which was originally created by checking out on

Re: Application Startup...

2006-01-27 Thread Zak Burke
Colin Shreffler wrote on 1/27/06 5:33 PM: In my wo application, I have a class that was created by the development environment (when the project was created) called Application.java. I am trying to add a start up routine to my application (to read information in a Properties file) and thought

Re: WebServices Sample Code Location ?

2006-01-19 Thread Zak Burke
Denis Stanton wrote on 1/18/06 9:55 PM: On 19/01/2006, at 3:23 PM, Louis Demers wrote: the archives (and even documentation) refers to sample code for webservices [...] where can i find them ? :/Developer/Examples/JavaWebObjects/AmazonClient I couldn't find a list of what all these

Re: How do I update a relationship in a WODisplayGroup?

2005-12-15 Thread Zak Burke
Chuck Hill wrote on 12/14/05 9:29 PM: On Dec 14, 2005, at 6:20 PM, Arturo PĂ©rez wrote: Zak Burke wrote: [EMAIL PROTECTED] wrote on 12/13/05 3:57 PM: In my experience, WO will update attributes persisted to the DB, but for relations it only pulls from its cache. AFAIK, That's only true

How-to: on-demand PDF using Apache FOP

2005-12-06 Thread Zak Burke
I saw the iText thread here a few days ago and thought I'd post an an on-demand PDF example using Apache FOP 0.90 (http://xmlgraphics.apache.org/fop/). Many FO examples are available here: http://www.dpawson.co.uk/xsl/sect3/. I've heard that there are instructions on how to do this in the