Re: Setting a custom EOFetchSpecification for a WODisplayGroup

2007-10-30 Thread Paul Hoadley
On 29/10/2007, at 9:30 PM, Paul Lynch wrote: I am very much a WO novice, just working my way through Ruzek's WO web application construction kit. WOWACK is a little old now, being WO 4.5; but I still like it the best of the entry level books. Yes, it still seems to be usable. Well, it

WOLips nightly: generated SQL missing spaces

2007-10-31 Thread Paul Hoadley
Hello, I'm running Eclipse 3.3.1.1, WOLips 3.3.4565. I've just tried generating some SQL from a previously good EO model, and I'm getting code like this: CREATE TABLE Billable (billable_id int8NOT NULL, charge_gst varchar(10)NOT NULL, created_on timestampNOT NULL, end_time

Re: WOLips nightly: generated SQL missing spaces

2007-10-31 Thread Paul Hoadley
On 31/10/2007, at 8:42 PM, Paul Hoadley wrote: I'm running Eclipse 3.3.1.1, WOLips 3.3.4565. Should have updated before that post, but just to note that it persists in WOLips 3.3.4572. -- Paul. w http://logicsquad.net/ h http://paul.hoadley.name

Re: WOLips nightly: generated SQL missing spaces

2007-10-31 Thread Paul Hoadley
On 31/10/2007, at 10:05 PM, Mike Schrag wrote: Note the distinct lack of space characters in some critical locations. Known bug? EM just calls through to EOF to do this ... What DB and what Plugin are you using? PostgreSQL 8.2.5, PostgresqlPlugIn.jar from the WOnder framework, not sure

Re: WOLips nightly: generated SQL missing spaces

2007-10-31 Thread Paul Hoadley
On 31/10/2007, at 10:46 PM, Mike Schrag wrote: EM uses the classpath defined in the project the model you're editing is in to determine how to call EOF -- Is the model's project setup against 5.4 or 5.3? The project was setup against 5.3. I've upgraded to Leopard, so I'm now running

Re: WOLips nightly: generated SQL missing spaces

2007-10-31 Thread Paul Hoadley
On 01/11/2007, at 9:08 AM, Paul Hoadley wrote: On 31/10/2007, at 10:46 PM, Mike Schrag wrote: EM uses the classpath defined in the project the model you're editing is in to determine how to call EOF -- Is the model's project setup against 5.4 or 5.3? The project was setup against 5.3

Re: WOLips nightly: generated SQL missing spaces

2007-10-31 Thread Paul Hoadley
On 01/11/2007, at 10:23 AM, Guido Neitzer wrote: On 31.10.2007, at 17:48, Paul Hoadley wrote: (Just to be clear, as I mentioned in a previous post, I am very much a WO novice. All I've done to upgrade is: installed Leopard, installed Xcode Tools, installed WebObjects, installed Eclipse

Re: WOLips nightly: generated SQL missing spaces

2007-10-31 Thread Paul Hoadley
On 01/11/2007, at 12:28 PM, Guido Neitzer wrote: On 31.10.2007, at 18:10, Paul Hoadley wrote: I haven't changed any of these since the last time SQL generation worked correctly. What I have changed is limited to what's listed in the quoted text above. I could reproduce it now here too

Re: WOLips nightly: generated SQL missing spaces

2007-11-01 Thread Paul Hoadley
On 01/11/2007, at 3:44 PM, Guido Neitzer wrote: On 31.10.2007, at 23:08, Guido Neitzer wrote: Okay, I found the reason, but not a good solution yet. Apple deprecated an API call in the EOSQLExpression and I haven't found the right hook again to see add the correct statement. I have a

Re: WOLips nightly: generated SQL missing spaces

2007-11-01 Thread Paul Hoadley
On 02/11/2007, at 3:29 PM, Guido Neitzer wrote: On 01.11.2007, at 17:55, Paul Hoadley wrote: but Wonder-latest-Frameworks.tar.gz is still dated 29 October. Am I looking in the right place to try out Guido's quick hack? If someone needs the PostgreSQLPlugin desperately, you can download

Tags inside tags [was: Re: WebObjects 5.4 is out.]

2007-11-03 Thread Paul Hoadley
On 27/10/2007, at 5:50 AM, Mike Schrag wrote: 2) Tags inside of tags (td class = webobject name = SomeClass/ ). This is EVIL. The WOLips validator has also been yelling at you about this for months now, and that was very intentional. If you listened to it, you're in a much better

Re: Tags inside tags [was: Re: WebObjects 5.4 is out.]

2007-11-03 Thread Paul Hoadley
On 03/11/2007, at 7:33 PM, Paul Hoadley wrote: On 27/10/2007, at 5:50 AM, Mike Schrag wrote: 2) Tags inside of tags (td class = webobject name = SomeClass/ ). This is EVIL. The WOLips validator has also been yelling at you about this for months now, and that was very intentional

