To handle a very similar situation I subclassed CSpPage, overrode mapEvent()
with the following code and made my pages inherit from this.
============================================================================
=====
protected void mapEvent(String eventName,
String currMethodName,
String sourceName,
boolean initEventsOnly) {
int idx = currMethodName.lastIndexOf('_');
if ((idx > -1) &&
(currMethodName.substring(idx+1,idx+3).equals("on"))){
String fieldName = "*"+currMethodName.substring(0, idx);
if (getDisplayField(fieldName)!=null)
super.mapEvent(eventName, currMethodName, sourceName,
initEventsOnly);
}
// Else forget it, the field is not there. By default
// ND would throw a stupid warning message
}
// else ignore, ND has no business to map those events.
============================================================================
======
Aby
TeamND
> -----Original Message-----
> From: David Flynn [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 25, 2000 8:47 AM
> To: [EMAIL PROTECTED]
> Subject: [ND] Re: Catching exceptions on startup
>
>
> An example of one of these messages is:
>
> ndACGemployee.scProjectListPage.mapEvent: Can't map
> 'onVW_ACG_PROJECT_INTERNAL_PROJ_NUMBERWebEvent'. The source
> 'onVW_ACG_PROJECT_INTERNAL_PROJ' can't be found
>
>
> David Flynn wrote:
>
> > I have a project that displays numerous error messages on
> the web page
> > when user first loads a page in that project. The errors
> mostly occur
> > when an event has been orphaned by the object.
> >
> > My question is not how to fix these errors, but how to
> suppress or catch
> > these error messages so that while I am fixing them, the
> messages will
> > not display on the web pages.
>
>
> ______________________________________________________________
> ___________
> 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]
>
_________________________________________________________________________
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]