Re: How do I initialize an Entity attribute upon creation in D2W?

2011-11-05 Thread James Cicenia
That is kind of where I was originally hunting. Good to know this too. Thanks James On Nov 5, 2011, at 4:34 PM, Philippe Rabier wrote: > NOProject obj = (NOProject) ((ERD2WPage)nextPage).object(); smime.p7s Description: S/MIME cryptographic signature _

Re: How do I initialize an Entity attribute upon creation in D2W?

2011-11-05 Thread Philippe Rabier
James, if you use Modern Look, you know there is a navigation controller (and not a navigation manager) set by the session. In the NavigationController class, we have this methods: public WOComponent newObjectForEntityName(final String entityName) { WOComponent nextPage = null; try {

Re: How do I initialize an Entity attribute upon creation in D2W?

2011-11-05 Thread James Cicenia
Sometimes you forget where the heck you are when in the land of ERMODERXERD2W. That was easy. Thanks James On Nov 5, 2011, at 12:33 PM, Chuck Hill wrote: > > On 2011-11-05, at 10:13 AM, Ramsey Gurley wrote: > >> Or ERXGenericRecord's init() method. init() is intended to be used in place >>

Re: How do I initialize an Entity attribute upon creation in D2W?

2011-11-05 Thread Chuck Hill
On 2011-11-05, at 10:13 AM, Ramsey Gurley wrote: > Or ERXGenericRecord's init() method. init() is intended to be used in place > of awakeFromInsertion() and fixes a problem where awakeFromInsertion() is > called twice when cascade deletes fail to validate and roll back… > > I read that somewh

Re: How do I initialize an Entity attribute upon creation in D2W?

2011-11-05 Thread Ramsey Gurley
Or ERXGenericRecord's init() method. init() is intended to be used in place of awakeFromInsertion() and fixes a problem where awakeFromInsertion() is called twice when cascade deletes fail to validate and roll back… I read that somewhere. I don't know if it still applies in 5.4.3, but I use it

Re: How do I initialize an Entity attribute upon creation in D2W?

2011-11-05 Thread David LeBer
On 2011-11-05, at 12:23 PM, James Cicenia wrote: > The subject line is the question. > > I use the standard factory: > > public WOComponent newObjectForEntityName(String entityName) { > WOComponent nextPage = null; > try { > EditPageInterface epi = > D2W.factory

How do I initialize an Entity attribute upon creation in D2W?

2011-11-05 Thread James Cicenia
The subject line is the question. I use the standard factory: public WOComponent newObjectForEntityName(String entityName) { WOComponent nextPage = null; try { EditPageInterface epi = D2W.factory().editPageForNewObjectWithEntityNamed(entityName, session());

Lion Server deployment

2011-11-05 Thread Stavros Panidis
SOLVED! The only missing was Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf from httpd.conf (I don't know if I had to add this line manually or it should be in httpd.conf) Anyway, I am happy. Many thanks for all Stavros > > Message: 3 > Date: Wed, 02 Nov 2011 11:48: