• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Safari - TypeError on first submit

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I keep getting this error on the first submit:

Caught Exception: TypeError: Undefined value Submit aborted



Then second submit works as it suppose to be.

This seems to happen in most of the page with multiple submit button. All of these pages work fine in IE and Firefox. Can anyone give me some light.

 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is that a JS error? If so, then the whole JSF code and story is a bit irrelevant now.

As JS runs entirely at the client side, you need investigate the generated HTML/CSS/JS/whateverClientSide output, determine the root cause, trackback it to the JSF component in the server side and fix it accordingly.
 
Fergus Tam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, the error came from javascript. Trying to locate the component that is causing the problem
 
Fergus Tam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the js error disappear when i remove one of the radio button. Trying lots of things but none of them worked out.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is hard to help you without knowing the details. Your questions and statements are way too general and high-level.

What piece of JS code caused the error?
What piece of JSF code generated the JS code?

What JSF implementation/version are you using? If I recall correctly, there was some JS bug related to document.forms in Safari fixed around Mojarra 1.2_08. Getting the latest Mojarra version may solve this problem.
 
Fergus Tam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The error comes from this js code



This component is causing the problem. When I remove one of the selectOneRadio, the error is gone.

 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about the JSF implementation/version used?

Fergus Tam wrote:The error comes from this js code



Is that own code or code from a JSF component? If own, just fix it accordingly. If from a component, report a bug to the boys behind the component. I have never seen the "bns-h" component library, so I can't tell much about them.
 
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic