Using composition instead of inheritance

2012-05-29 Thread Paul Hoadley
Hello, I'm after some general modelling advice. I've been using inheritance for years to model app-specific versions of a framework-level Person (user) entity. This works well enough, though it presents the same small headaches time after time for each new application. I also have a

Maven Plugin

2012-05-29 Thread Ron X
hi for all, Maven 3 supports parallel building - -T number_of_threads option. but wolifecycle-plugin is not threadSafe: [WARNING] * [WARNING] * Your build is requesting parallel execution, but project * [WARNING] * contains

Re: D2W: Selectors for enum types?

2012-05-29 Thread Paul Hoadley
On 25/05/2012, at 1:14 AM, Ramsey Gurley wrote: On May 24, 2012, at 3:03 AM, Paul Hoadley wrote: = restrictedChoiceKey = object.availableStatuses where availableStatuses() is a method on Provision that returns 'new NSArrayStatus(Status.values());'. I'm getting an

Re: ERJaveMail

2012-05-29 Thread Mike Schrag
my guess is that your regex pattern for er.javamail.emailPattern doesn't work. i'm not even going to try debugging that one, though. what's wrong with the pattern that's built into erjavamail? On May 29, 2012, at 2:43 AM, Ron X ron.x.by...@gmail.com wrote: hi, i have some strange error on

Re: D2W: Selectors for enum types?

2012-05-29 Thread Ramsey Gurley
A create page should have an object. Depending on how you created the page, you may have forgotten to set the object though. Ramsey On May 29, 2012, at 4:11 AM, Paul Hoadley wrote: On 25/05/2012, at 1:14 AM, Ramsey Gurley wrote: On May 24, 2012, at 3:03 AM, Paul Hoadley wrote: =

Re: Using composition instead of inheritance

2012-05-29 Thread Ken Anderson
Paul, My first question would be - how do you actually benefit from having this data separated? Is there a reason that you don't just create a new entity for the new project that can represent the entire organization? If the reason is that you have code that you would typically use in more

Re: Using composition instead of inheritance

2012-05-29 Thread Mike Schrag
This is the problem that Partial Entities were attempting to solve ( http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/extensions/partials/package-summary.html ). I would consider it experimental, but if anyone wants to take it and finish it, go for it. ms On May 29, 2012, at 1:40

Re: New Tomcat 6 Deployment

2012-05-29 Thread D Tim Cummings
I have noticed these messages too and would like to know if there is anything that can be done about them Tim On 29/05/2012, at 23:31, Ron Lift rpgi...@gmail.com wrote: At work we are migrating from RHEL 5 to RHEL 6 and also upgrading to Tomcat 6. When I deploy the current application

questions on some moo tools components

2012-05-29 Thread Tim Worman
Hello all: I've been testing out some of the Moo Tools components when I have a chance. Today I've been trying some of the options for in place text fields. I just want to see if a problem I'm having is actually a problem with the operator. :-) I've inserted the fancy in place editor into my

Re: questions on some moo tools components

2012-05-29 Thread Johnny Miller
Hi Tim, I'm battling the flu right now. So I'm about ready to go crashing into my keyboard but I believe it's in MTWonder.js file: var MTAjaxInPlace = { saveFunctionName: function(id) { return window. + id + Save; }, cancelFunctionName:

Re: questions on some moo tools components

2012-05-29 Thread Tim Worman
Johnny: Feel better. That's what I needed. I kept trying to inspect the page but couldn't find how the functions were being generated. This makes sense. Thanks much! Tim On May 29, 2012, at 1:14 PM, Johnny Miller jlmil...@kahalawai.com wrote: Hi Tim, I'm battling the flu right now. So

Re: Maven Plugin

2012-05-29 Thread Henrique Prange
Hi Ron, https://github.com/wolips/wolips/tree/master/maven2/maven-wolifecycle-plugin Cheers, Henrique On 29/05/2012, at 04:13, Ron X wrote: hi for all, Maven 3 supports parallel building - -T number_of_threads option. but wolifecycle-plugin is not threadSafe: [WARNING]

Re: Using composition instead of inheritance

2012-05-29 Thread Paul Hoadley
Hi Ken, On 30/05/2012, at 3:10 AM, Ken Anderson wrote: My first question would be - how do you actually benefit from having this data separated? I don't. It's just a side effect of wanting to have an app-specific EO based on a more general framework-level EO. Is there a reason that you

Re: Using composition instead of inheritance