Re: Classes starting with underscore missing from WO Package Explorer pane

2007-11-25 Thread Paul Hoadley
On 26/11/2007, at 1:09 PM, Tobias Crawley wrote: Select filters from the down triangle in the package explorer: Then uncheck 'EOGenerator _Files': Brilliant. Thanks. -- Paul. w http://logicsquad.net/ h http://paul.hoadley.name/ ___ Do not

JUnit for testing EOs

2007-11-26 Thread Paul Hoadley
Hello, I'm running WO 5.4 on Leopard, Eclipse 3.3.1.1, WOLips 3.3.4667, and writing some tests with JUnit 4 shipped with Eclipse. I can't quite get any tests running which try to instantiate EOs. I get the stack trace appended below, leading off with Unabled to find an

Re: JUnit for testing EOs

2007-11-27 Thread Paul Hoadley
Hi Chuck, On 27/11/2007, at 5:04 PM, Chuck Hill wrote: Add it to User Entries. It also needs to go above the other entries in the class path. If the model (or any other resource) is in a framework, you also need to add the Resources/Java dir for that to User Entries above the default

Re: JUnit for testing EOs

2007-11-27 Thread Paul Hoadley
On 28/11/2007, at 11:49 AM, Sam Barnum wrote: I usually need to manually create the EOModel for test cases. Programatically load the model into the default ModelGroup, like so: Thanks Sam. That was the missing step for me. My trivial test class now works. -- Paul. w

Re: JUnit for testing EOs

2007-11-27 Thread Paul Hoadley
On 28/11/2007, at 1:33 PM, Chuck Hill wrote: I don't think you should _need_ to do this as long as the bundles are correctly formed and on the classpath as they would be at app runtime. Presumably I'm failing at either or both of these. :-) I don't have this in my tests and I am using

Pass-through bindings from parent to child component

2008-01-02 Thread Paul Hoadley
Hello, Is there an idiom for passing through _any and all_ bindings from a parent to a child component without being specific about it? This issue is coming up for me in two places where I'm wrapping a Dynamic Element in a parent component. One example is my LSBrowser which wraps a

Re: Pass-through bindings from parent to child component

2008-01-06 Thread Paul Hoadley
Hello, I know there's at least one other recent thread about component bindings, but can anyone give me a start on this: On 03/01/2008, at 4:18 PM, Paul Hoadley wrote: Is there an idiom for passing through _any and all_ bindings from a parent to a child component without being specific

Re: Pass-through bindings from parent to child component

2008-01-06 Thread Paul Hoadley
Hi Chuck, On 07/01/2008, at 3:27 PM, Chuck Hill wrote: On 03/01/2008, at 4:18 PM, Paul Hoadley wrote: Is there an idiom for passing through _any and all_ bindings from a parent to a child component without being specific about it? Simply put, no. The is reason is that parents do not pass

Re: Pass-through bindings from parent to child component

2008-01-07 Thread Paul Hoadley
Hi Chuck, On 08/01/2008, at 4:38 AM, Chuck Hill wrote: Maybe I've wandered too far down the wrong path here, so I'll ask a different question. For now, the only additional functionality I'm trying to add to the dynamic elements is the classList() method referred to in the WOD above.

Re: Pass-through bindings from parent to child component

2008-01-09 Thread Paul Hoadley
Hi Chuck, On 08/01/2008, at 4:38 AM, Chuck Hill wrote: It if is sufficiently static, you could put it in an NSDictionary in application, keyed on the element name. Then you could use a binding on WOBrowser like application.cssClassesFor.WOBrowser; where cssClassesFor is a public method

Re: Tags inside tags [was: Re: WebObjects 5.4 is out.]

2008-02-14 Thread Paul Hoadley
On 13/02/2008, at 2:13 PM, Jake MacMullin wrote: I don't know if this has been aswered yet as for some reason this thread is a bit messed up for me - I don't have the original question... But, in answer to the broader question of what's the WO idiom for avoiding tags within tags?

Customizing Java class template

2008-05-12 Thread Paul Hoadley
Hello, Is there a straightforward way to customize the Java class stub that is produced by the WOLips Templateengine Plug-in whenever I create a new component? I'd like to add in a few more items of boilerplate to these classes. (I couldn't find any hooks in WOLips preferences, and I

Generated SQL failing to execute cleanly with PostgreSQL: a fix

2008-05-14 Thread Paul Hoadley
Hello, [This post is merely to document a fix. A search for 'connection limit exceeded for non-superusers site:lists.apple.com' yielded nothing, so here's a solution for the list archive.] I'm using WOLips 5165, WO 5.4, and PostgreSQL 8.2.5. I first noticed this problem when I upgraded

Re: Generated SQL failing to execute cleanly with PostgreSQL: a fix

2008-05-14 Thread Paul Hoadley
On 14/05/2008, at 9:32 PM, Mike Schrag wrote: As an aside, could anyone suggest why this error would occur? Is Entity Modeler (or more likely, I suppose, the JDBC layer) executing some of these generated SQL statements concurrently, and hence exceeding 30 connections? No ... We do fire up

Re: Generated SQL failing to execute cleanly with PostgreSQL: a fix

2008-05-14 Thread Paul Hoadley
On 14/05/2008, at 10:14 PM, Mike Schrag wrote: I'm running WO 5.4, and my PostgresqlPlugIn dates from 20 Feb 2008, not sure what version it is. 5.4.what? SQL generation doesn't work at all if you're using 5.4.2. Ah, OK, there's a good question. Seems I never did get around to updating

Re: Generated SQL failing to execute cleanly with PostgreSQL: a fix

2008-05-14 Thread Paul Hoadley
On 14/05/2008, at 10:31 PM, Paul Hoadley wrote: Aside from that, this DOES seem odd -- I don't see this behavior at all. I don't know what version of the PG plugin you're using, but I would tend to always say yes to getting the latest. However, I did commit just now a defensive closing

Where is web.xml.template?

2008-06-04 Thread Paul Hoadley
Hello, I'm successfully deploying a WO application as a servlet under Tomcat. I'm at the point where I want to customize the generated web.xml. I gather from this article: http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Deployment-Tomcat+Deployment that it should be

Re: Where is web.xml.template?

2008-06-05 Thread Paul Hoadley
On 05/06/2008, at 12:11 PM, Paul Hoadley wrote: On 05/06/2008, at 11:58 AM, Andrew Lindesay wrote: That article is quite out of date as is basically centric around the X-Code toolset. I have not had to deploy into servlet for 2+ years so have not had to do this from the wolips/ant/maven

EO models referring to different prototypes in the same application

2008-07-14 Thread Paul Hoadley
Hello, I'm using WO 5.4.1. I have a Wonder application with its own small EO model. Naturally I'm using ERPrototypes for this. Meanwhile, I have factored out a couple of models from an older, non-Wonder application into their own framework. These models use different prototypes,

Re: EO models referring to different prototypes in the same application

2008-07-14 Thread Paul Hoadley
On 14/07/2008, at 7:17 PM, Paul Hoadley wrote: Assume that I _can't_ re-write the old models against ERPrototypes (I probably could, but that's a bridge I'd rather cross later). Is it possible to (perhaps programmatically) declare prototypes model- by-model? That is, can I tell EOF to use

Re: EO models referring to different prototypes in the same application

2008-07-14 Thread Paul Hoadley
On 14/07/2008, at 10:27 PM, Mike Schrag wrote: I discovered the er.extensions.ERXModelGroup.prototypeModelNames property. So it seems this is _sufficient_ to solve the problem I described: er .extensions.ERXModelGroup.prototypeModelNames=Prototypes,erprototypes No, this setting just

Re: Generating cross-platform deployable war

2008-07-20 Thread Paul Hoadley
On 21/07/2008, at 1:37 AM, Irfan Habib wrote: I'm interested in deploying a webobjects webservice on tomcat on a linux system. From somewhere I think I read that was possible. It is possible. I have several WebObjects apps running on a standard, commercial shared-hosting system: CentOS 5,

Re: WOLisp app deploy as a servlet

2008-08-31 Thread Paul Hoadley
On 21/08/2008, at 6:14 AM, Miguel Angel Torres Avila wrote: Do I need the LICENSE file, or it is not necessary with this approach? Presumably you've already worked this out, but no you don't need a LICENSE file for WO = 5.3. -- Paul. w http://logicsquad.net/ h

Re: WOLisp app deploy as a servlet

2008-08-31 Thread Paul Hoadley
On 01/09/2008, at 9:32 AM, Paul Hoadley wrote: On 21/08/2008, at 6:14 AM, Miguel Angel Torres Avila wrote: Do I need the LICENSE file, or it is not necessary with this approach? Presumably you've already worked this out, but no you don't need a LICENSE file for WO = 5.3. Oops, I'm off

Minifying Javascript during build

2008-10-22 Thread Paul Hoadley
Hello, I have a general question: is there an easy way to apply a filter to assets as they're copied from their source locations into ${dest.dir} by the WOApplication Ant task? More specifically, what I want to do is run Javascript files through the JSMin Ant task[1] on their way to the

Re: Minifying Javascript during build

2008-10-22 Thread Paul Hoadley
On 23/10/2008, at 1:10 PM, Chuck Hill wrote: On Oct 22, 2008, at 4:31 PM, Paul Hoadley wrote: Hello, I have a general question: is there an easy way to apply a filter to assets as they're copied from their source locations into $ {dest.dir} by the WOApplication Ant task? More

Setting up horizontal inheritance

2008-10-31 Thread Paul Hoadley
Hello, I've read all the documentation on the different inheritance types---I want to use horizontal inheritance to subclass an entity. All the docs I can find seem to stop after discussing the types, though, so I'm not quite sure how to actually set it up. I have a framework containing

Re: Setting up horizontal inheritance

2008-10-31 Thread Paul Hoadley
On 01/11/2008, at 11:19 AM, Paul Hoadley wrote: 1. In Entity Modeler, I've created AMPerson, and selected Person as its parent. The attributes of Person appear in AMPerson, and I've added the additional relationships. Is that it? I haven't specified horizontal inheritance anywhere

Re: Setting up horizontal inheritance

2008-10-31 Thread Paul Hoadley
On 01/11/2008, at 3:17 PM, Chuck Hill wrote: On Oct 31, 2008, at 9:39 PM, Paul Hoadley wrote: After finding Subclass Entity in Entity Modeler, and re-making the child entity specifying horizontal inheritance, this question remains: On 01/11/2008, at 11:19 AM, Paul Hoadley wrote: 2

Re: Setting up horizontal inheritance

2008-11-01 Thread Paul Hoadley
On 01/11/2008, at 3:29 PM, Lachlan Deck wrote: On 01/11/2008, at 3:39 PM, Paul Hoadley wrote: After finding Subclass Entity in Entity Modeler, and re-making the child entity specifying horizontal inheritance, this question remains: On 01/11/2008, at 11:19 AM, Paul Hoadley wrote: 2

Re: Setting up horizontal inheritance

2008-11-02 Thread Paul Hoadley
I'm sure I'm close to understanding this... thanks for bearing with me. On 03/11/2008, at 1:19 PM, Ken Anderson wrote: On Nov 1, 2008, at 10:51 PM, Paul Hoadley wrote: I've implemented it using HI, and it seems to be working. I'm not convinced I have it quite right, though. There's

Re: Setting up horizontal inheritance

2008-11-02 Thread Paul Hoadley
On 03/11/2008, at 3:59 PM, Chuck Hill wrote: On Nov 2, 2008, at 9:18 PM, Paul Hoadley wrote: I'm sure I'm close to understanding this... thanks for bearing with me. On 03/11/2008, at 1:19 PM, Ken Anderson wrote: On Nov 1, 2008, at 10:51 PM, Paul Hoadley wrote: I've implemented it using

Re: Setting up horizontal inheritance

2008-11-04 Thread Paul Hoadley
I have another clue. Thanks for bearing with me. On 04/11/2008, at 6:27 PM, Paul Hoadley wrote: Maybe I need to start again from scratch. Just to recap: 1. I have a framework that contains a model Auth that contains an entity Person. It also contains the UserPreference entity that has

Re: Setting up horizontal inheritance

2008-11-03 Thread Paul Hoadley
On 04/11/2008, at 4:33 PM, Lachlan Deck wrote: On 04/11/2008, at 9:12 AM, Chuck Hill wrote: On Nov 2, 2008, at 10:30 PM, Paul Hoadley wrote: On 03/11/2008, at 3:59 PM, Chuck Hill wrote: [2008-11-3 16:53:8 CST] WorkerThread2 com.webobjects.appserver._private.WOComponentRequestHandler

Re: Setting up horizontal inheritance

2008-11-04 Thread Paul Hoadley
On 05/11/2008, at 4:54 AM, Chuck Hill wrote: No, its happening on an update to a timestamp column on the child. Worse, it's only happening the second time the app tries an update on that column. That sounds very familiar, but not enough for me to dredge up the details. Have you made

Re: Setting up horizontal inheritance

2008-11-04 Thread Paul Hoadley
On 05/11/2008, at 5:25 AM, Chuck Hill wrote: On Nov 4, 2008, at 1:50 AM, Paul Hoadley wrote: 1. I have a framework that contains a model Auth that contains an entity Person. It also contains the UserPreference entity that has a to-one relationship to Person. Person is abstract. 2. I

Re: Setting up horizontal inheritance

2008-11-04 Thread Paul Hoadley
On 05/11/2008, at 8:21 AM, Chuck Hill wrote: On Nov 4, 2008, at 1:42 PM, Paul Hoadley wrote: On 05/11/2008, at 5:25 AM, Chuck Hill wrote: On Nov 4, 2008, at 1:50 AM, Paul Hoadley wrote: 1. I have a framework that contains a model Auth that contains an entity Person. It also contains

Re: Setting up horizontal inheritance

2008-11-04 Thread Paul Hoadley
On 05/11/2008, at 8:46 AM, Chuck Hill wrote: Just a thought... Are you using Wonder to set the connection dictionaries for both models? I wasn't using Wonder, but I was using this: EODatabaseContext.forceConnectionWithModel(model, overrides,

Re: Setting up horizontal inheritance

2008-11-04 Thread Paul Hoadley
On 05/11/2008, at 11:11 AM, Chuck Hill wrote: On Nov 4, 2008, at 4:23 PM, Guido Neitzer wrote: On 04.11.2008, at 16:53, Paul Hoadley wrote: I wasn't using Wonder, but I was using this: EODatabaseContext.forceConnectionWithModel(model, overrides

Re: Setting up horizontal inheritance

2008-11-04 Thread Paul Hoadley
On 05/11/2008, at 12:30 PM, Chuck Hill wrote: On Nov 4, 2008, at 3:53 PM, Paul Hoadley wrote: On 05/11/2008, at 8:46 AM, Chuck Hill wrote: Just a thought... Are you using Wonder to set the connection dictionaries for both models? I wasn't using Wonder, but I was using

Re: Setting up horizontal inheritance

2008-11-04 Thread Paul Hoadley
On 05/11/2008, at 12:51 PM, Paul Hoadley wrote: On 05/11/2008, at 11:11 AM, Chuck Hill wrote: On Nov 4, 2008, at 4:23 PM, Guido Neitzer wrote: On 04.11.2008, at 16:53, Paul Hoadley wrote: I wasn't using Wonder, but I was using

Formatting a BigDecimal in a WOString

2008-11-07 Thread Paul Hoadley
Hello, I'm having trouble getting a WOString to format a java.math.BigDecimal. Here's an example of what I'm doing: sumString : WOString { value = stats.sum; numberformat = numberFormat; } 'stats.sum' returns a BigDecimal. 'numberFormat' returns the string

Re: Formatting a BigDecimal in a WOString

2008-11-07 Thread Paul Hoadley
On 08/11/2008, at 12:13 PM, Chuck Hill wrote: Punt? I might be a bug in NSNumberFormatter. I usually use the formatter binding rather than the format string bindings (dateFormat and numberFormat). You could try that and pass back an instance of a Java formatter, e.g.

Generating Javadocs with links to existing WO Javadocs

2008-11-18 Thread Paul Hoadley
Hello, I can probably sweat this out, but it seems like something others would already be doing. I want to generate some HTML Javadocs for several projects. Ideally, I'd like to have my @link tags that point to WO (and Wonder, for that matter) classes to resolve to existing online

Two questions about latest build system

2008-11-23 Thread Paul Hoadley
Hello, I'm running Eclipse 3.4.1, and WOLips nightly 3.4.5561. I have two questions about the new build system: 1. I have an application project that depends on a framework project (actually, more than one). I'm back to using the incremental build system for development, in which case

Re: Two questions about latest build system

2008-11-23 Thread Paul Hoadley
On 24/11/2008, at 4:11 AM, Chuck Hill wrote: On Nov 23, 2008, at 2:46 AM, Paul Hoadley wrote: So here's my (two part) question: I take it WOLips is using ~/ Library/Application Support/WOLips/wolips.properties now---can I delete ~/Library/wobuild.properties? Yes. Can and should (to avoid

Re: Two questions about latest build system

2008-11-23 Thread Paul Hoadley
On 24/11/2008, at 8:12 AM, Mike Schrag wrote: 1. I have an application project that depends on a framework project (actually, more than one). I'm back to using the incremental build system for development, in which case it seems like (after running Project Clean... on everything) it's

Re: Generating Javadocs with links to existing WO Javadocs

2008-11-28 Thread Paul Hoadley
Just for the record... On 19/11/2008, at 2:47 PM, Paul Hoadley wrote: I want to generate some HTML Javadocs for several projects. Ideally, I'd like to have my @link tags that point to WO (and Wonder, for that matter) classes to resolve to existing online documentation. I want

Re: Embedding D2W components in non-D2W applications

2008-12-02 Thread Paul Hoadley
On 02/12/2008, at 10:22 PM, Paul Hoadley wrote: On 02/12/2008, at 9:46 PM, David Avendasora wrote: Do you have a .d2wmodel file in your project that has the appropriate rule in it for the list function of the AMPerson entity? No. Though that's where I was heading next. What would

Re: WebObjects in Xcode 3.1: where are the project templates?

2008-12-02 Thread Paul Hoadley
Hi Denise, On 02/12/2008, at 7:10 PM, [EMAIL PROTECTED] wrote: I'm running OS X 10.5.5, Xcode 3.1.1, and I have WebObjects 5.4.3 installed. So why don't I see any WebObjects project templates when I go to Xcode- File-New Project? http://www.wocommunity.org/webobjects_faq.html#xcode3 --

Re: Embedding D2W components in non-D2W applications

2008-12-02 Thread Paul Hoadley
On 02/12/2008, at 9:46 PM, David Avendasora wrote: Do you have a .d2wmodel file in your project that has the appropriate rule in it for the list function of the AMPerson entity? No. Though that's where I was heading next. What would that rule look like? (And would it go in user.d2wmodel

Embedding D2W components in non-D2W applications

2008-12-02 Thread Paul Hoadley
Hello, I was hoping to experiment with using some D2W reusable components in a non-D2W application. (Basically, I have some pages where I'm just doing very standard CRUD operations on EOs. There's a lot of code repetition, and I figured D2W components might be a way to simplify

Re: Embedding D2W components in non-D2W applications

2008-12-02 Thread Paul Hoadley
On 02/12/2008, at 11:24 PM, David Avendasora wrote: I think that you have your perspective reversed. If you are going to use any D2W technology in your app, you basically have a D2W app. You may do most of the work outside D2W, but you will still need all the frameworks and basic

Re: Embedding D2W components in non-D2W applications

2008-12-02 Thread Paul Hoadley
On 03/12/2008, at 6:18 AM, David Holt wrote: Sorry, I misread. I created a Wonder project, not a Wonder D2W project. That's ideal. I'm trying to use D2WList in a normal app. I just started a Wonder D2W app to see what it looked like. I just did the same to see what steps are

Re: Embedding D2W components in non-D2W applications

2008-12-02 Thread Paul Hoadley
Hi David, On 03/12/2008, at 4:33 AM, David Holt wrote: 2. Add the following frameworks: JavaDirectToWeb, JavaDTWGeneration, JavaEOProject This was the key. I had initially added those and a slew of other frameworks that I thought were required by D2W. I reverted my .classpath and

ClassCastException trying to show WOStats

2008-12-10 Thread Paul Hoadley
Hello, I'm using WO 5.4.3, and some Wonder frameworks, though this particular app does not extend ERXApplication. The following happens in development (OS X) and deployment (CentOS, JavaMonitor). I've got -WOStatisticsPassword set. When I hit wa/WOStats, I get this:

Is dynamic element action method order deterministic?

2008-12-17 Thread Paul Hoadley
Hello, Say I have the following in a HTML template: wo:WOPopUpButton ... selection=$answerSelection ... / wo:WOTextField value=$otherValue ... / That is, the WOTextField is rendered after the WOPopUpButton. Experimentally, it looks like setAnswerSelection() is being called before

Re: Is dynamic element action method order deterministic?

2008-12-17 Thread Paul Hoadley
On 17/12/2008, at 8:26 PM, Andrew Lindesay wrote: I find that a good way to deal with this sort of thing is to override takeValuesFromRequest, call super, and then jiggle the data about afterwards to suit. Trying to depend on the sequence of elements on the page can become a fragile

Re: Is dynamic element action method order deterministic?

2008-12-17 Thread Paul Hoadley
On 18/12/2008, at 4:29 AM, Chuck Hill wrote: In case the answer is no, here's the background. I have a WOPopUpButton that displays a list of choices, as well as a noSelectionString. The user can make a choice from the list, or supply an other value in the WOTextField, but they're

Re: Is dynamic element action method order deterministic?

2008-12-17 Thread Paul Hoadley
On 18/12/2008, at 8:25 AM, Andrew Lindesay wrote: Ignoring the additional JavaScript stuff, I tend to do one of two things; 1) let the data get sucked into the EO-s and then do any last minute fiddles in an override of takeValuesForRequest 2) actually store the data into an intermediate

Re: ERXEC.newEditingContext() access

2009-01-06 Thread Paul Hoadley
On 02/01/2009, at 12:03 PM, Theodore Petrosky wrote: ok... I am experimenting with the ajax examples and I added the UpdateDisplayGroup to my app (with alterations). I am populating the list with a db query: categoryList = Category.fetchAllCategories(ERXEC.newEditingContext(),

Behaviour of objectsWithFetchSpecification()

2009-01-22 Thread Paul Hoadley
Hello, I've run into some EOF behaviour that I certainly didn't expect. 1. Say I have an entity Foo with an optional to-one relationship to Bar. There is no inverse relationship. 2. I have a particular Foo in an EC. I've deleted it with someFoo.editingContext().deleteObject(someFoo),

Re: Behaviour of objectsWithFetchSpecification()

2009-01-22 Thread Paul Hoadley
Hi Ken, On 22/01/2009, at 10:01 PM, Ken Anderson wrote: Deleting an EO is really just like setting a flag until you save, so this behavior is really no surprise. Yeah, it certainly matches exactly with the description in the API docs, so I was only surprised because I hadn't read them

Re: Behaviour of objectsWithFetchSpecification()

2009-01-22 Thread Paul Hoadley
On 23/01/2009, at 2:16 AM, Mike Schrag wrote: I guess I'm just asking for a sanity check. This can't be an uncommon use case---what do people do next? Use EOQualifier.filteredArrayWithQualifier() on the result? Am I overlooking something basic? You use ERXFetchSpecification and

Re: Handling Session timeout with ajax

2009-01-23 Thread Paul Hoadley
Hi Chuck, On 20/01/2009, at 7:09 AM, Chuck Hill wrote: ... if (AjaxUtils.isAjaxRequest(aContext.request())) { AjaxUtils.redirectTo(errorPage); return errorPage.context().response(); } return errorPage.generateResponse(); Should this

Re: Handling Session timeout with ajax

2009-01-26 Thread Paul Hoadley
On 27/01/2009, at 7:55 AM, Chuck Hill wrote: Should this also work in Application.handleException()? I've got this: public WOResponse handleException(Exception anException, WOContext aContext) { AMErrorPage errorPage = (AMErrorPage) pageWithName(AMErrorPage.class

Re: Handling Session timeout with ajax

2009-01-26 Thread Paul Hoadley
On 27/01/2009, at 1:10 PM, Chuck Hill wrote: On Jan 26, 2009, at 5:25 PM, Paul Hoadley wrote: On 27/01/2009, at 7:55 AM, Chuck Hill wrote: Should this also work in Application.handleException()? I've got this: public WOResponse handleException(Exception anException, WOContext

Re: Handling Session timeout with ajax

2009-01-26 Thread Paul Hoadley
On 27/01/2009, at 5:11 PM, Chuck Hill wrote: FireBug and FireFox. Take a look at the Net log. You can see all the traffic back and forth. Often these things came in an Ajax update and so don't show up in the page source (as originally loaded). Look at the response content in FireBug

Re: Handling Session timeout with ajax

2009-01-27 Thread Paul Hoadley
On 27/01/2009, at 5:11 PM, Chuck Hill wrote: FireBug and FireFox. Take a look at the Net log. You can see all the traffic back and forth. Often these things came in an Ajax update and so don't show up in the page source (as originally loaded). This might be a good time to mention that

Re: Handling Session timeout with ajax

2009-01-27 Thread Paul Hoadley
On 28/01/2009, at 10:08 AM, Chuck Hill wrote: On Jan 26, 2009, at 11:17 PM, Paul Hoadley wrote: On 27/01/2009, at 5:11 PM, Chuck Hill wrote: FireBug and FireFox. Take a look at the Net log. You can see all the traffic back and forth. Often these things came in an Ajax update and so

Re: Handling Session timeout with ajax

2009-01-27 Thread Paul Hoadley
On 28/01/2009, at 10:59 AM, Chuck Hill wrote: On Jan 27, 2009, at 4:18 PM, Paul Hoadley wrote: On 28/01/2009, at 10:08 AM, Chuck Hill wrote: On Jan 26, 2009, at 11:17 PM, Paul Hoadley wrote: On 27/01/2009, at 5:11 PM, Chuck Hill wrote: FireBug and FireFox. Take a look at the Net log

Re: Handling Session timeout with ajax

2009-01-27 Thread Paul Hoadley
On 28/01/2009, at 1:40 PM, Chuck Hill wrote: If not, follow Anjo's suggestion of overriding dispatchRequest() and logging out the response before returning it. Jan 28 13:23:08 AM[50121] WARN NSLog - er.ajax.AjaxRequestHandler: Exception occurred while handling request:

Re: Handling Session timeout with ajax

2009-01-27 Thread Paul Hoadley
On 28/01/2009, at 4:05 PM, Chuck Hill wrote: On Jan 27, 2009, at 8:38 PM, Paul Hoadley wrote: I'm not using ERXRedirect directly, but in Application.handleException() I have this: @Override public WOResponse handleException(Exception anException, WOContext aContext

Re: Handling Session timeout with ajax

2009-01-27 Thread Paul Hoadley
On 28/01/2009, at 4:33 PM, Chuck Hill wrote: It looks like WO is not saving errorPage in the page cache when handleException is called. I thought it did, maybe this is a 5.4 change. I am going to stick this on my To Do stack for now. No problem. Thanks for looking at it, Chuck. --

Re: Handling Session timeout with ajax

2009-01-28 Thread Paul Hoadley
On 29/01/2009, at 4:08 AM, Chuck Hill wrote: Score WebObjects: 1, Chuck: 0 Score Paul: 0, because... The defect is mine. The correct code is: if (AjaxUtils.isAjaxRequest(aContext.request())) { // Create redirect to return to break out of Ajax

Re: Handling Session timeout with ajax

2009-01-28 Thread Paul Hoadley
On 29/01/2009, at 11:13 AM, Chuck Hill wrote: Both of these still produce the same result for me: a redirect to something like AM.woa/wo/4.0, which it presumably can't find and so returns Main. I've got logging in Session.terminate(), and it's not being called. Using the second variant,

Re: Handling Session timeout with ajax

2009-01-28 Thread Paul Hoadley
On 29/01/2009, at 11:54 AM, Chuck Hill wrote: Hold on now, that is just a work around, not a solution. After this marathon, a work around is looking good to me... The question now is why ERXRedirect is not putting the session ID in the URL for you And, it is a bug. I have a fix, do

Re: Handling Session timeout with ajax

2009-01-28 Thread Paul Hoadley
On 29/01/2009, at 12:13 PM, Chuck Hill wrote: The fix is in. Revision 8864. Please let me know how that works. It works. SessionID in URL, errorPage displayed. Thanks a _lot_. (As a really quick aside, since we're all here and having so much fun: how can I build just a single Wonder

Re: opposite method to objectMatchingKeyAndValue

2009-02-21 Thread Paul Hoadley
On 21/02/2009, at 5:30 AM, Alan Ward wrote: Add a unique constraint to the database. I see a thread from 2003 [1] that seems to indicate that uniqueness of an attribute isn't expressible in an EO model. I take it the only way to add such a constraint, then, is manually? [1]

Re: opposite method to objectMatchingKeyAndValue

2009-02-21 Thread Paul Hoadley
On 22/02/2009, at 1:52 AM, Mike Schrag wrote: I see a thread from 2003 [1] that seems to indicate that uniqueness of an attribute isn't expressible in an EO model. I take it the only way to add such a constraint, then, is manually? AFAIK: yes. However, it *might* be possible to enhance

NSTimestampFormatter adjusts TZ for display, SimpleDateFormat doesn't?

2009-04-15 Thread Paul Hoadley
Hello, Using WO 5.4.3. Here's yet another NSTimestamp/NSTimestampFormatter/ SimpleDateFormat thread... :-) Heeding the deprecation warning for NSTimestampFormatter, I've been trying to use SimpleDateFormat in its place. I'm doing the following: 1. PostgreSQL is set to GMT. 2.

Re: NSTimestampFormatter adjusts TZ for display, SimpleDateFormat doesn't?

2009-04-15 Thread Paul Hoadley
Hi Andrew, On 15/04/2009, at 7:40 PM, Andrew Lindesay wrote: I have my own home-rolled formatters for date/time, but I am (as you obviously are) interested in using SDF instead. I figured that if SDF did not do this timezone fiddle itself, I would subclass it to achieve the correct value

Passing a wrapper component to a page-level component

2009-05-04 Thread Paul Hoadley
Hello, Say I have an application that depends on some frameworks containing some more general code and components. Some of the general components are page-level components. Every page-level component in the application contains a wrapper component (LAF.wo) as its outermost element to

Re: Passing a wrapper component to a page-level component

2009-05-05 Thread Paul Hoadley
Hi Ramsey, On 05/05/2009, at 8:24 AM, Ramsey Lee Gurley wrote: What I want to do is simple: have the general (non-app) page-level components wrapped by the (app-specific) LAF.wo. At the moment, I'm doing this by creating a proxy page-level component in the app which does nothing more

Re: Passing a wrapper component to a page-level component

2009-05-05 Thread Paul Hoadley
On 06/05/2009, at 9:02 AM, Ramsey Lee Gurley wrote: If you wanted, you could set up a page configuration to use your EditFooPage component and have D2W return it like it would any other page component. However, if your EditFooPage.wo does not descend from D2WComponent, then the D2W factory

Re: Passing a wrapper component to a page-level component

2009-05-06 Thread Paul Hoadley
On 06/05/2009, at 9:57 AM, Paul Hoadley wrote: On 06/05/2009, at 9:02 AM, Ramsey Lee Gurley wrote: If you wanted, you could set up a page configuration to use your EditFooPage component and have D2W return it like it would any other page component. However, if your EditFooPage.wo does

Re: Passing a wrapper component to a page-level component

2009-05-06 Thread Paul Hoadley
On 07/05/2009, at 1:50 PM, Ramsey Lee Gurley wrote: So I rolled my own solution. EditFooPage has a WOSwitchComponent as its outermost element. The app-specific LAF class is passed to EditFooPage after construction so that it knows what to substitute for the WOSwitchComponent. Key-value

Re: Passing a wrapper component to a page-level component

2009-05-07 Thread Paul Hoadley
Hi Andrew, On 07/05/2009, at 4:44 PM, Andrew Lindesay wrote: Did you end up taking a look through the LEWOStuff page/navigation architecture in the end? Yeah, I did, and I have watched your WOWODC presentation before, though I haven't had a chance to watch it again recently. No need to

  1   2   3   4   5   6   7   8   9   10   >