ICEfaces
  1. ICEfaces
  2. ICE-10436

icecore:idleMonitor - add ability to configure user events that are monitored for idleness

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1, EE-3.3.0.GA_P04
    • Component/s: ICECORE-Components
    • Labels:
      None
    • Environment:
      jsf 2 icecore

      Description

      add the ability to ignore the mouseover event (and possibly other mouse events) which defines browser being idle

        Activity

        Hide
        Mircea Toma added a comment - - edited

        Introduce optional parameter in ice.onUserInactivity function to define the list of events used for detecting user activity. Modified IdleMonitor component to make use of this new parameter. The component acquires the list from the optional attribute 'userActiveEvents'. For example instead of the default "keydown mouseover" one could use "click keypress".

        Show
        Mircea Toma added a comment - - edited Introduce optional parameter in ice.onUserInactivity function to define the list of events used for detecting user activity. Modified IdleMonitor component to make use of this new parameter. The component acquires the list from the optional attribute 'userActiveEvents'. For example instead of the default "keydown mouseover" one could use "click keypress".
        Hide
        Mircea Toma added a comment - - edited
        Show
        Mircea Toma added a comment - - edited The wiki docs ( http://www.icesoft.org/wiki/display/ICE/JavaScript+Client+API and http://www.icesoft.org/wiki/display/ICE/idleMonitor ) and TLD were also updated.
        Hide
        Mircea Toma added a comment - - edited

        The ice.onUserInactivity function used by icecore:idleMonitor relies on event bubbling to detect the events that occurs to the elements in the document. But there events like 'blur' and 'focus' that do not bubble up (see more here: http://www.quirksmode.org/dom/events/blurfocus.html ). These kind of events cannot be used in the list of 'userActiveEvents'.

        Show
        Mircea Toma added a comment - - edited The ice.onUserInactivity function used by icecore:idleMonitor relies on event bubbling to detect the events that occurs to the elements in the document. But there events like 'blur' and 'focus' that do not bubble up (see more here: http://www.quirksmode.org/dom/events/blurfocus.html ). These kind of events cannot be used in the list of 'userActiveEvents'.
        Hide
        Liana Munroe added a comment -

        Removed unneeded QA test case.

        Show
        Liana Munroe added a comment - Removed unneeded QA test case.
        Hide
        Ken Fyten added a comment -

        Re-opened to backport this improvement to the icefaces 3.3 maintenance branch.

        Show
        Ken Fyten added a comment - Re-opened to backport this improvement to the icefaces 3.3 maintenance branch.
        Hide
        Mircea Toma added a comment -

        Ported back fix.

        Show
        Mircea Toma added a comment - Ported back fix.
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces EE-3.3.0 maintenance branch r46192. Tomcat, FF 34, Chrome 46, IE 11, 10, 9, 8, 7.
        Relevant test apps were added to:
        http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/Manual/idleMonitor

        Show
        Liana Munroe added a comment - Verified ICEfaces EE-3.3.0 maintenance branch r46192. Tomcat, FF 34, Chrome 46, IE 11, 10, 9, 8, 7. Relevant test apps were added to: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/Manual/idleMonitor
        Hide
        Judy Guglielmin added a comment - - edited

        rev 46558 for IF 4.1 tag example modified in showcase
        rev 46559 for IF4.0 trunk

        Show
        Judy Guglielmin added a comment - - edited rev 46558 for IF 4.1 tag example modified in showcase rev 46559 for IF4.0 trunk
        Hide
        Liana Munroe added a comment - - edited

        Verified ICEfaces 4 trunk r46561, 4.1 tag r46566. Tomcat 7, IE 11, 10, 9, 8, FF 34, Chrome 46.

        Show
        Liana Munroe added a comment - - edited Verified ICEfaces 4 trunk r46561, 4.1 tag r46566. Tomcat 7, IE 11, 10, 9, 8, FF 34, Chrome 46.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: