Re: D2W Exception Handling

2012-03-13 Thread Fabian Peters
Hi Ramsey, Am 13.03.2012 um 18:20 schrieb Ramsey Gurley: > On Mar 13, 2012, at 5:53 AM, Fabian Peters wrote: > >> Hi Ramsey, >> >> Am 13.03.2012 um 01:49 schrieb Ramsey Gurley: >> >>> On Mar 12, 2012, at 4:21 PM, Fabian Peters wrote: >>> Hi Ramsey, >> swallowed in ERD2WPage sin

Re: D2W Exception Handling

2012-03-13 Thread Ramsey Gurley
On Mar 13, 2012, at 5:53 AM, Fabian Peters wrote: > Hi Ramsey, > > Am 13.03.2012 um 01:49 schrieb Ramsey Gurley: > >> On Mar 12, 2012, at 4:21 PM, Fabian Peters wrote: >> >>> Hi Ramsey, >>> > swallowed in ERD2WPage since d2wContext().propertyKey() is null. Setting > the propertyKey f

Re: D2W Exception Handling

2012-03-13 Thread Fabian Peters
Hi Ramsey, Am 13.03.2012 um 01:49 schrieb Ramsey Gurley: > On Mar 12, 2012, at 4:21 PM, Fabian Peters wrote: > >> Hi Ramsey, >> swallowed in ERD2WPage since d2wContext().propertyKey() is null. Setting the propertyKey from the exception resolves this: if (d2wCont

Re: D2W Exception Handling

2012-03-12 Thread Ramsey Gurley
On Mar 12, 2012, at 4:21 PM, Fabian Peters wrote: > Hi Ramsey, > >>> swallowed in ERD2WPage since d2wContext().propertyKey() is null. Setting >>> the propertyKey from the exception resolves this: >>> >>> if (d2wContext().propertyKey() == null && erv.propertyKey() != >>> null) { >>

Re: D2W Exception Handling

2012-03-12 Thread Fabian Peters
Hi Ramsey, >> swallowed in ERD2WPage since d2wContext().propertyKey() is null. Setting the >> propertyKey from the exception resolves this: >> >> if (d2wContext().propertyKey() == null && erv.propertyKey() != >> null) { >> d2wContext().setPropertyKey(erv.propertyKe

Re: D2W Exception Handling

2012-03-12 Thread Ramsey Gurley
On Mar 12, 2012, at 1:00 PM, Fabian Peters wrote: > Hi all, > > I'm trying to handle validation of a mandatory to-one relationship using > modern look. The relationship has to be set on a tab of a wizard creation > page and I want to show an error right away instead of when the user has > reac

Re: D2W Exception Handling

2012-03-12 Thread Fabian Peters
Hi all, I'm trying to handle validation of a mandatory to-one relationship using modern look. The relationship has to be set on a tab of a wizard creation page and I want to show an error right away instead of when the user has reached the final page and validateForSave is getting called. I'm

Re: D2W Exception Handling

2011-08-26 Thread Ramsey Gurley
On Aug 26, 2011, at 2:05 AM, David Avendasora wrote: > Hey D2Wers, > > So, I have business logic that executes in the setter of one of my attributes. In the setter? Any reason why you don't use validate() or maybe validateFor*()? I've learned the hard way that business logic in a setter is a

D2W Exception Handling

2011-08-26 Thread David Avendasora
Hey D2Wers, So, I have business logic that executes in the setter of one of my attributes. It's checking to make sure that at least one of a set of objects has a flag set. If you try to remove the flag off the last object it should not allow it and throw and exception. All that works just fine