Re: How to determine what component the action came from?

2009-03-02 Thread Andrew Lindesay
Hello Chuck; Yer I'd give that one a miss too. Amiel -- ignore what I said before! cheers. The problem here is that components are inserted into AjaxGrid cells via WOSwitchComponent and the only bindings are: ___ Andrew Lindesay www.lindesay.co.nz _

Re: Memory Management

2009-03-02 Thread Chuck Hill
On Mar 2, 2009, at 9:47 PM, Jeff Schmitz wrote: Actually neither way is working well (reset or dispose). It runs very fast at first, but then slows down considerably after a couple of minutes. I noticed that at first Java and Frontbase are both running with equal percentage of CPU more o

Re: Memory Management

2009-03-02 Thread Jeff Schmitz
Actually neither way is working well (reset or dispose). It runs very fast at first, but then slows down considerably after a couple of minutes. I noticed that at first Java and Frontbase are both running with equal percentage of CPU more or less, but then it slows down and Java takes alm

Re: How to determine what component the action came from?

2009-03-02 Thread amiel montecillo
As you know by now, I'm still trying to learn the ropes in webobjects, the slightly hacky thing makes sense to me at this point. I'll have to read up on Direct to web and figure how to use it. Nonetheless, thank you for your insights Chuck! Amiel On Tue, Mar 3, 2009 at 1:30 PM, Chuck Hill wrote

Re: How to determine what component the action came from?

2009-03-02 Thread Lachlan Deck
On 03/03/2009, at 3:47 PM, Chuck Hill wrote: On Mar 2, 2009, at 8:18 PM, amiel montecillo wrote: I did get to keep the pieces. Most notably a stacktrace :) I was not really expecting that. I've had that happen to me before, but I don't recall what caused it. Forgot to call super? with

Re: How to determine what component the action came from?

2009-03-02 Thread Chuck Hill
On Mar 2, 2009, at 9:10 PM, amiel montecillo wrote: Hello Chuck, Actually that is what I ended up doing right now. Handling the actions in EMRecipientAjaxGridCell which works fine. The reason I wanted the action to be handled in the parent is that, I have quite a few grids. Each grid has

Re: How to determine what component the action came from?

2009-03-02 Thread amiel montecillo
Hello Chuck, Actually that is what I ended up doing right now. Handling the actions in EMRecipientAjaxGridCell which works fine. The reason I wanted the action to be handled in the parent is that, I have quite a few grids. Each grid has different EO models. Each model can be deleted/updated from

Re: Posting to WebObject-List;

2009-03-02 Thread Daniel Beatty
Greetings all, Yes. I was told it was just an annoyance to turn grad students into evil scientists, and to not to be alarmed. Although, Igor seems to be getting too emotional lately if you ask me. Later, Dan Beatty, M.S. CS (B.S. EECS) Ph.D. Student Texas Tech University dan.bea...@mac.ed

Re: How to determine what component the action came from?

2009-03-02 Thread Chuck Hill
Hi Amiel, On Mar 2, 2009, at 8:18 PM, amiel montecillo wrote: So I tried to do the Chuck way and he was right, "There are two ways to do things, the Chuck way and the wrong way". :-P I did get to keep the pieces. Most notably a stacktrace :) I was not really expecting that. I've had th

Re: How to determine what component the action came from?

2009-03-02 Thread amiel montecillo
So I tried to do the Chuck way and he was right, I did get to keep the pieces. Most notably a stacktrace :) Mar 03 12:07:57 EMManager[] DEBUG com.ods.marketing.app.emmanager.components.email.EMRecipientAjaxGridCell - parent binding value: delete Mar 03 12:07:57 EMManager[] DEBUG com.ods.m

Re: eogen takeStoredValueForKey(toManyArray, relationshipName)

2009-03-02 Thread Chuck Hill
On Mar 2, 2009, at 7:09 PM, Dan Faber wrote: I have noticed that the default _wonder.java template does not produce a method to assign an array to a toMany relationship, as: public void setMyMany(NSArray value) { takeStoredValueForKey(value, "myMany"); } Is there a problem with doi

Re: How to determine what component the action came from?

2009-03-02 Thread Chuck Hill
On Mar 2, 2009, at 7:40 PM, Andrew Lindesay wrote: Hello Amiel; I think I understand your question; you have a component in which you want the action to be fired on the parent component? Try to use the "^" as in; ^goDelete This will invoke the method "goDelete" in the parent co

Re: How to determine what component the action came from?

2009-03-02 Thread Andrew Lindesay
Hello Amiel; I think I understand your question; you have a component in which you want the action to be fired on the parent component? Try to use the "^" as in; ^goDelete This will invoke the method "goDelete" in the parent component. cheers. The reason I asked this is that I w

Re: How to determine what component the action came from?

2009-03-02 Thread Chuck Hill
On Mar 2, 2009, at 7:28 PM, amiel montecillo wrote: Oops sorry, moving this to webobjects-dev list. The reason I asked this is that I wanted to embed the CRUD component to one of the cells in an AjaxGrid. and needed the "Delete" and "Update" action to be fired in the parent component of th

Re: How to determine what component the action came from?

2009-03-02 Thread amiel montecillo
Oops sorry, moving this to webobjects-dev list. The reason I asked this is that I wanted to embed the CRUD component to one of the cells in an AjaxGrid. and needed the "Delete" and "Update" action to be fired in the parent component of the AjaxGrid instead of the CRUD component. So the CRUD can be

eogen takeStoredValueForKey(toManyArray, relationshipName)

2009-03-02 Thread Dan Faber
I have noticed that the default _wonder.java template does not produce a method to assign an array to a toMany relationship, as: public void setMyMany(NSArray value) { takeStoredValueForKey(value, "myMany"); } Is there a problem with doing so? Should I change my method to delete all

Re: How to determine what component the action came from?

2009-03-02 Thread Chuck Hill
On Mar 2, 2009, at 6:50 PM, amiel montecillo wrote: Hello list, I am trying to understand the invokeAction process. I have a component (CRUD component) with 2 (WOHyperlink) subcomponents which are a "Delete" and "Update" hyperlink. I am overriding the invokeAction method on the CRUD compo

Re: Reference Lib JARs Not Recognized - Solved

2009-03-02 Thread Drew Thoeni
Turns out if I get the latest JARs, all is well. Thanks! Drew On Mar 2, 2009, at 6:42 PM, Chuck Hill wrote: On Mar 2, 2009, at 3:25 PM, Drew Thoeni wrote: Screen shots. Good idea. You can see in this screen shot ERExtensions.jar is in the "Referenced Libraries" More useful is the Libra

Re: FetchSpec setFetchLimit??

2009-03-02 Thread Chuck Hill
On Mar 2, 2009, at 4:26 PM, Kieran Kelleher wrote: Hi Chuck, I was half-expecting this outcome, especially after examining how the different SQLHelpers implement limitSqlExpression method. I am tempted to implement an ERXSpec subclass though to auto limit for databases with supported ERX

Re: Memory Management

2009-03-02 Thread Andrew Lindesay
Hello Chuck; I can only guess that it is comparing snapshots' keys to find the correct snapshot to "replace" from the inbound data (from the fetch) in a map's bucket which is quite large. cheers. Comparing snapshots would not be for uniquing. Unique tests would be some variation of snap

Re: FetchSpec setFetchLimit??

2009-03-02 Thread Kieran Kelleher
Hi Chuck, I was half-expecting this outcome, especially after examining how the different SQLHelpers implement limitSqlExpression method. I am tempted to implement an ERXSpec subclass though to auto limit for databases with supported ERXSqlHelpers .. it just seems like the right defau

Re: Memory Management

