ICEfaces
  1. ICEfaces
  2. ICE-9355

Warnings logged to client when namespace.captureSubmit fails to find our hidden forms

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.3, EE-3.3.0.GA
    • Fix Version/s: EE-3.3.0.GA, 4.0.BETA, 4.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Portals
    • Assignee Priority:
      P2

      Description

      The problem is the following is logged to the browser's client console (this is from Chrome, other browsers may report it differently):

      Uncaught TypeError: Cannot read property 'submit' of null

      The error occurs in this function:

          namespace.captureSubmit = function(id) {
              var f = document.getElementById(id);
              f.nativeSubmit = f.submit;
      ...

      The id passed in is non-null but doesn't match anything in the current page. I'm unable to see any functional impact - perhaps because captureSubmit isn't necessary for those hidden forms?

      The problem is intermittent and doesn't happen every time but to reproduce I have several different portal pages with multiple portlets. I interact with one or more portlets on a page and then move to a different page. Repeating this eventually shows the issue.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #36379 Tue Jun 25 16:03:55 MDT 2013 mircea.toma ICE-9355 Mark *-retrieve-update and *-single-submit form components as not needing capture submit.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/BridgeFormsSetup.java

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: