Hi All!
I have a Subclassed all of ND CSpVisuals (CSpTextBox, CSpComboBox etc) and
created Custom Event listeners, which force the onValidationFailureEvent to
call a generic Errorpage. This has worked perfecly in our projects in ND4,
but now when converting to ND5 (SP2) I get a Class Cast Exception when
instanciating the Errorpage.....
The code below shows what causes the Exception
pgErrorPage pg = (pgErrorPage) CSpider.getPage("MyProject.TheErrorPage");
command = pg.load(param1, param2, param3);
My "load" methods are a few overloaded methods which take parameters, and
makes the whole error process seamless and simple in all our projects. the
only thing the programmers need to do is to do a this.validate() in the page
and the Visuals report its own errors by calling the errorpage with an
appropriate errormessage.
Hope my description rewards me with some hints!
/Eje Thorarinsson
_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]