set the sourceObject to an EO ??

2012-07-27 Thread Theodore Petrosky
I am trying to use ERXThreadStorage to copy an EO relationship into a newly created EO. in my MainNavigatorController I have a method: public WOComponent listSaleAdsProjectsAction() { NSLog.out.appendln(*** listSaleAdsProjectsAction* ); ERXEC ec =

Re: set the sourceObject to an EO ??

2012-07-27 Thread David Holt
Did you set and clear ERXThreadStorage in the session's awake and sleep methods? Sent from my iPad On 2012-07-27, at 6:31 AM, Theodore Petrosky tedp...@yahoo.com wrote: I am trying to use ERXThreadStorage to copy an EO relationship into a newly created EO. in my MainNavigatorController I

Re: set the sourceObject to an EO ??

2012-07-27 Thread David Holt
Also if you have an entity named Project and another named ProjectCategory you may need to distinguish them for D2W with different priority rules. http://davidleber.net/?p=273 Sent from my iPad On 2012-07-27, at 6:31 AM, Theodore Petrosky tedp...@yahoo.com wrote: I am trying to use

Re: set the sourceObject to an EO ??

2012-07-27 Thread Theodore Petrosky
I set it in the awake, but did not clear it in the sleep. public void awake() { super.awake(); ERXThreadStorage.takeValueForKey(user(), currentUser); ERXThreadStorage.takeValueForKey(currentCategory(), currentProjectCategory); } what do I do in the sleep to clear it. I

Re: set the sourceObject to an EO ??

2012-07-27 Thread Theodore Petrosky
That we it. My rules were fakakt. Thanks for pointing me in the right direction. Ted --- On Fri, 7/27/12, David Holt programming...@mac.com wrote: From: David Holt programming...@mac.com Subject: Re: set the sourceObject to an EO ?? To: Theodore Petrosky tedp...@yahoo.com Cc:

Re: Trouble Shooting Mountain Lion

2012-07-27 Thread Henrique Gomes
Why would you want to shoot Mountain Lion? And why are you having trouble doing it? HG ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your

Issue with UNIXClassPath and JavaWOExtensions framework

2012-07-27 Thread Strumyla, Marius
Hello, I'm using Eclipse 3.7 + WOLips 3.7 on Windows. My app has a reference to JavaWOExtensions framework. I have noticed that WOLips puts a wrong entry into UNIXClassPath (or any classpath): WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/Java WOExtensions.jar While

RE: Issue with UNIXClassPath and JavaWOExtensions framework

2012-07-27 Thread Strumyla, Marius
Before anybody asks, Java Build Path \ Libraries in my Eclipse points to the correct two WebObjects 5.4 JavaWOExtensions libraries - javawoextensions.jar (in JavaWOExtensions.framework\Resources\Java) and JavaWOExtensions.jar in (JavaWOExtensions.framework\WebServerResources\Java). Thanks

Mailing Lists, deliberately cross posting

2012-07-27 Thread Amedeo Mantica
Hello all WO people, Sorry for the deliberately cross posting, but I needed to reach all of you, please reply on the apple list. I'm getting crazy following the WebObjects Apple list and the Wonder List, and I think I'm not alone. Due to the fact that we are a restricted number of people and

Re: Mailing Lists, deliberately cross posting

2012-07-27 Thread Jesse Tayler
I think we'd already decided to move to the apple list, since that's always there -? I'm not certain what happened with closing the other one down, but we really should have a single list IMHO. On Jul 27, 2012, at 1:42 PM, Amedeo Mantica amedeomant...@me.com wrote: Hello all WO people,

Re: [Wonder-disc] Mailing Lists, deliberately cross posting

2012-07-27 Thread Paul Yu
If we use the Apple WebObjects list, then the goal of moving to WOnder moniker will be a little tougher? Paul On Jul 27, 2012, at 2:21 PM, Jesse Tayler wrote: I think we'd already decided to move to the apple list, since that's always there -? I'm not certain what happened with closing

Re: Trouble Shooting Mountain Lion

2012-07-27 Thread Johnny Miller
Believe me, I'd only trouble shoot the digital variety. Way too big an animal lover (current pet count is 2 dogs, 2 cats, 2 goldfish and 4 horses) to shoot the red blooded kind. Although, my favorite variety of cat is the Brazil Cat: http://www.kahalawai.com/Downloads/Brazil.jpg Have a nice

wounit: cannot load model

2012-07-27 Thread hafid ouazib
Hi, i'm trying to run unit tests using WOUNIT-1.2.1, inside Eclipse but I get the error: java.lang.IllegalArgumentException: Cannot load model named 'ModelName' at com.wounit.rules.AbstractEditingContextRule.loadModel(AbstractEditingContextRule.java:196) at

Re: wounit: cannot load model

2012-07-27 Thread David Holt
Unfortunately only BETWEEN Davids. Otherwise it doesn't work. :-) On 2012-07-27, at 1:16 PM, Kieran Kelleher kelleh...@gmail.com wrote: On Jul 27, 2012, at 3:58 PM, hafid ouazib wrote: Hi, i'm trying to run unit tests using WOUNIT-1.2.1, inside Eclipse but I get the error:

Re: wounit: cannot load model

2012-07-27 Thread Ramsey Gurley
My guess is you or wounit or something hasn't inited the ERXApplication class and so no models. That's just a guess though. I've never used WOUnit. I have a unit testing project template for junit testing frameworks on github that I use. It's modeled after the ERXTest app in wonder and has a

D2W Rules for Joda.LocalDate Edit

2012-07-27 Thread Paul Yu
Dear D2W gods What are the rules for editing/picking a property of Joda.LocalDate? The rules for NSTimestamp seems to just work, but my version of the D2W does not seem to provide an automatic set of rules to allow the editing/picking of joda. Help Thanks Paul

Is it possible to access the displayGroup of an embedded list page?

2012-07-27 Thread David Holt
Hello all, We've been using a button on list pages of documents that allows you to download all the attachments at once. We can get the display group using sender.context().page(). ClassCastException: er.modern.look.pages.ERMODInspectPage cannot be cast to er.directtoweb.pages.ERD2WListPage

Re: D2W Rules for Joda.LocalDate Edit

2012-07-27 Thread Ramsey Gurley
I have a custom edit/query/display date components that I use for any type of date. The only thing that varies about them is the formatObject set in the rule system. It's just a text input component, but it works for everything.

Re: wounit: cannot load model

2012-07-27 Thread Henrique Prange
Hi Hafid, Where are you placing the model named ModelName? Cheers, Henrique On 27/07/2012, at 16:58, hafid ouazib wrote: Hi, i'm trying to run unit tests using WOUNIT-1.2.1, inside Eclipse but I get the error: java.lang.IllegalArgumentException: Cannot load model named 'ModelName'

Re: wounit: cannot load model

2012-07-27 Thread Henrique Prange
Hi Ramsey, On 27/07/2012, at 17:48, Ramsey Gurley wrote: My guess is you or wounit or something hasn't inited the ERXApplication class and so no models. That's just a guess though. I've never used WOUnit. The ERXApplication initialization is not required to run WOUnit test cases. The

Re: Is it possible to access the displayGroup of an embedded list page?

2012-07-27 Thread David Holt
Maybe I should have asked: can I get the array of objects in an embedded list in a BranchDelegate? Thanks, David On 2012-07-27, at 1:59 PM, David Holt programming...@mac.com wrote: Hello all, We've been using a button on list pages of documents that allows you to download all the

Re: D2W Rules for Joda.LocalDate Edit

2012-07-27 Thread Paul Hoadley
Hi Paul, On 28/07/2012, at 6:25 AM, Paul Yu wrote: What are the rules for editing/picking a property of Joda.LocalDate? If Ramsey's component is suitable for you, that's great, but when I checked it out a couple of months ago, R2D2W was dependent on Wonder's integration branch. (Is it

Re: Is it possible to access the displayGroup of an embedded list page?

2012-07-27 Thread Ramsey Gurley
Sorry I didn't reply earlier. I'm used to seeing you answer questions instead of asking them :-) ERD2WUtilities has a number of methods that should get you the page you want. Ramsey On Jul 27, 2012, at 4:19 PM, David Holt wrote: Maybe I should have asked: can I get the array of objects in an

Re: D2W Rules for Joda.LocalDate Edit

2012-07-27 Thread Ramsey Gurley
On Jul 27, 2012, at 4:23 PM, Paul Hoadley wrote: Hi Paul, On 28/07/2012, at 6:25 AM, Paul Yu wrote: What are the rules for editing/picking a property of Joda.LocalDate? If Ramsey's component is suitable for you, that's great, but when I checked it out a couple of months ago, R2D2W

Re: Is it possible to access the displayGroup of an embedded list page?

2012-07-27 Thread David Holt
ERD2WUtilities.parentListPage(sender) did it. Thanks Ramsey. Now for the inevitable next question: The delegate just returns the download using the ERDActionBar embedded in the list. Now when I go to hit the page level buttons on the Inspect page (Edit or Return), it downloads as if the

Re: Is it possible to access the displayGroup of an embedded list page?

2012-07-27 Thread David Holt
All three buttons have the same id. On 2012-07-27, at 4:50 PM, David Holt programming...@mac.com wrote: ERD2WUtilities.parentListPage(sender) did it. Thanks Ramsey. Now for the inevitable next question: The delegate just returns the download using the ERDActionBar embedded in the list.