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 
>> 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 anyway.
> 
> It does.
> 
> Chuck
> 
> 
>> 
>> Ramsey
>> 
>> 
>> On Nov 5, 2011, at 10:06 AM, David LeBer wrote:
>> 
>>> 
>>> 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().editPageForNewObjectWithEntityNamed(entityName, session());
>>>>          epi.setNextPage(session().context().page());
>>>>          nextPage = (WOComponent) epi;
>>>>      } catch (IllegalArgumentException e) {
>>>>          ErrorPageInterface epf = D2W.factory().errorPage(session());
>>>>          epf.setMessage(e.toString());
>>>>          epf.setNextPage(session().context().page());
>>>>          nextPage = (WOComponent) epf;
>>>> 
>>>>      }
>>>>      return nextPage;
>>>>  }
>>> 
>>> Same way you should for non D2W, in the EO's awakeFromInsertion();
>>> 
>>> --
>>> David LeBer
>>> Codeferous Software
>>> 'co-def-er-ous' adj. Literally 'code-bearing'
>>> site:       http://codeferous.com
>>> blog:       http://davidleber.net
>>> profile:    http://www.linkedin.com/in/davidleber
>>> twitter:    http://twitter.com/rebeld
>>> --
>>> Toronto Area Cocoa / WebObjects developers group:
>>> http://tacow.org
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> http://lists.apple.com/mailman/options/webobjects-dev/ramseygurley%40gmail.com
>>> 
>>> This email sent to [email protected]
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
>> 
>> This email sent to [email protected]
> 
> -- 
> Chuck Hill             Senior Consultant / VP Development
> 
> Practical WebObjects - for developers who want to increase their overall 
> knowledge of WebObjects or who are trying to solve specific problems.    
> http://www.global-village.net/products/practical_webobjects
> 
> 
> 
> 
> 
> 
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to