jsf - disable onscroll event of the icefaces datatable -
i used ice:datatable component display data, somehow there default onscroll event in target div doesn't make sense me , had brought positioning problems other float elements within page. want disable action, didn't find approach control this.
it called function below:
var input = document.getelementbyid('targetid'); cleartimeout(ice.pid); ice.pid = settimeout(function() { input.value = document.getelementbyid('targetid_scroll').scrolltop; window.icesubmitpartial(null, input, event); }, 400);
i had similar problem icefaces , upgraded jsf , icefaces versions best solution change tags: ice:datatable tag ace:datatable , columns inside ice:column ace:column.
but, if didn't upgrade icefaces version, guess use javascript or jquery in point of code removing onscroll attribute, like:
document._getelementsbyxpath("//div[contains(@onscroll,'scroll')]")[0].removeattribute("onscroll")
this 1 isn't one, example, cause can remove scroll other tables.
jquery('.myclass div[id$="_scroll"]')[0].removeattribute("onscroll")
Comments
Post a Comment