ICEfaces
  1. ICEfaces
  2. ICE-9669

DataTable filter value lost when quickly entered

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P01
    • Fix Version/s: EE-3.3.0.GA_P02, 4.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      n/a
    • Assignee Priority:
      P2
    • Salesforce Case Reference:

      Description

      The ACE dataTable filter value is lost when typing quickly and hitting enter. This is reproducible in the showcase demo.

      Steps to repro:
      1. Quickly type 'tom' in the 'Name' column filter field and hit enter without pausing.

      The value is 'tom' is lost.

      There are 2 separate requests when this occurs:

      ******** first request headers ***********
      Request URL:http://icefaces-showcase.icesoft.org/showcase.jsf
      Request Method:POST
      Status Code:200 OK
      Request Headersview source
      Accept:*/*
      Accept-Encoding:gzip,deflate,sdch
      Accept-Language:en-US,en;q=0.8
      Cache-Control:no-cache
      Connection:keep-alive
      Content-Length:904
      Content-type:application/x-www-form-urlencoded;charset=UTF-8
      Cookie:__kti=1328299217187,http%3A%2F%2Fshowcase.icesoft.org%2Fmain%2Fhome%2F,; __ktv=9d68-87fa-288b-7f013544cd9124; __qca=P0-976200091-1356731083029; ice.push.browser=2bchn1y4om9; __utma=148148143.1260701133.1327966120.1383046186.1383054956.253; __utmc=148148143; __utmz=148148143.1381511575.230.12.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); __unam=a3382e8-13ccf13fae2-3a59b79c-335; JSESSIONID=68FFA5EE28C38AA3B6027A2EC49C611D; ice.connection.contextpath=.; __utma=10579628.1694493726.1382374499.1382479136.1383058779.3; __utmb=10579628.2.10.1383058779; __utmc=10579628; __utmz=10579628.1383058779.3.3.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); _mkto_trk=id:197-WYM-268&token:_mch-icesoft.org-1327966119236-82858; ice.connection.running=2680a:acquired; ice.connection.lease=1383059497703
      Faces-Request:partial/ajax
      Host:icefaces-showcase.icesoft.org
      Origin:http://icefaces-showcase.icesoft.org
      Pragma:no-cache
      Referer:http://icefaces-showcase.icesoft.org/showcase.jsf?grp=aceMenu&exp=dataTableBean
      User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
      Form Dataview sourceview URL encoded
      form:form
      ice.window:b0hnd9j5hm
      ice.view:vvrcsfog7t
      form:carTable:id_filter:
      form:carTable:name_filter:tom
      form:carTable:chassis_filter:
      form:carTable:weight_filter:
      form:carTable:accel_filter:
      form:carTable:mpg_filter:
      form:carTable:cost_filter:
      icefacesCssUpdates:
      javax.faces.ViewState:-5096878415440134739:-6173513482403364614
      javax.faces.source:form:carTable:name_filter
      javax.faces.partial.event:keypress
      javax.faces.partial.execute:@all
      javax.faces.partial.render:@all
      ice.window:b0hnd9j5hm
      ice.view:vvrcsfog7t
      ice.focus:form:carTable:name_filter
      ice.event.target:form:carTable:name_filter
      ice.event.captured:form:carTable:name_filter
      ice.event.type:onkeypress
      ice.event.alt:false
      ice.event.ctrl:false
      ice.event.shift:false
      ice.event.meta:false
      ice.event.keycode:13
      ice.submit.type:ice.s
      ice.submit.serialization:form
      javax.faces.partial.ajax:true
      Response Headersview source
      Cache-Control:no-cache
      Cache-Control:no-cache, no-store, must-revalidate
      Connection:Keep-Alive
      Content-Encoding:gzip
      Content-Length:414
      Content-Type:text/xml;charset=UTF-8
      Date:Tue, 29 Oct 2013 15:12:53 GMT
      Expires:0
      Keep-Alive:timeout=5, max=100
      Pragma:no-cache
      Server:Apache-Coyote/1.1
      Vary:Accept-Encoding
      X-Powered-By:JSF/2.0

      ********** second request headers ***************
      Request URL:http://icefaces-showcase.icesoft.org/showcase.jsf
      Request Method:POST
      Status Code:200 OK
      Request Headersview source
      Accept:*/*
      Accept-Encoding:gzip,deflate,sdch
      Accept-Language:en-US,en;q=0.8
      Cache-Control:no-cache
      Connection:keep-alive
      Content-Length:808
      Content-type:application/x-www-form-urlencoded;charset=UTF-8
      Cookie:__kti=1328299217187,http%3A%2F%2Fshowcase.icesoft.org%2Fmain%2Fhome%2F,; __ktv=9d68-87fa-288b-7f013544cd9124; __qca=P0-976200091-1356731083029; ice.push.browser=2bchn1y4om9; __utma=148148143.1260701133.1327966120.1383046186.1383054956.253; __utmc=148148143; __utmz=148148143.1381511575.230.12.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); __unam=a3382e8-13ccf13fae2-3a59b79c-335; JSESSIONID=68FFA5EE28C38AA3B6027A2EC49C611D; ice.connection.contextpath=.; __utma=10579628.1694493726.1382374499.1382479136.1383058779.3; __utmb=10579628.2.10.1383058779; __utmc=10579628; __utmz=10579628.1383058779.3.3.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); _mkto_trk=id:197-WYM-268&token:_mch-icesoft.org-1327966119236-82858; ice.connection.running=2680a:acquired; ice.connection.lease=1383059498704
      Faces-Request:partial/ajax
      Host:icefaces-showcase.icesoft.org
      Origin:http://icefaces-showcase.icesoft.org
      Pragma:no-cache
      Referer:http://icefaces-showcase.icesoft.org/showcase.jsf?grp=aceMenu&exp=dataTableBean
      User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
      Form Dataview sourceview URL encoded
      form:form
      ice.window:b0hnd9j5hm
      ice.view:vvrcsfog7t
      form:carTable:id_filter:
      form:carTable:name_filter:
      form:carTable:chassis_filter:
      form:carTable:weight_filter:
      form:carTable:accel_filter:
      form:carTable:mpg_filter:
      form:carTable:cost_filter:
      icefacesCssUpdates:
      javax.faces.ViewState:-5096878415440134739:-6173513482403364614
      javax.faces.source:form:carTable
      javax.faces.partial.execute:form:carTable
      javax.faces.partial.render:form:carTable
      ice.window:b0hnd9j5hm
      ice.view:vvrcsfog7t
      ice.focus:form:carTable:name_filter
      ice.event.target:form:carTable
      ice.event.captured:form:carTable
      ice.event.type:onunknown
      form:carTable:form:carTable
      form:carTable_filtering:true
      form:carTable_filteredColumn:form:carTable:name_filter
      javax.faces.partial.ajax:true
      Response Headersview source
      Cache-Control:no-cache
      Cache-Control:no-cache, no-store, must-revalidate
      Connection:Keep-Alive
      Content-Encoding:gzip
      Content-Length:270
      Content-Type:text/xml;charset=UTF-8
      Date:Tue, 29 Oct 2013 15:12:53 GMT
      Expires:0
      Keep-Alive:timeout=5, max=99
      Pragma:no-cache
      Server:Apache-Coyote/1.1
      Vary:Accept-Encoding
      X-Powered-By:JSF/2.0

      It appears that the first request has the correct value for the name filter, 'tom'. But the second request has no value for it.

        Activity

        Hide
        Mircea Toma added a comment -

        Always stop bubbling of the 'enter' keypress event, regardless if the data table's 'filterEvent' attribute is set to 'change' or 'enter'.

        Show
        Mircea Toma added a comment - Always stop bubbling of the 'enter' keypress event, regardless if the data table's 'filterEvent' attribute is set to 'change' or 'enter'.
        Hide
        Liana Munroe added a comment -

        Confirmed fixed Icefaces ee-3.3.0 maintenance branch r40796. Tomcat 7, All browsers.

        Show
        Liana Munroe added a comment - Confirmed fixed Icefaces ee-3.3.0 maintenance branch r40796. Tomcat 7, All browsers.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: