[prev in list] [next in list] [prev in thread] [next in thread]
List: myfaces-dev
Subject: [jira] [Commented] (MYFACES-3751) Log exception on submitForm in Javascript
From: "Werner Punz (JIRA)" <dev () myfaces ! apache ! org>
Date: 2018-10-29 9:00:00
Message-ID: JIRA.12663376.1376385243000.222620.1540803600364 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/MYFACES-3751?page=com.atlassian.jira.plugi \
n.system.issuetabpanels:comment-tabpanel&focusedCommentId=16666874#comment-16666874 ] \
Werner Punz commented on MYFACES-3751:
--------------------------------------
Afair expected behavior, script errors on the JSF side are only exposed in dev mode \
or if an error handler is explicitely set.
I think it was part of the spec... but I really have to look this up.
> Log exception on submitForm in Javascript
> -----------------------------------------
>
> Key: MYFACES-3751
> URL: https://issues.apache.org/jira/browse/MYFACES-3751
> Project: MyFaces Core
> Issue Type: Improvement
> Affects Versions: 2.1.12
> Reporter: dennis hoersch
> Priority: Major
>
> I was looking for a bug in our scripts happening on submit of the form.
> Unfortunately the JSF-Javascript submitting the form (myfaces.oam.submitForm()) is \
> swallowing exceptions that occur while submitting. try {
> form.submit();
> }
> catch(e) {
> }
> Maybe one could do some kind of logging there to help debugging.
> try {
> form.submit();
> }
> catch(e) {
> console.error(e); //?
> }
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic