Re: [OT] EOF icon

2009-01-28 Thread Paul Stringer
Apple Legal can we get some kind of cease and desist here... thanks We should sue them for defamation of character. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)

Re: ERRORS with New WeObjects Application/Framework - WOLips 3.4.1 (5661)

2009-01-28 Thread Chuck Hill
On Jan 28, 2009, at 10:14 PM, Gaastra Dennis - WO Lists wrote: Hi Chuck et al, Why should there be problems with a "New WebObjects Application/ Framework", everything stock... Because something went wrong? This is what came up: Description ResourcePathLocationTyp

Re: WO5.4.x resource manager bytesForResourceNamed bottleneck

2009-01-28 Thread Lachlan Deck
On 29/01/2009, at 5:03 PM, Lachlan Deck wrote: So this might be a WOLips problem. The following screenshot gives a bit more info on this .. so Mike this might be for you. Any thoughts? <...> On 29/01/2009, at 2:22 PM, Lachlan Deck wrote: Under WO5.3.3 I had this in my abstract super-com

Re: ERRORS with New WeObjects Application/Framework - WOLips 3.4.1 (5661)

2009-01-28 Thread Gaastra Dennis - WO Lists
Hi Chuck et al, Why should there be problems with a "New WebObjects Application/ Framework", everything stock... This is what came up: Description ResourcePathLocationType The project cannot be built until build path errors are resolved WOApp Unknown Java Problem Th

Re: ERRORS with New WeObjects Application/Framework - WOLips 3.4.1 (5661)

2009-01-28 Thread Chuck Hill
- check the Java Build Path - check the Problems view - try cleaning the projects On Jan 28, 2009, at 9:45 PM, Gaastra Dennis - WO Lists wrote: Hi List, Just installed the new Eclipse 3.4.1 and WOLips 5561 combination, and after creating a new WebObjects Application and Framework, there

ERRORS with New WeObjects Application/Framework - WOLips 3.4.1 (5661)

2009-01-28 Thread Gaastra Dennis - WO Lists
Hi List,Just installed the new Eclipse 3.4.1 and WOLips 5561 combination, and after creating a new WebObjects Application and Framework, there appear red error "X"'s for these new projects. However, when  expanding the arrows for these projects, no errors can be found. Why?Is there something we are

Re: Business Logic in validateForSave?

2009-01-28 Thread Kamal D Shah
Oh! thanks a ton Chuck for pointing this out! Thanks Kamal On 29-Jan-09, at 10:52 AM, Chuck Hill wrote: On Jan 28, 2009, at 9:16 PM, Kamal D Shah wrote: Hi all, I have been using D2W and have been managing quite well without having to write any code. However, I have run into a situatio

Re: Business Logic in validateForSave?

2009-01-28 Thread Chuck Hill
On Jan 28, 2009, at 9:16 PM, Kamal D Shah wrote: Hi all, I have been using D2W and have been managing quite well without having to write any code. However, I have run into a situation where I need to insert a bunch of objects when another object is being created. I was wondering if I cou

Business Logic in validateForSave?

2009-01-28 Thread Kamal D Shah
Hi all, I have been using D2W and have been managing quite well without having to write any code. However, I have run into a situation where I need to insert a bunch of objects when another object is being created. I was wondering if I could write this code in the validateForSave of the o

Re: displayGroup questions

2009-01-28 Thread Owen McKerrow
On 29/01/2009, at 2:50 PM, Theodore Petrosky wrote: I am using some of the ajax examples as a starting template for a project. I have used the DependentListsExample. My 'list' is an array from a postgresql db and it is working almost perfectly. I have not been able to figure out how to ge

displayGroup questions

2009-01-28 Thread Theodore Petrosky
I am using some of the ajax examples as a starting template for a project. I have used the DependentListsExample. My 'list' is an array from a postgresql db and it is working almost perfectly. I have not been able to figure out how to get the table to update after I insert a new row in the datab

Stable Installer Update (5661)

2009-01-28 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. Along with the new stable version of WOLips (3.4.5

WO5.4.x resource manager bytesForResourceNamed bottleneck

2009-01-28 Thread Lachlan Deck
Hi there, Under WO5.3.3 I had this in my abstract super-component class... public WOElement template() { if ( allowsCustomTemplatingForRequestSite() ) { WOElement template = WOComponent.templateWithHTMLString( templateElement( "html" ), templateElement( "wod" ), null );

Re: [OT] EOF icon

2009-01-28 Thread Chuck Hill
We should sue them for defamation of character. On Jan 28, 2009, at 5:33 PM, Pascal Robert wrote: Look like even PHP people love the EOF icon : http://www.frdom.org/doku.php http://www.frdom.org/lib/plugins/note/images/note.png ---

Re: Handling Session timeout with ajax

2009-01-28 Thread Chuck Hill
On Jan 28, 2009, at 6:10 PM, Paul Hoadley wrote: 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. Excellent. Thank you! Thanks a _lot_. (As a really quick aside, since we

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 fra

Re: Handling Session timeout with ajax

2009-01-28 Thread Chuck Hill
On Jan 28, 2009, at 5:33 PM, Paul Hoadley wrote: 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

[OT] EOF icon

2009-01-28 Thread Pascal Robert
Look like even PHP people love the EOF icon : http://www.frdom.org/doku.php http://www.frdom.org/lib/plugins/note/images/note.png --- Pascal Robert http://www.macti.ca http://www.aircourriel.com http://www.linkedin.com/in/mact

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 you

Re: Handling Session timeout with ajax

2009-01-28 Thread Chuck Hill
On Jan 28, 2009, at 5:08 PM, Paul Hoadley wrote: 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

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 Chuck Hill
On Jan 28, 2009, at 3:52 PM, Paul Hoadley wrote: 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

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 AjaxUtils.redirectTo(errorPage)

Re: multiple stacks exception from ERXPrototypes

2009-01-28 Thread William Hatch
On Jan 28, 2009, at 5:21 PM, Mike Schrag wrote: Oh didn't notice the protoypes thing ... yeah i completely remove connection dictionaries from prototype models. it's just asking for weirdness. I never added them in. But, specifying the properties for the EOPrototypes explicitly worked

Re: multiple stacks exception from ERXPrototypes

2009-01-28 Thread Mike Schrag
Oh didn't notice the protoypes thing ... yeah i completely remove connection dictionaries from prototype models. it's just asking for weirdness. On Jan 28, 2009, at 5:09 PM, William Hatch wrote: On Jan 28, 2009, at 4:59 PM, Mike Schrag wrote: why is driver = "com.mysql.jdbc.Driver"; set

Re: multiple stacks exception from ERXPrototypes

2009-01-28 Thread William Hatch
On Jan 28, 2009, at 4:59 PM, Mike Schrag wrote: why is driver = "com.mysql.jdbc.Driver"; set in one and not the other? I don't know; I've never explicitly set properties for the Prototypes model before. Should I? It is specified for "YourModel" in my properties file. Really odd is that th

Re: multiple stacks exception from ERXPrototypes

2009-01-28 Thread Mike Schrag
why is driver = "com.mysql.jdbc.Driver"; set in one and not the other? ms On Jan 28, 2009, at 4:34 PM, William Hatch wrote: Doing this to create a separate stack: (thought this was correct, but maybe not using wonder?) EOObjectStoreCoordinator osc = new EOObjectStoreCoordinator(); EOEditing

multiple stacks exception from ERXPrototypes

2009-01-28 Thread William Hatch
Doing this to create a separate stack: (thought this was correct, but maybe not using wonder?) EOObjectStoreCoordinator osc = new EOObjectStoreCoordinator(); EOEditingContext ec = new EOEditingContext(osc); causes this error as soon I try to use the editing context: [2009-1-28 16:24:35 EST]

Re: java 1.5 enum types and EOs

2009-01-28 Thread Ken Anderson
It was an emergency and I can't easily debug on the deployment box, so no. The enum is in the class represented by the dealClass ivar. So the class I'm trying to do a getMethod() on is the one that has this Enum. On Jan 28, 2009, at 3:45 PM, Ricardo J. Parada wrote: Interesting... but the

Re: [WORKED AROUND] Re: Bug in client side EOF locking?

2009-01-28 Thread Stamenkovic Florijan
On Jan 28, 2009, at 17:06, Lachlan Deck wrote: On 29/01/2009, at 6:17 AM, Stamenkovic Florijan wrote: As you suggested, adding this to my EO superclass seems to do it: private static final Integer monitor = new Integer(345345); In case you weren't aware, you can declare your monitor

Re: [WORKED AROUND] Re: Bug in client side EOF locking?

2009-01-28 Thread Lachlan Deck
On 29/01/2009, at 6:17 AM, Stamenkovic Florijan wrote: As you suggested, adding this to my EO superclass seems to do it: private static final Integer monitor = new Integer(345345); In case you weren't aware, you can declare your monitor as private static final Object monitor = new Obj

Re: java 1.5 enum types and EOs

2009-01-28 Thread Stamenkovic Florijan
On Jan 28, 2009, at 16:41, Ricardo J. Parada wrote: Unfortunately I'm not cool enough for this project as it's not using ERPrototypes (yet). :-) Well, you don't need ERProrotypes... public class MyEO{ ... public enum Type{ } pub

Re: java 1.5 enum types and EOs

2009-01-28 Thread Ricardo J. Parada
Interesting... but the getMethod() call is not even accessing the enum... Is your enum inside the TRDeal class? Did you try moving out the enum declaration to its own file, i.e. FixStrip.java to see if the hung goes away? :-) On Jan 28, 2009, at 2:29 PM, Ken Anderson wrote: A word of ca

Re: java 1.5 enum types and EOs

2009-01-28 Thread Ricardo J. Parada
Unfortunately I'm not cool enough for this project as it's not using ERPrototypes (yet). :-) However I did look at the javaEnum prototype in the entities defined in the ERPrototypes framework and it seems like it actually maps it to a string in the database. Again, I'm not using ERPrototy

Re: Superfluous Session Creation

2009-01-28 Thread Mark Ritchie
On Wednesday, January 28, 2009, at 11:58AM, "Joe Kramer" wrote: >... I know that the new session is created when pageWithName is called from >the directAction, but I don't know >why the session is being created ... Hrm, sounds to me like the new component being created contains at least one co

Re: java 1.5 enum types and EOs

2009-01-28 Thread Stamenkovic Florijan
Sure... I store an int in the database that indicates the enumeration element's ordinal (zero indexed sequence number), and that's it... Straightforward and cool. Which is I guess exactly what ERPrototypes automates for you, though I have not tried it... F On Jan 27, 2009, at 18:18, Rica

Re: java 1.5 enum types and EOs

2009-01-28 Thread Ken Anderson
A word of caution about Enums and Java 1.5... I got bit last week by a Sun VM problem (1.5.014) combining Enums and introspection . I had defined this: public static enum FixStrip { Period(14), Quarter(15), Month(12), Year(16); private int code;

[WORKED AROUND] Re: Bug in client side EOF locking?

2009-01-28 Thread Stamenkovic Florijan
As you suggested, adding this to my EO superclass seems to do it: private static final Integer monitor = new Integer(345345); public void willRead(){ synchronized(monitor){ super.willRead(); } } publ

Re: JadClipse and Eclipse 3.4

2009-01-28 Thread Stamenkovic Florijan
Nothing else selected in the install choices... I am sure, as after I get a message about unsatisfied dependencies, I can go and analyze them, only JadClipse is there. Just like it was with FatJar... The only solution I know that work is first installing other plugins, and installing WOLips

Re: Bug in client side EOF locking?

2009-01-28 Thread Stamenkovic Florijan
On Jan 28, 2009, at 13:54, Chuck Hill wrote: Accessing any EO can trigger EOF access and if you are locking around EC methods, it won't be locked at that time. You would at least need to synchronize around willRead() and willReadRelationship(). Note that willReadRelationship() locks the

Re: WOLips can't load prototypes from jar anymore

2009-01-28 Thread Lachlan Deck
On 29/01/2009, at 4:45 AM, Mike Schrag wrote: Sorry for the delay ... 3.4.5653 seems okay for working with models that reference models in jars. i.e., depending on ERPrototypes (which is in a jar) works fine for MyEOModel. But as far as *opening* that model on its own you can see it's not p

Re: Superfluous Session Creation

2009-01-28 Thread Chuck Hill
Hi Joe, Welcome to the list! On Jan 28, 2009, at 8:58 AM, Joe Kramer wrote: Hello everyone, I am fairly new to the WebObjects world, so I was hoping to get some help. I am running into a problem with extra sessions getting created from a directAction . The part I don't understand is th

Re: Handling Session timeout with ajax

2009-01-28 Thread David Avendasora
But, but.. Where's the Purple Moose? I still don't see it... What? Huh? Oh. On Jan 28, 2009, at 12:38 PM, Chuck Hill wrote: On Jan 27, 2009, at 10:03 PM, Chuck Hill wrote: On Jan 27, 2009, at 8:38 PM, Paul Hoadley wrote: On 28/01/2009, at 1:40 PM, Chuck Hill wrote: If not, follow Anjo's

Re: Bug in client side EOF locking?

2009-01-28 Thread Chuck Hill
On Jan 28, 2009, at 7:10 AM, Stamenkovic Florijan wrote: On Jan 27, 2009, at 19:44, Chuck Hill wrote: This happens while I have two threads doing some work. One is performing calculations, the other is updating the GUI. Both of them are accessing the same EOs, asking them for data. That

Re: JadClipse and Eclipse 3.4

2009-01-28 Thread Mike Schrag
works fine for me ... i have no idea what is going on here, but it looks like you have something else selected in the install choices, that it's complaining about maven. ms On Jan 28, 2009, at 12:44 PM, Stamenkovic Florijan wrote: Hey Mike, Eclipse 3.4 gives me an unsatisfied dependency w

Re: WOLips can't load prototypes from jar anymore

2009-01-28 Thread Mike Schrag
Sorry for the delay ... 3.4.5653 seems okay for working with models that reference models in jars. i.e., depending on ERPrototypes (which is in a jar) works fine for MyEOModel. But as far as *opening* that model on its own you can see it's not possible to open the erprototypes.eomodeld itse

Re: Handling Session timeout with ajax

2009-01-28 Thread Chuck Hill
On Jan 27, 2009, at 10:03 PM, Chuck Hill wrote: On Jan 27, 2009, at 8:38 PM, Paul Hoadley wrote: 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 N

Superfluous Session Creation

2009-01-28 Thread Joe Kramer
Hello everyone, I am fairly new to the WebObjects world, so I was hoping to get some help. I am running into a problem with extra sessions getting created from a directAction . The part I don't understand is that a session already exists somewhere, but context().hasSession is false and existingSe

Re: Bug in client side EOF locking?

2009-01-28 Thread Stamenkovic Florijan
On Jan 28, 2009, at 11:10, Stamenkovic Florijan wrote: Also, when I look at the source of ReentrantLock, I see that this exception is thrown because of: if (Thread.currentThread() != owner) throw new IllegalMonitorStateException(); So, the thread trying to unlock does not actu

Useful add-on to FireBug - FireScope

2009-01-28 Thread Kieran Kelleher
Seems like this is useful addition to FireBug, although I only installed it today. http://tools.sitepoint.com/firescope/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com

Re: Bug in client side EOF locking?

2009-01-28 Thread Stamenkovic Florijan
On Jan 27, 2009, at 19:44, Chuck Hill wrote: This happens while I have two threads doing some work. One is performing calculations, the other is updating the GUI. Both of them are accessing the same EOs, asking them for data. That sounds problematic. Usually one thread would hold the EC lo

Re: AjaxUpdateContainer and dynamic frequency

2009-01-28 Thread WebObjects - Anazys
Ok I miss this point. Thanks for your answer! Le 28 janv. 09 à 15:47, Mike Schrag a écrit : Somebody has already tried to change dynamically the value of the frequency to display a component for 10 secondes, the next one 20 secondes.. ? Is it possible with AjaxUpdateContainer or maybe I must

Re: AjaxUpdateContainer and dynamic frequency

2009-01-28 Thread Mike Schrag
Somebody has already tried to change dynamically the value of the frequency to display a component for 10 secondes, the next one 20 secondes.. ? Is it possible with AjaxUpdateContainer or maybe I must write a Javascript ? Custom javascript .. it should be pretty easy -- in your component, j

Re: AjaxUpdateContainer and dynamic frequency

2009-01-28 Thread WebObjects - Anazys
Somebody has already tried to change dynamically the value of the frequency to display a component for 10 secondes, the next one 20 secondes.. ? Is it possible with AjaxUpdateContainer or maybe I must write a Javascript ? Custom javascript .. it should be pretty easy -- in your component, j

Re: WOLips can't load prototypes from jar anymore

2009-01-28 Thread Henrique Prange
Hi Mike, Henrique Prange wrote: Hi Mike, This feature is cool. But it didn't work for me. :( I got a "Failed to load model. NullPointerException." message while trying to open the ERPrototypes model. And there is no stack trace for that error too. I'm running WOLips in development mode right

Re: WOLips can't load prototypes from jar anymore

2009-01-28 Thread Henrique Prange
Hi Lachlan, Lachlan Deck wrote: I'll try and have a look today. Are you using WO5.4.3 Henrique? Yes. Actually, I'm using WO 5.2.4, 5.3.2 and 5.3.3 in some projects too. The only problems I recall with WO 5.4.3 are related with the Main class, the Session class and the WOFrameworksBaseURL p

Re: WOLips can't load prototypes from jar anymore

2009-01-28 Thread Henrique Prange
Hi Mike, Mike Schrag wrote: Anyway, fix committed. Can a jar person try that out (i tried it on jars inside and outside the project and it worked)? My models have the prototypes loaded correctly again. Thanks Mike. I also added support for double-clicking index.eomodeld's from inside the

Re: WOLips can't load prototypes from jar anymore

2009-01-28 Thread Mike Schrag
Ugh - I'd forgotten to confirm my subscription to woproject- commits. What was the commit#? Never mind: 5653 Can a jar person try that out (i tried it on jars inside and outside the project and it worked)? I also added support for double-clicking index.eomodeld's from inside the jar, which

Re: AjaxUpdateContainer and dynamic frequency

2009-01-28 Thread Mike Schrag
Somebody has already tried to change dynamically the value of the frequency to display a component for 10 secondes, the next one 20 secondes.. ? Is it possible with AjaxUpdateContainer or maybe I must write a Javascript ? Custom javascript .. it should be pretty easy -- in your component, j

Re: AjaxUploadFile

2009-01-28 Thread Mike Schrag
I noticed that the AjaxUploadFile is missing the mimetype binding... Is this correct or is a bug? I don't understand ... what would a mimetype binding on AjaxFileUpload do? ms ___ Do not post admin requests to the list. They will be ignored. Webobje

AjaxUpdateContainer and dynamic frequency

2009-01-28 Thread WebObjects - Anazys
Hi all, I'm playing with the Wonder component "AjaxUpdateContainer" but I have some trouble to customize : In a classic way, this component works perfectly. But when I try to bind the frequency with a dynamic value (which is updated in a function binded by "action"), only the first value