ICEfaces
  1. ICEfaces
  2. ICE-5661

ICEfaces script elements added to the form change location causing unnecessary updates

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha2
    • Fix Version/s: 2.0-Alpha3, 2.0.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces 2 JSF 2

      Description

      Using system event listeners, we automatically attach the following two <script> elements to h:forms:

      <script type='text/javascript'>ice.captureSubmit('form');</script>
      <script type='text/javascript'>ice.captureEnterKey('form');</script>

      During the initial rendering of the page, these elements are typically at the bottom of the form markup. However, during the next render phase, they are placed at the top of the form, causing the DOM diff to identify more updates than are really necessary.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #21303 Fri Apr 23 14:06:23 MDT 2010 deryk.sinotte ICE-5661: place form scripts specifically as the first children to avoid them jumping around
        Files Changed
        Commit graph MODIFY /icefaces/scratchpads/glimmer/core/src/main/java/org/icefaces/event/EnterKeySubmit.java
        Commit graph MODIFY /icefaces/scratchpads/glimmer/core/src/main/java/org/icefaces/event/RedirectSubmit.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: