Re: AjaxObserveField - next Field

2009-07-09 Thread Frank Stock
Op 9-jul-09, om 19:01 heeft Ricardo J. Parada het volgende geschreven: Just curious, are you wrapping the input field with an AjaxObserveField, or are you giving each field a unique ID and then using that with each AjaxObserveField's observeFieldID? If so, are they inside a repetition and

Re: What could that be?

2009-07-09 Thread Mike Schrag
_NSWeakMutableArray has /* */ public void removeReference(Object object) /* */ { /* 119 */ this.array.removeObject(object); /* */ } /* */ /* */ protected void __removeReference(Reference object) /* */ { /* 124 */ processQueue(); /* 125 */ this.array.

Fwd: StackOverflowError in _NSWeakMutableArray?

2009-07-09 Thread Mike Schrag
here's a comment from Ryan about the fix ... was that build actually made available? ms Begin forwarded message: From: Ryan Klems Date: December 6, 2008 3:39:38 PM EST To: Alan Zebchuk Cc: WebObjects Development Subject: Re: StackOverflowError in _NSWeakMutableArray? Sorry, looks like th

Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Andrew Lindesay
Hi Quinton; Embedding jetty is a very interesting idea because it's actually a pretty decent web server for serving static content and copes well under heavy load. If you were to embed Jetty and then port the WOAdaptor to Jetty as a plugin / filter / servlet (or whatever it uses), you wou

Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Q
On 10/07/2009, at 8:24 AM, Andrew Lindesay wrote: WOA's would then be built into 'war' or 'servlet directories' to be unpacked into a servlet container – Jetty, Tomcat, WebSphere...etc... In order to produce framework jars, I have extended the standard ant "Jar" task with some specific We

Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Lachlan Deck
On 10/07/2009, at 8:24 AM, Andrew Lindesay wrote: There 2 issues to fix: one is trivial the session id key is "sessionid" and not "wosid" 5.4 and later support changing that key. If you grab "LEWOAJPContext" from LEWOStuff, you will see that I stick the route (to get back to the instance) a

Re: What could that be?

2009-07-09 Thread Lon Varscsak
I should add that I'm running WO 5.4.3 with Wonder (but I can't remember which build). -Lon On Thu, Jul 9, 2009 at 5:13 PM, Lars Sonchocky-Helldorf wrote: > > Am 10.07.2009 um 01:56 schrieb Lon Varscsak: > >> Did you take over my app? ;)  I have the same problem in a production >> app and it driv

Re: What could that be?

2009-07-09 Thread Lars Sonchocky-Helldorf
Am 10.07.2009 um 01:56 schrieb Lon Varscsak: Did you take over my app? ;) I have the same problem in a production app and it drives me crazy, because I can't see that I'm doing anything wrong (and it's intermittent). This is something I can't say about that app. It's rather higgledy- piggle

Re: What could that be?

2009-07-09 Thread Lon Varscsak
Did you take over my app? ;) I have the same problem in a production app and it drives me crazy, because I can't see that I'm doing anything wrong (and it's intermittent). -Lon On Thu, Jul 9, 2009 at 4:45 PM, Lars Sonchocky-Helldorf wrote: > Hi, I occasionally get the following exception in an W

Re: Listening for changes on an EO

2009-07-09 Thread Chuck Hill
You would put it in the sub-class, in a method that overrode the super- class, NOT in the generated class. e.g. public void setFoo(Number foo) { Number oldFoo = foo(); super.setFoo(foo); // calls the generated version // broadcast notification of this, this.editingContext(), ol

Re: Listening for changes on an EO

2009-07-09 Thread Lon Varscsak
I was trying to make something more generic to be able to use in more than one case and keep my Velocity template clean of that stuff. Thanks again for all the help! -Lon On Thu, Jul 9, 2009 at 1:52 PM, Chuck Hill wrote: > > On Jul 9, 2009, at 1:45 PM, Lon Varscsak wrote: > >> I want to know if

Re: Listening for changes on an EO

2009-07-09 Thread Chuck Hill
On Jul 9, 2009, at 1:45 PM, Lon Varscsak wrote: I want to know if it's being changed. I have a controller object that will need to recalculate some values when a specific attribute changes in the EO. Why not just override the set... method to send the notification? -Lon On Thu, Jul 9, 2

Re: Listening for changes on an EO

2009-07-09 Thread Chuck Hill
On Jul 9, 2009, at 1:28 PM, Lon Varscsak wrote: Uh, another question. :) Since I have a custom EO super-super class, I decided to try to implement this in takeStoredValueForKey(..). It works, although I was also trying to post the "old" value, and asking for this current value at this point m

Re: Listening for changes on an EO

2009-07-09 Thread Lon Varscsak
Sorry I didn't finish the first sentence. I want to know when the value is being changed regardless of whether it's committed or not. On Thu, Jul 9, 2009 at 1:45 PM, Lon Varscsak wrote: > I want to know if it's being changed.  I have a controller object that > will need to recalculate some values

Re: Listening for changes on an EO

2009-07-09 Thread Lon Varscsak
I want to know if it's being changed. I have a controller object that will need to recalculate some values when a specific attribute changes in the EO. -Lon On Thu, Jul 9, 2009 at 1:42 PM, Mark Morris wrote: > Just a clarification, do you want to know when the value changes, even if > it's not s

Re: Listening for changes on an EO

2009-07-09 Thread Mark Morris
Just a clarification, do you want to know when the value changes, even if it's not saved to the database? Or do you just want to know if a change is being saved? That would make a difference. ;-) Regards, Mark On Jul 9, 2009, at 3:28 PM, Lon Varscsak wrote: Uh, another question. :) Sin

Re: Listening for changes on an EO

2009-07-09 Thread Lon Varscsak
Uh, another question. :) Since I have a custom EO super-super class, I decided to try to implement this in takeStoredValueForKey(..). It works, although I was also trying to post the "old" value, and asking for this current value at this point makes EOF not so happy...but that's not strictly requ

Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Joe Little
On Thu, Jul 9, 2009 at 8:33 AM, Jean-Francois Veillette wrote: do you run into this problem or am i just making that out to be more difficult than it is? > > At that point, I would say industry have solved it.  how do normal j2ee > developer do when they are in a developement cycle ? > T

Re: Listening for changes on an EO

2009-07-09 Thread Lon Varscsak
Thanks for the tips! -Lon On Thu, Jul 9, 2009 at 12:34 PM, Chuck Hill wrote: > > On Jul 9, 2009, at 12:26 PM, Lon Varscsak wrote: > >> Thanks.  I figured there was nothing built to do exactly what I >> needed, but I figured I would ask. >> >> Do you know if there is much overhead if I implemented

Re: Listening for changes on an EO

2009-07-09 Thread Chuck Hill
On Jul 9, 2009, at 12:26 PM, Lon Varscsak wrote: Thanks. I figured there was nothing built to do exactly what I needed, but I figured I would ask. Do you know if there is much overhead if I implemented this in my EO superclass even if there were no observers? EOF makes heavy use of notifica

Re: Listening for changes on an EO

2009-07-09 Thread Lon Varscsak
Thanks. I figured there was nothing built to do exactly what I needed, but I figured I would ask. Do you know if there is much overhead if I implemented this in my EO superclass even if there were no observers? -Lon On Thu, Jul 9, 2009 at 11:50 AM, Simon McLean wrote: > also, if you are using w

Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Henrique Prange
Hi Mike, Mike Schrag wrote: i'm guessing maven probably just has an answer to this -- build dependency jars that aren't deployment dependency jars, so they probably don't have to worry about it? javax.servlet servlet-api 2.4 provided When you set the scope of a dependency as

Re: Listening for changes on an EO

2009-07-09 Thread Simon McLean
also, if you are using wonder, check out hasKeyChangedFromCommittedSnapshot in ERXGenericRecord. maybe listen for the notification mentioned by chuck, then use hasKeyChangedFromCommittedSnapshot to check the particular key you are looking at. simon 2009/7/9 Chuck Hill : > > On Jul 9, 2009, at 10:

Re: Listening for changes on an EO

2009-07-09 Thread Chuck Hill
On Jul 9, 2009, at 10:24 AM, Lon Varscsak wrote: Is there a way for a controller object to listen for changes to an EO (and a specific key)? Thanks, Lon EOEditingContext has ObjectsChangedInEditingContextNotification, but it is on an object by object basis, not a key by key one. You cou

Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Chuck Hill
On Jul 9, 2009, at 7:11 AM, Mr. Pierre Frisch wrote: Andrew, There was some test made 3 years ago to use the mod_proxybalancer for WO and it works well. There 2 issues to fix: one is trivial the session id key is "sessionid" and not "wosid" 5.4 and later support changing that key. The ot

Re: Wonder Loggin question

2009-07-09 Thread Miguel Angel Torres Avila
Thanks, That was the solution. :D On Jul 9, 2009, at 12:48 PM, Ricardo J. Parada wrote: On Jul 9, 2009, at 1:46 PM, Ricardo J. Parada wrote: log4j.logger.ognl.helperFunction.WOHelperFunctionParser=INFO Oops.. helperFunction should be helperfunction (lowercase f) : log4j.logger.ognl.hel

Re: Fetch Optimization Advice

2009-07-09 Thread Mr. Frank Cobia
Just in case anybody cares or is looking at similar problems. I came up with an even better solution. I just programmatically remove the unused attributes from the model at application startup. Thanks, Frank On Jul 8, 2009, at 4:37 PM, Mr. Frank Cobia wrote: Sorry. I meant never use them i

[MEETING] Toronto Area Cocoa & WebObjects Developer Group - July 14

2009-07-09 Thread Karl Moskowski
The next meeting of tacow/Toronto CocoaHeads will be held on Tuesday, July 14 at 6:30 PM at Ryerson University. Up-to-date info and directions are available at and . Karl Moskowski Voodoo Ergonomics Inc.

Re: Wonder Loggin question

2009-07-09 Thread Ricardo J. Parada
On Jul 9, 2009, at 1:46 PM, Ricardo J. Parada wrote: log4j.logger.ognl.helperFunction.WOHelperFunctionParser=INFO Oops.. helperFunction should be helperfunction (lowercase f) : log4j.logger.ognl.helperfunction.WOHelperFunctionParser=INFO ___ Do

Re: Wonder Loggin question

2009-07-09 Thread Ricardo J. Parada
On Jul 9, 2009, at 1:37 PM, Miguel Angel Torres Avila wrote: If we select the Debug and Stdout options we revive output logs like these: DEBUG [WorkerThread4] - inserted WebObject with Name 'FileUpload1'. DEBUG [WorkerThread4] - inserted WebObject with Name 'ImageButton3'. DEBUG [WorkerThread

Listening for changes on an EO

2009-07-09 Thread Lon Varscsak
Is there a way for a controller object to listen for changes to an EO (and a specific key)? Thanks, Lon ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe

Re: AjaxObserveField - next Field

2009-07-09 Thread Ricardo J. Parada
Just curious, are you wrapping the input field with an AjaxObserveField, or are you giving each field a unique ID and then using that with each AjaxObserveField's observeFieldID? If so, are they inside a repetition and do they all have a distinct ID? Anyways, too many question huh? You ma

Re: AjaxObserveField - next Field

2009-07-09 Thread Frank Stock
Yes, that is what happens. I have several order-lines, If the amount or the price or the discount is changing, I want the total to be recalculates. So I've made 3 AjaxObserveFields for every order line. Op 9-jul-09, om 18:44 heeft Ricardo J. Parada het volgende geschreven: I thought only t

Re: AjaxObserveField - next Field

2009-07-09 Thread Ricardo J. Parada
I thought only the AjaxObserveField that triggered the update would execute the onComplete script. Are all the AjaxObserveFields inside the AjaxUpdateContainer calling their onComplete script? On Jul 9, 2009, at 12:26 PM, Frank Stock wrote: Hi, I want to select the next field after a

Re: Nested editing context 101 question?

2009-07-09 Thread Ricardo J. Parada
Thanks Kieran... Basically we have some code that loads objects into the database which currently works in a way that violates some of the EOF commandments. This is not using Wonder. But we're converting it to Wonder. The code works as follows, it creates EOs without inserting them into

AjaxObserveField - next Field

2009-07-09 Thread Frank Stock
Hi, I want to select the next field after an AjaxUpdate. The Ajaxupdate is triggered from an AjaxObserveField. But I see if I use 'onComplete' or 'OnSucces' that this is executed every time. So if I include OnSuccess="document.getElementById('myElement1').focus()", after the reload(AjaxUp

Re: Nested editing context 101 question?

2009-07-09 Thread Kieran Kelleher
You should local instance it because a different ec is a different ec whether nested or not. I am not a fan of nested ec's and generally do not design them into my app architecture. On Jul 9, 2009, at 11:51 AM, Ricardo J. Parada wrote: If I have an EO in a child editing context, can it ref

Nested editing context 101 question?

2009-07-09 Thread Ricardo J. Parada
If I have an EO in a child editing context, can it reference an EO in the parent editing context? Or do I have to copy the EO from the parent editing context to the child editing context first? I should know this one... But I don't use nested editing contexts that often, so I forgot. :-

Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Mike Schrag
do you run into this problem or am i just making that out to be more difficult than it is? At that point, I would say industry have solved it. how do normal j2ee developer do when they are in a developement cycle ? - jfv note that I know nothing of all this, I find it interesting though.

Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Jean-Francois Veillette
do you run into this problem or am i just making that out to be more difficult than it is? At that point, I would say industry have solved it. how do normal j2ee developer do when they are in a developement cycle ? - jfv note that I know nothing of all this, I find it interesting though.

PostgresqlPlugIn.framework bug?

2009-07-09 Thread Lars Sonchocky-Helldorf
Hi, in an application with which I use the PostgresqlPlugIn.framework of Wonder (latest version, downloaded today) I get the following exception: Jul 09 13:57:01 UNUserInterface[2020] (ERXNSLogLog4jBridge.java:43) WARN NSLog - : Exception while handling action named "customPublication

Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Mike Schrag
In short; Yes! :) An important aspect of such a change would be to make that "tiny little servletish container" nice and simple to run, but still do the bare minimum to feed a servlet with WOMessage- s from HTTP or AJP and fudge the URL-s for "mod_balancer" (see LEWOAJPContext). do you get

Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Mr. Pierre Frisch
Andrew, There was some test made 3 years ago to use the mod_proxybalancer for WO and it works well. There 2 issues to fix: one is trivial the session id key is "sessionid" and not "wosid" 5.4 and later support changing that key. The other issue is dynamic reconfiguration. Adding an instan

Re: Average number of code lines ina WOComponent, .java

2009-07-09 Thread Kieran Kelleher
Hi Gustavo, I was thinking part of your question might allude to this: A parent can have an AjaxUpdateContainer named Foo for example and a subcomponent can just use the javascript 'FooUpdate()' or simply bind 'Foo' to the updateContainerID of an AjaxUpdateLink in the subcomponent. The fact

Re: Average number of code lines ina WOComponent, .java

2009-07-09 Thread Paul Hoadley
On 09/07/2009, at 6:09 PM, Gustavo Pizano wrote: Hello, well with this app Im doing, I have just one main component with a "few" AjaxupdateContainers, I have realize then that the ,java its quite big, lots of bindings, I was thinking then in divide it in 3 components, a main one and 2 child

Average number of code lines ina WOComponent, .java

2009-07-09 Thread Gustavo Pizano
Hello, well with this app Im doing, I have just one main component with a "few" AjaxupdateContainers, I have realize then that the ,java its quite big, lots of bindings, I was thinking then in divide it in 3 components, a main one and 2 childre, so then I can use somehow the parent() and get the va

Re: ARS Technica: WebObjects sliced from 10 .6—but prognosis of death premature

2009-07-09 Thread Gustavo Pizano
Hey Chuck finish the book please :P. :D:D. Man I wish I was taught WO at University instead of hibernate, (which I can't remember anything). G. On Thu, Jul 9, 2009 at 12:31 AM, David Holt wrote: > Nice job, guys. I'm impressed. Now if only the Appleinsider article would > link directly to t

Re: Maintain server state of a page + Javascript page navigation

2009-07-09 Thread Mike Schrag
Yes, Ajax framework uses prototype. You can use jquery in your own code, but you have to use the jquery prototype compatibility library. As far as why we use prototype -- it was the most popular library when we started Ajax.framework, and was the primary framework used by rails as well. The