- From: Steven Pemberton <Steven.Pemberton@cwi.nl>
- Date: Wed, 16 Apr 2014 15:08:48 +0200
- To: "Forms WG" <public-forms@w3.org>, "Steven Pemberton" <Steven.Pemberton@cwi.nl>
- Cc: "public-xformsusers@w3.org" <public-xformsusers@w3.org>
And, just for completeness, if you don't want to get the submission error, you can always disable the default action: <action ev:event="xforms-submit-error" ev:defaultAction="cancel"/> Steven On Wed, 16 Apr 2014 14:55:47 +0200, Steven Pemberton <Steven.Pemberton@cwi.nl> wrote: > Erik's recent message reminded me of an issue I have with the > xforms-submit-error event. > > Currently the default action for a submission error is to do nothing: > https://www.w3.org/MarkUp/Forms/wiki/XForms_2.0#The_xforms-submit-error_Event > > Default Action: None > > This seems to me to be terribly user-unfriendly. Nothing happens, and it > is hard to find out what's (not) happening. > > I would like to propose that the default action be a message, with > relevant context information, such as: > > Submission failed > > error-type: result-media-type > error-message: application/pdf > resource-uri: http://example.com/submit > > (Of course, an implementation could make this even friendlier > > Submission Failed > > Submission to "http://example.com/submit" failed, with error-type > "result-media-type". > This means the server sent data of a type that cannot be processed. The > type reported was "application/pdf". > ) > > Steven
Received on Wednesday, 16 April 2014 13:09:24 UTC