-
1. Backspace issue in rich:comboBox
ilya_shaikovsky Mar 3, 2011 3:03 AM (in response to deeps83)disableInInput="true" - should be false. if true hotKey not working in inputs.
-
2. Backspace issue in rich:comboBox
deeps83 Mar 3, 2011 3:13 AM (in response to ilya_shaikovsky)Tried giving
<rich:hotKey key="backspace" disableInInput="false"
handler="alert('Backspace is disabled'); event.stopPropagation(); event.preventDefault(); return false;" />
and
<rich:hotKey key="backspace" disableInInput="false"
handler="alert('Backspace is disabled');return false;" />
just after the combo box.
but it didnt work.Even the alert is not coming.
Deeps.
-
3. Backspace issue in rich:comboBox
ilya_shaikovsky Mar 3, 2011 3:22 AM (in response to deeps83)does it work in other inputs?
-
4. Backspace issue in rich:comboBox
ilya_shaikovsky Mar 3, 2011 3:23 AM (in response to ilya_shaikovsky)and b.t.w. which version used? seems I remember some such issue.. but not sure if we worked on it..
-
5. Backspace issue in rich:comboBox
ajanz Mar 3, 2011 4:01 AM (in response to deeps83)we got the same issue.
i use a little javascript to solve this.
);
it work's fine
-
6. Backspace issue in rich:comboBox
deeps83 Mar 28, 2011 3:11 AM (in response to ajanz)The issue is there for combo boxes and text boxes have no issues.I tried the above solution ,but onkeypress event is not getting triggered for bacspace key.So I tried with onkeydown for which the javascript funtion is getting called.But then it will navigate to the previous page after calling the function.So I added event.stopPropagation(); and event.preventDefault(); in the js function.Still it is not working.
My js is :-
function disableBackSpace(event)
{
event.stopPropagation();
event.preventDefault();
return false;
}
The hotkey solution seems to be not working with combobox.Can any one please sugget any solution for avoiding previous page navigation when bacspace is pressed inside an input field(combobox).
Thanks,
Deeps.