aspose file tools*
The moose likes JSF and the fly likes Safari - TypeError on first submit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Safari - TypeError on first submit" Watch "Safari - TypeError on first submit" New topic
Author

Safari - TypeError on first submit

Fergus Tam
Greenhorn

Joined: Dec 29, 2008
Posts: 4
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.

Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Dec 29, 2008
Posts: 4
Yes, the error came from javascript. Trying to locate the component that is causing the problem
Fergus Tam
Greenhorn

Joined: Dec 29, 2008
Posts: 4
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

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Dec 29, 2008
Posts: 4
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

Joined: Oct 08, 2006
Posts: 2458
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.
 
jQuery in Action, 2nd edition
 
subject: Safari - TypeError on first submit