2012-05-29 Thread Mike Schrag
In the absence of the fancier solution (something like partial entities), I think I would make an app variant of the entity (where the class of the app one extends the class of the framework one) and model-rewrite the non-app variant to be the app variant. ms On May 29, 2012, at 6:22 PM, Paul

Re: Using composition instead of inheritance

2012-05-29 Thread Paul Hoadley
On 30/05/2012, at 7:55 AM, Mike Schrag wrote: In the absence of the fancier solution (something like partial entities), I think I would make an app variant of the entity (where the class of the app one extends the class of the framework one) and model-rewrite the non-app variant to be the

Re: Using composition instead of inheritance

2012-05-29 Thread Mike Schrag
This is the problem that Partial Entities were attempting to solve ( http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/extensions/partials/package-summary.html ). I would consider it experimental, but if anyone wants to take it and finish it, go for it. By experimental, is it

Re: D2W: Selectors for enum types?

2012-05-29 Thread Paul Hoadley
Hi Ramsey, On 30/05/2012, at 1:10 AM, Ramsey Gurley wrote: A create page should have an object. Depending on how you created the page, you may have forgotten to set the object though. I've just modified the MainNavigationController class that ships with the ModernLook template. Eventually

Re: Using composition instead of inheritance

2012-05-29 Thread Mike Schrag
FrameworkPerson (and all code in the framework refers to that) and AppPerson (extends FrameworkPerson class, and all app code refers to that). When your models load, replace FrameworkPerson entity with AppPerson entity, so fetches for FrameworkPerson are secretly the equivalent to what

Re: D2W: Selectors for enum types?

2012-05-29 Thread Ramsey Gurley
That just creates the edit page. I believe you still need to epi.setObject(). On May 29, 2012, at 3:30 PM, Paul Hoadley wrote: Hi Ramsey, On 30/05/2012, at 1:10 AM, Ramsey Gurley wrote: A create page should have an object. Depending on how you created the page, you may have forgotten to

Re: Using composition instead of inheritance

2012-05-29 Thread Paul Hoadley
On 30/05/2012, at 8:01 AM, Mike Schrag wrote: FrameworkPerson (and all code in the framework refers to that) and AppPerson (extends FrameworkPerson class, and all app code refers to that). When your models load, replace FrameworkPerson entity with AppPerson entity, so fetches for

Re: D2W: Selectors for enum types?

2012-05-29 Thread Ramsey Gurley
Oh, sorry. Misread the method name. I read it as editPageWithEntityNamed. Yes, your object should exist. What's the stack trace again? On May 29, 2012, at 4:32 PM, Paul Hoadley wrote: Hi Ramsey, On 30/05/2012, at 8:32 AM, Ramsey Gurley wrote: That just creates the edit page. I believe

Re: D2W: Selectors for enum types?

2012-05-29 Thread Paul Hoadley
On 30/05/2012, at 9:11 AM, Ramsey Gurley wrote: Oh, sorry. Misread the method name. I read it as editPageWithEntityNamed. Yes, your object should exist. What's the stack trace again? May 30 09:13:20 SurvStarAdmin[60371] WARN NSLog (CreateOrganisation) -

Re: D2W: Selectors for enum types?

2012-05-29 Thread David Holt
Here are the rules I'm using that relate to creating my entity with an enum attribute: 60 : destinationEntity.name = 'Type' = localizeDisplayKeys = true [com.webobjects.directtoweb.BooleanAssignment] 65 : (task = 'edit' and propertyKey = 'type') = componentName = ERD2WEditToOneRelationship

Re: D2W: Selectors for enum types?

2012-05-29 Thread David Holt
On 2012-05-29, at 5:13 PM, David Holt wrote: Here are the rules I'm using that relate to creating my entity with an enum attribute: 60 : destinationEntity.name = 'Type' = localizeDisplayKeys = true [com.webobjects.directtoweb.BooleanAssignment] 65 : (task = 'edit' and propertyKey =

Re: D2W: Selectors for enum types?

2012-05-29 Thread Ramsey Gurley
It shouldn't have made it to the dataSource() method. You should log what rules are firing for restrictedChoiceKey. Open your log4j page and set up a d2w rule logger for that key. See what the console tells you when you load the page. Ramsey On May 29, 2012, at 4:49 PM, Paul Hoadley wrote:

Re: ERJaveMail

2012-05-29 Thread Cheong Hee (Gmail)
This is only what I got in emailPattern in ERJavaMail properties: ^.*?@.*$ Is this what you are having to as default? Cheers - Original Message - From: Mike Schrag To: Ron X Cc: WebObjects Development Sent: Tuesday, May 29, 2012 9:19 PM Subject: Re: ERJaveMail my