2009-03-02 Thread Chuck Hill
On Mar 2, 2009, at 1:18 PM, Andrew Lindesay wrote: Hello Chuck; A big part of slowing-down with saturated object stores is that as there are more and more EO's in memory it takes longer and longer for fetches to be processed because as the system ensures uniqueness, it will have to keep

Re: FetchSpec setFetchLimit??

2009-03-02 Thread Chuck Hill
On Mar 2, 2009, at 1:42 PM, Kieran Kelleher wrote: I always thought that EOFetchSpecification.setFetchLimit( int n) would generate SQL with LIMIT n tacked onto the end of the SQL statement, but it appears not to. This is the default behavior as not all databases implement this. Specific

Re: Reference Lib JARs Not Recognized

2009-03-02 Thread Chuck Hill
On Mar 2, 2009, at 3:25 PM, Drew Thoeni wrote: Screen shots. Good idea. You can see in this screen shot ERExtensions.jar is in the "Referenced Libraries" More useful is the Libraries tab of the project's properties. having gotten there by me 1) putting the JAR in the file system folder

Re: Posting to WebObject-List;

2009-03-02 Thread Lachlan Deck
On 03/03/2009, at 9:11 AM, Mr. G Brown wrote: Does everybody get the below message: Yes! Very annoying. Sorry. Your message could not be delivered to: wodev,mail (The name was not found at the remote site. Check that the name has been entered correctly.) FROM igw.rainbowschools.ca (mail

Posting to WebObject-List;

2009-03-02 Thread Mr. G Brown
Hi, Does everybody get the below message: Sorry. Your message could not be delivered to: wodev,mail (The name was not found at the remote site. Check that the name has been entered correctly.) FROM igw.rainbowschools.ca (mail.rainbowschools.ca [38.112.87.4]) Every-time they post ??? I

Re: Memory Management (or rather documenting thereof...)

2009-03-02 Thread Mr. G Brown
Just recently, I answered a question about value types without recalling, or mentioning, that this is documented there also (at http://wiki.objectstyle.org/confluence/display/WO/EOF-Modeling- Common+Pitfalls+and+Troubleshooting) , although that page name might not make it extremely easy to fi

FetchSpec setFetchLimit??

2009-03-02 Thread Kieran Kelleher
I always thought that EOFetchSpecification.setFetchLimit( int n) would generate SQL with LIMIT n tacked onto the end of the SQL statement, but it appears not to. Instead it fetches the all qualifying records and does the LIMIT in memory?! Has this always been the case or is it just the

Re: Memory Management (or rather documenting thereof...)

2009-03-02 Thread Pascal Robert
Le 09-03-02 à 15:24, Chuck Hill a écrit : On Mar 2, 2009, at 9:03 AM, Ray Kiddy wrote: Is there a reason we do not seem to be talking about or updating the wiki documentation anymore? Yes: - loss of Will to Live - realization that only .01% of people will actually look at the wiki bef

Re: Memory Management

2009-03-02 Thread Andrew Lindesay
Hello Chuck; A big part of slowing-down with saturated object stores is that as there are more and more EO's in memory it takes longer and longer for fetches to be processed because as the system ensures uniqueness, it will have to keep checking to see if it already has each new row of da

Re: Owns Destination & Deny

2009-03-02 Thread Stamenkovic Florijan
Hey Dave, On Mar 02, 2009, at 16:55, David Avendasora wrote: What I find is really weird is that in most ways this never causes problems, except when trying to delete the Owner from within a Java Client application. I've never had a Web-app complain about it. It seems the delete is process

Re: Owns Destination & Deny

2009-03-02 Thread David Avendasora
On Mar 2, 2009, at 3:20 PM, Chuck Hill wrote: On Mar 2, 2009, at 7:05 AM, David Avendasora wrote: Would it make sense to have a validation rule in Entity Modeler that the inverse relationship of an "Owns Destination" relationship cannot be optional? I can't think of any case where it bei

Re: Current EOGenerator Templates

2009-03-02 Thread John Huss
The current templates can be found here: http://svn.objectstyle.org/repos/woproject/trunk/woproject/wolips/core/plugins/org.objectstyle.wolips.eogenerator.core/ templates/ John On Mon, Mar 2, 2009 at 2:35 PM, George Domurot wrote: > I noticed several inks are broken for both the Velocity EOGene

Re: Memory Management (or rather documenting thereof...)

2009-03-02 Thread Chuck Hill
On Mar 2, 2009, at 12:38 PM, Lachlan Deck wrote: On 03/03/2009, at 7:24 AM, Chuck Hill wrote: On Mar 2, 2009, at 9:03 AM, Ray Kiddy wrote: Looking at this post, I realized there could be a discussion of this on the doc (at http://wiki.objectstyle.org/confluence/display/WO/Programming__WebO

Re: Memory Management (or rather documenting thereof...)

2009-03-02 Thread Lachlan Deck
Woops .. meant to cc list. On 03/03/2009, at 7:38 AM, Lachlan Deck wrote: On 03/03/2009, at 7:24 AM, Chuck Hill wrote: On Mar 2, 2009, at 9:03 AM, Ray Kiddy wrote: Looking at this post, I realized there could be a discussion of this on the doc (at http://wiki.objectstyle.org/confluence/dis

Current EOGenerator Templates

2009-03-02 Thread George Domurot
I noticed several inks are broken for both the Velocity EOGenerator Template Site and Mike Schrag's Templates on: http://wiki.objectstyle.org/confluence/display/WOL/EOGenerator+Templates+and+Additions Does anyone have the current links? -- George Domurot geo...@boxofficetickets.com ___

file not found pbdevelopment.plist

2009-03-02 Thread Matt Hendley
When starting up my webobjects application, I continue to get an exception that the pbdevelopment.plist file is not found in various directories. There is an example below. These are not fatal exceptions. How can I get these messages to go away? Thanks java.io.FileNotFoundException: /Users/

Re: Memory Management (or rather documenting thereof...)

2009-03-02 Thread Chuck Hill
On Mar 2, 2009, at 9:03 AM, Ray Kiddy wrote: Is there a reason we do not seem to be talking about or updating the wiki documentation anymore? Yes: - loss of Will to Live - realization that only .01% of people will actually look at the wiki before posting - realization that only .005% of

Re: Owns Destination & Deny

2009-03-02 Thread Chuck Hill
On Mar 2, 2009, at 7:05 AM, David Avendasora wrote: Hi all, mostly my future self. When I have a relationship setup that has the following settings: 1) Owns Destination 2) Delete Rule of Deny 3) Inverse relationship is Optional (I think this should be impossible if the object is owned) I g

Re: My provider moved my server and now...

2009-03-02 Thread Chuck Hill
On Mar 2, 2009, at 6:25 AM, James Cicenia wrote: I guess I will just redo it and then backup SiteConfig.xml for the next time. Luckily, I had just moved off 8 applications from this server over to my other server at rackspace so this shouldn't be so bad, but, I was wondering why it would

Re: Memory Management

2009-03-02 Thread Chuck Hill
On Mar 1, 2009, at 7:14 PM, Andrew Lindesay wrote: Hello Jeff; I posted on this as well? Did you get this post and have you tried it? Load the list of EO's into memory to be processed as raw-rows with the PK in the raw rows. Break that lists up into batches of, for example, 100 items

Re: Memory Management

2009-03-02 Thread Chuck Hill
On Mar 1, 2009, at 7:06 PM, Jeff Schmitz wrote: On Feb 24, 2009, at 12:22 PM, Chuck Hill wrote: On Feb 23, 2009, at 9:13 PM, Jeff Schmitz wrote: Hello, In my app I frequently need to run operations that read in nearly all the data in my database. One I run in the foreground (I have

Re: Reference Lib JARs Not Recognized

2009-03-02 Thread Chuck Hill
On Mar 1, 2009, at 3:46 PM, Drew Thoeni wrote: Checked that and it seems OK. Your earlier post on that was helpful as com.webobjects was not being resolved. Adding the properties file corrected that issue. In this case, my project actually shows the JAR as part of the Referenced Librarie

Re: ERXFetchSpecificationBatchIterator : Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext

2009-03-02 Thread Lachlan Deck
On 02/03/2009, at 10:46 PM, Simon McLean wrote: I've got a bizarre error that I'm struggling to debug. Wondering if anyone can give me a point in the right direction...? I've got a pretty boring fetch spec, and if i call this: NSArray batch = ec.objectsWithFetchSpecification(fs); ...I decid

Re: What's the safe way to round?

2009-03-02 Thread David Avendasora
To do this for BigDecimal I have added the following code to my _Entity template for the attributes: #if ($attribute.javaClassName == "BigDecimal") if (${attribute.name} != null) { ${attribute.name} = ${attribute.name}.setScale(${attribute.scale}, RoundingMode.HALF_UP); } #

Re: Memory Management (or rather documenting thereof...)

2009-03-02 Thread Andrew Lindesay
Hello Ray; Yes good point; I'll add it to my to-do list. cheers. Is there a reason we do not seem to be talking about or updating the wiki documentation anymore? ___ Andrew Lindesay www.lindesay.co.nz ___ Do not post admin requests to the list. T

Stable Installer Update (5693)

2009-03-02 Thread Jeremy Matthews
Note: Updates to the turnkey installer are happening much more frequently now as our semi-automated build system is in place. Updates are not set on a predetermined basis, but will be released according to frequency of core wolips updates. Note: The ~/Library/Application Support/WOLips/wol

Re: Memory Management (or rather documenting thereof...)

2009-03-02 Thread Ray Kiddy
Is there a reason we do not seem to be talking about or updating the wiki documentation anymore? Looking at this post, I realized there could be a discussion of this on the doc (at http://wiki.objectstyle.org/confluence/display/WO/Programming__WebObjects-EOF-Modeling-Fetch+Specifications) a

Re: "EOGenerate" in WOLips won't work.

2009-03-02 Thread Adam Ohren
F, It turns out I had not changed the class name of my entities in the EOModel. They were the default EOGenericRecord. You're right, it was the normal behavior; now, all is well. :) Thanks for your help. Adam Ohren adam.oh...@gmail.com On Mar 2, 2009, at 10:49 AM, Stamenkovic Florijan

Re: "EOGenerate" in WOLips won't work.

2009-03-02 Thread Stamenkovic Florijan
Hey Adam, On Mar 02, 2009, at 11:02, Adam Ohren wrote: When I right-click my .eogen file and select "EOGenerate...", nothing happens. No warnings, exceptions, or errors to speak of. The progress indicator in the lower-right of Eclipse comes on briefly (like half-a-second), then disappears.

Re: WebObjects Installer CD for Windows

2009-03-02 Thread Don Lindsay
Hello; All you needed was ant.jar. I have included this in the woinst.jar. Redownload the file and the install should run. I have modified the text in the installer for Eclipse to read 3.4 but did not compile or upload it. Thanks Don On Mar 2, 2009, at 6:52 AM, Markus Ruggiero wrote:

Owns Destination & Deny

2009-03-02 Thread David Avendasora
Hi all, mostly my future self. When I have a relationship setup that has the following settings: 1) Owns Destination 2) Delete Rule of Deny 3) Inverse relationship is Optional (I think this should be impossible if the object is owned) I get the following error when I try to delete an instance

"EOGenerate" in WOLips won't work.

2009-03-02 Thread Adam Ohren
Hi all, When I right-click my .eogen file and select "EOGenerate...", nothing happens. No warnings, exceptions, or errors to speak of. The progress indicator in the lower-right of Eclipse comes on briefly (like half-a- second), then disappears. I'm trying to use the built-in velocity gener

Re: My provider moved my server and now...

2009-03-02 Thread Patrick Middleton
On 2 Mar 2009, at 14:07, James Cicenia wrote: Hmmm,, that is empty. But the IP is the SAME ?? On Mar 2, 2009, at 8:00 AM, Pascal Robert wrote: Check if you have a backup copy of SiteConfig.xml in /Library/ WebObjects/Configuration/, and if not, check the content of the active SiteConfig.x

Re: My provider moved my server and now...

2009-03-02 Thread James Cicenia
I guess I will just redo it and then backup SiteConfig.xml for the next time. Luckily, I had just moved off 8 applications from this server over to my other server at rackspace so this shouldn't be so bad, but, I was wondering why it would just be wiped out?! But then again, I should have

Re: My provider moved my server and now...

2009-03-02 Thread Jérémy DE ROYER
We had the same 1 year ago and we had to reconfigure all even id we didn't move our server... Since, we backup the SiteConfig.xml file every night. Good luck, Jérémy Le 2 mars 09 à 15:07, James Cicenia a écrit : Hmmm,, that is empty. But the IP is the SAME ?? On Mar 2, 2009, at 8:00 AM,

