Re: ERMailDeliveryHTML + Localization ?!?!

2012-10-26 Thread Riccardo De Menna
Hi Kieran, As you suggested I went a little deeper and found the problem. I'm often faced with the need to send a quick email from my code while building a response page for the user. For example, in this case, the admin user of the website has a button to reset regular user passwords and the

ERJasperReports

2012-10-26 Thread [Pyramide Ingenierie] Bruno WIESEN
Hi,I currently try to use the wonder framework ERJasperReports, everything was ok until i try to create a sub report that uses a new datasource…Here is what I do:ERJRFoundationDataSource livclisDataSource = new

ERJasperReports

2012-10-26 Thread [Pyramide Ingenierie] Bruno WIESEN
Hi,I currently try to use the wonder framework ERJasperReports, everything was ok until i try to create a sub report that uses a new datasource…Here is what I do:ERJRFoundationDataSource livclisDataSource

Servlet Deployment

2012-10-26 Thread Ron X
hello everybody when i deploy an app i stucked with error: [2012-10-26 13:25:51 FET] localhost-startStop-1 The bundle MailApp has malformed version number: NSProperties.NestedProperties.load(): /Users/esuser/WebObjects.properties java.lang.reflect.InvocationTargetException at

Re: ERJasperReports

2012-10-26 Thread Theodore Petrosky
This worked for me: NSMutableArray? accplsh = new NSMutableArray(checklist.accomplishments()); ERXArrayUtilities.sortArrayWithKey( accplsh, orderInt, null); //not important for example ERJRFoundationDataSource accomplishDataSource = new ERJRFoundationDataSource((NSArray? extends

Re: Servlet Deployment

2012-10-26 Thread Dov Rosenberg
Look toward the bottom. There is a class not found exception. Check your jar files to make sure they are in the WEB-INF/ lib folder Dov Sent from my iPhone On Oct 26, 2012, at 3:58 AM, Ron X ron.x.by...@gmail.com wrote: hello everybody when i deploy an app i stucked with error:

D2W: getting the root pageConfiguration

2012-10-26 Thread Fabian Peters
Hi all, An entity that's being edited (EntityC) has relationships to two different entities (EntityA, EntityB) and different keys should be shown depending on the context (root pageConfiguration being EditEntityA or EditEntityB). In order to display the right properties on an embedded page, I

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread David Holt
Are you using ModernLook with actual embedded page configurations? David On 2012-10-26, at 6:40 AM, Fabian Peters wrote: Hi all, An entity that's being edited (EntityC) has relationships to two different entities (EntityA, EntityB) and different keys should be shown depending on the

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread Fabian Peters
Yes, this is with ModernLook. Am 26.10.2012 um 17:56 schrieb David Holt: Are you using ModernLook with actual embedded page configurations? David On 2012-10-26, at 6:40 AM, Fabian Peters wrote: Hi all, An entity that's being edited (EntityC) has relationships to two different

JDK really necessary for deployment?

2012-10-26 Thread Nilton Lessa
Hi list, After several years using WebObjects, posting this questions makes me a bit ashamed. :-) But the question is: to deploy WO application in CentOS, Tomcat based, is necessary to install a JDK? Or the JRE would be enough? I always deployed installing the JDK and I remember in the old

Re: JDK really necessary for deployment?

2012-10-26 Thread Jesse Tayler
IFIRC I don't think I do anything to centOS but install WO and setup some standard folders and files. there's scripts on the wiki which you can find to setup centOS on AWS and those are fantastic if you're not already using them. are you having any specific troubles? On Oct 26, 2012, at

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread David Holt
If you're using embedded configurations, wouldn't you just have a couple of rules like: 20 : (pageConfiguration = 'editRelationshipEntityC' and parentPageConfiguration = 'EditEntityA') = displayPropertyKeys = (name, description) [com.webobjects.directtoweb.Assignment] 20 : (pageConfiguration

Re: JDK really necessary for deployment?

2012-10-26 Thread Nilton Lessa
Hi Jesse, I already have some applications running for a long time in CentOS and Tomcat. But I always, in fact almost as a habit, installed the JDK in deployemnt, never the JRE. And today a client asked me: hi, but is it really necessary the JDK in deployemnt? and I got stucked. :-P ..because

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread David Holt
Sorry those should have been: editEmbeddedRelationshipEntityC On 2012-10-26, at 10:57 AM, David Holt wrote: If you're using embedded configurations, wouldn't you just have a couple of rules like: 20 : (pageConfiguration = 'editRelationshipEntityC' and parentPageConfiguration =

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread Fabian Peters
Unfortunately parentPageConfiguration doesn't help, as there's an additional level of nesting due to the EditRelationshipEmbeddedEntityC. It will always just return EditRelationshipEmbeddedEntityC, when the embedded page is EditEmbeddedEntityC and the root pageConfiguration is EditEntityA or

Re: JDK really necessary for deployment?

2012-10-26 Thread Nilton Lessa
Hum, I could get a reference in http://en.wikibooks.org/wiki/WebObjects/Web_Applications/Deployment/Windows#Before_you_start regarding the SDK issue in Windows deployment. --- SDK installation Next thing is to install a Java-SDK. The version of the SDK must be greater or equal

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread Fabian Peters
Sorry, sent too fast and mixed up my mock entities. This seems to be (more) correct: Unfortunately parentPageConfiguration doesn't help, as there's an additional level of nesting due to the EditRelationshipEmbeddedEntityC. It will always just return EditRelationshipEmbeddedEntityC, when the

Re: JDK really necessary for deployment?

2012-10-26 Thread Ramsey Gurley
A client making suggestions about a deployment config is like airline passengers making suggestions about jet engine design… I don't think a JDK is required, but I would use it anyway. I don't think you get tools like jvisualvm with JRE. The first time the app falls over with an

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread Ramsey Gurley
You may not necessarily have a page configuration depending on how the page is instantiated. Have you tried a rule with a LHS like session.context.page.d2wContext.entity.name = 'EntityA' and session.context.page.d2wContext.task = 'edit' ? Ramsey On Oct 26, 2012, at 11:18 AM, Fabian Peters

Re: JDK really necessary for deployment?

2012-10-26 Thread Jesse Tayler
On Oct 26, 2012, at 2:32 PM, Ramsey Gurley rgur...@smarthealth.com wrote: A client making suggestions about a deployment config is like airline passengers making suggestions about jet engine design… more like a passenger wanting to do some quick work on the engine during flight, really….bad

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread Fabian Peters
Sorry this is confusing. I'm sorry, as I fear I've been wasting your time by messing up the rules! You've got an EditEntityC page with an embedded relationship to A or B and then a second embedded relationship back to C inside those embedded pages? The root level pageConfiguration is

Re: Programmatically finding an entity's subclasses

2012-10-26 Thread Chuck Hill
Sounds like too much polyester in the hot sun has started to affect poor David's mind! On 2012-10-25, at 6:36 PM, David Avendasora wrote: API Inconsistencies like this drive me crazy! What metaphor are we using? Parent/Child? Superclass/Subclass? Apparently the answer is Yes. To get

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread Fabian Peters
Thanks, David! That would mean I'd have to create a custom component subclass, in order to set a custom d2wKey via that method. Or is there something I'm not seeing? Am 26.10.2012 um 20:18 schrieb David Holt: In that case perhaps the ERD2WUtilities may help you. /** Utility to return

Re: JDK really necessary for deployment?

2012-10-26 Thread Nilton Lessa
Yeah, these are good points, Ramsey. But I am wondering if the JDK is a requirement for running the applications. In the past, at least in windows deployment, it was a requirement. http://en.wikibooks.org/wiki/WebObjects/Web_Applications/Deployment/Windows#Before_you_start regarding the SDK

Re: Programmatically finding an entity's subclasses

2012-10-26 Thread Johnny Miller
Nothing could be sadder than an Irishman in a dry country. Sounds like some kind of war crime to me. Another question: Once I have the EOEntity is there any way I can access a static method or field for that class? Thanks in advance, Johnny On Oct 26, 2012, at 9:05 AM, Chuck Hill

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread David Holt
This is just a guess, but I think you might be approaching this inappropriately. I wonder if you need to edit Courses from the Student relationship? Or the Professor relationship? You probably need to have one interface for Courses where you edit/create them separately from Students or

Re: Programmatically finding an entity's subclasses

2012-10-26 Thread Kieran Kelleher
Johnny, An Irishman would never live in a dry country! I think David A would rather be in Ireland than where he is at though Meanwhile, it is 4pm Friday here in non-dry Florida, and I have a head cold that is ruining my productivity, so I think it is time to savor the very unique and rare

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread Ramsey Gurley
Are you sure there's no session? What do you get when you enter session.sessionID? On Oct 26, 2012, at 12:05 PM, Fabian Peters wrote: Thanks Ramsey, just tried this but to no avail. I've tried both session.context.page.d2wContext.entity.name

Re: Programmatically finding an entity's subclasses

2012-10-26 Thread Chuck Hill
On 2012-10-26, at 12:33 PM, Johnny Miller wrote: Nothing could be sadder than an Irishman in a dry country. Sounds like some kind of war crime to me. Irish?!!? Another question: Once I have the EOEntity is there any way I can access a static method or field for that class? For the

Re: Programmatically finding an entity's subclasses

2012-10-26 Thread Johnny Miller
I never met David A. (although I really appreciate his sense of humor) but somehow I thought he was Irish - my mistake. The latter, an EO of that entity. I have an abstract entity and I want to get a pretty print name for the sub-entities. On Oct 26, 2012, at 10:20 AM, Chuck Hill

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread Fabian Peters
Unfortunately, yes. I had already tried another key on session. I'm now using a conditional breakpoint for the keypath in ERD2WUtilities' contextValueForKeyNoInferenceNoException method. When the creation page is generated, everything's fine. But when the edit page is generated, I get a null

Re: Programmatically finding an entity's subclasses

2012-10-26 Thread Chuck Hill
On 2012-10-26, at 1:25 PM, Johnny Miller wrote: I never met David A. (although I really appreciate his sense of humor) but somehow I thought he was Irish - my mistake. He is a Norseman by way Minnesota. Ah Yup! Calling him Irish is going to give Kieran nightmares! The latter, an EO of

Re: Programmatically finding an entity's subclasses

2012-10-26 Thread Chuck Hill
Ah, now you are just being cruel to David. And me! On 2012-10-26, at 1:17 PM, Kieran Kelleher wrote: Johnny, An Irishman would never live in a dry country! I think David A would rather be in Ireland than where he is at though Meanwhile, it is 4pm Friday here in non-dry Florida,

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread David LeBer
Fabian, If you cannot access the session from within any part of the D2W system that is just whacked. D2W is heavily dependent on a session. Yes, you need to dig deeper, I for one, am scratching my head. D On 2012-10-26, at 4:26 PM, Fabian Peters lists.fab...@e-lumo.com wrote:

Re: JDK really necessary for deployment?

2012-10-26 Thread Henrique Gomes
I can say I had an app running on JRE for several months, and only found out about it precisely because I needed to use jvisualvm and it wasn't there :-) Henrique Gomes On 26/10/2012, at 19:32, Ramsey Gurley wrote: A client making suggestions about a deployment config is like airline

Re: Programmatically finding an entity's subclasses

2012-10-26 Thread Johnny Miller
I suspect that you are just confusing yourself and making a trivial thing hard. If you have an EO, you can just Well, it wouldn't be the first time that is for sure. Maybe I'm just doing something that is wrong but I have a piece of code that I want to work even if I add more subclasses

Re: Programmatically finding an entity's subclasses

2012-10-26 Thread Chuck Hill
On 2012-10-26, at 1:50 PM, Johnny Miller wrote: I suspect that you are just confusing yourself and making a trivial thing hard. If you have an EO, you can just Well, it wouldn't be the first time that is for sure. Maybe I'm just doing something that is wrong but I have a piece of code

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread Fabian Peters
Well, I've been able to find where it returns null for the session, but I have no idea why. It's line 50 of ERD2WUtilities: // This prevents the dreaded KeyValueCoding null object exception, for say key paths: object.entityName // Should just return null instead of throwing.

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread Chuck Hill
For the keypath you are showing, how can i == -1? Does that keypath have some character other character than .? Looks like a period, but isn't? On 2012-10-26, at 2:48 PM, Fabian Peters wrote: Well, I've been able to find where it returns null for the session, but I have no idea why. It's

Re: JDK really necessary for deployment?

2012-10-26 Thread Nilton Lessa
Thank you Henrique for sharing your experience. Cheers. Nilton On 26/10/2012, at 18:33, Henrique Gomes li...@farol.pt wrote: I can say I had an app running on JRE for several months, and only found out about it precisely because I needed to use jvisualvm and it wasn't there :-) Henrique

Re: JDK really necessary for deployment?

2012-10-26 Thread Paul Hoadley
On 27/10/2012, at 4:12 AM, Nilton Lessa nle...@moleque.com.br wrote: After several years using WebObjects, posting this questions makes me a bit ashamed. :-) But the question is: to deploy WO application in CentOS, Tomcat based, is necessary to install a JDK? Or the JRE would be enough?

Re: Lazy synchronization and multiple subcomponents

2012-10-26 Thread Tim Worman
Miguel: I often use lazy synchronization and I haven't typically needed any kind of component initialization to correct problems. Can you give us a code snippet for the lazy synchronization looks for your subcomponents? Tim UCLA GSEIS On Oct 26, 2012, at 4:16 PM, Miguel Torres

Re: D2W: getting the root pageConfiguration

2012-10-26 Thread Ramsey Gurley
That tells you it's null, but not how it got that way. When you set the breakpoint there, is your context an instance of ERD2WContext? It should be. Assuming that is the case, then put breakpoints in ERD2WContext's constructors and see where it's getting created and what is creating it without