Status

Core Graveyard
XForms
--
enhancement
RESOLVED WONTFIX
12 years ago
a year ago

People

(Reporter: surkov, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

12 years ago
When error is occured during xforms processing then we get exception in js console and error dialog. It would be fine if I will be able to change default behaviour on error. F.x. I want to have different way than error dialog to inform user about errors (or I don't want to inform him at all :) ). We can have error service component for thease proposes that allows to override default action on error. I guess it would be helpfull in application development.

F.x.
inteface nsIXFormsErrorService : public nsISupports
{
  DOMString errorDialogURL;
}
or something like.

Comment 1

12 years ago
(In reply to comment #0)
> When error is occured during xforms processing then we get exception in js
> console and error dialog. It would be fine if I will be able to change default
> behaviour on error. F.x. I want to have different way than error dialog to
> inform user about errors (or I don't want to inform him at all :) ). We can
> have error service component for thease proposes that allows to override
> default action on error. I guess it would be helpfull in application
> development.
> 
> F.x.
> inteface nsIXFormsErrorService : public nsISupports
> {
>   DOMString errorDialogURL;
> }
> or something like.
> 

On XFrosm errors/exceptions you get an event, so
<xf:message ev:event="xforms-bind-exception" level="modal"> ...</xf:message>

So it would only be necessary for stuff that does not trigger events. I would rather introduce a new mozilla-specific event than an interface.
(Reporter)

Comment 2

12 years ago
(In reply to comment #1)

> On XFrosm errors/exceptions you get an event, so
> <xf:message ev:event="xforms-bind-exception" level="modal"> ...</xf:message>
> So it would only be necessary for stuff that does not trigger events. I would
> rather introduce a new mozilla-specific event than an interface.
> 

Ok, I can show my custom error dialog by xf:message using. How can I turn off the error dialog from xforms package? And why is mozilla-specific event needed?

Comment 3

12 years ago
(In reply to comment #2)
> (In reply to comment #1)
> 
> > On XFrosm errors/exceptions you get an event, so
> > <xf:message ev:event="xforms-bind-exception" level="modal"> ...</xf:message>
> > So it would only be necessary for stuff that does not trigger events. I would
> > rather introduce a new mozilla-specific event than an interface.
> > 
> 
> Ok, I can show my custom error dialog by xf:message using. How can I turn off
> the error dialog from xforms package?

You mean the fatal error dialog? The user have to do that through the preferences:
http://developer.mozilla.org/en/docs/XForms:User_preferences

I would like to refine the error dialog in general though (see bug 323025)

> And why is mozilla-specific event needed?

That is only needed if you want notification on errors that do not trigger an XForms (specification) event.

Updated

12 years ago
Assignee: aaronr → xforms
RIP xforms
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.