Re: My provider moved my server and now...

2009-03-02 Thread James Cicenia
Hmmm,, that is empty. But the IP is the SAME ?? On Mar 2, 2009, at 8:00 AM, Pascal Robert wrote: Check if you have a backup copy of SiteConfig.xml in /Library/ WebObjects/Configuration/, and if not, check the content of the active SiteConfig.xml file to check for any reference for the old IP

Re: My provider moved my server and now...

2009-03-02 Thread Pascal Robert
Check if you have a backup copy of SiteConfig.xml in /Library/ WebObjects/Configuration/, and if not, check the content of the active SiteConfig.xml file to check for any reference for the old IP. nothing!! Everything is gone?! And, I have about one more hour before my client starts to

Re: WOWODC East 2009 survey

2009-03-02 Thread Pascal Robert
FYI, the survey also ask if you are interessed in buying the recordings, so if you can't attend the conference but want to get the recordings, please say so in the survey. We are planning a WO conference on August 29th and 30th in Montreal (see www.tourisme-montreal.org for more information

Re: My provider moved my server and now...

2009-03-02 Thread James Cicenia
nothing!! Everything is gone?! And, I have about one more hour before my client starts to .. James On Mar 2, 2009, at 7:33 AM, Pascal Robert wrote: What do you have in the Hosts tab in Monitor? Nothing shows up in my javamonitor. All my settings and apps are GONE ?! The IP is still t

Re: My provider moved my server and now...

2009-03-02 Thread Pascal Robert
What do you have in the Hosts tab in Monitor? Nothing shows up in my javamonitor. All my settings and apps are GONE ?! The IP is still the same, they just moved it to a different data center. Any thoughts on what happened? Thanks James Cicenia

My provider moved my server and now...

2009-03-02 Thread James Cicenia
Nothing shows up in my javamonitor. All my settings and apps are GONE ?! The IP is still the same, they just moved it to a different data center. Any thoughts on what happened? Thanks James Cicenia ___ Do not post admin requests to the list. They wil

ERXFetchSpecificationBatchIterator : Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext

2009-03-02 Thread Simon McLean
I've got a bizarre error that I'm struggling to debug. Wondering if anyone can give me a point in the right direction...? I've got a pretty boring fetch spec, and if i call this: NSArray batch = ec.objectsWithFetchSpecification(fs); ... i get an array of objects. No issue. But I've been worki

multipart/form-data issue

2009-03-02 Thread Rukmal Dias
hi, I'm using a form and there is file upload comp. in the form too Therefore form declaration : Form : WOForm { multipleSubmit = true; enctype = "multipart/form-data"; } There is a submit button (there r many submit buttons in the form) and when I clicked that button it is not going to