RE: how to catch and throw exceptions in cocoon2.1.10 (javascript)

2007-01-10 Thread Robby Pelssers, AGP
Hi Jason, I tried out your proposal like below: try { if(name != null) { this.wForm.lookupWidget(name).setValue(name) this.version = CustomizableClassBinding.save(name, this.wForm, this.version); } }

FW: how to catch and throw exceptions in cocoon2.1.10 (javascript)

2007-01-10 Thread Robby Pelssers, AGP
FYI -Oorspronkelijk bericht- Van: Robby Pelssers, AGP [mailto:[EMAIL PROTECTED] Verzonden: woensdag 10 januari 2007 10:39 Aan: 'Bruno Dumon' Onderwerp: RE: how to catch and throw exceptions in cocoon2.1.10 (javascript) Thanx Bruno, Now the code below try {

how to catch and throw exceptions in cocoon2.1.10 (javascript)

2007-01-09 Thread Robby Pelssers, AGP
Hi, I'm facing a problem that my old javascript file no longer works properly with constructions like instanceof, getClass(), throw. Can someone point me out how to do this? try { } catch (ex) { if (ex instanceof Packages...) { //Do something 1 } else if

Re: how to catch and throw exceptions in cocoon2.1.10 (javascript)

2007-01-09 Thread Jason Johnston
Robby Pelssers, AGP wrote: Hi, I'm facing a problem that my old javascript file no longer works properly with constructions like instanceof, getClass(), throw. Can someone point me out how to do this? try { } catch (ex) { if (ex instanceof Packages...) { //Do