-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Good day, guys.
I've got grid with a lot of controls in each row. User navigates through these controls using tab button. And when he presses tab on the last control in the row, then new row is automaticaly created.
I used Events.ON_BLUR event for the last control, but there is problem: focus on last control, but user select another one with mouse, onBlur is triggered and new row created, while it should not.
So I need to catch tab button clicked. And one more thing - all gui part is created on java side, I don't have any zul files, so need java-side solution.
I've tried ctrlKeys="#tab", but page hangs with this code no errors just infinite "Loading" message, see example
<window width="100%" height="100%"> <textbox id="t1" ctrlKeys="#tab"/> <textbox id="t2"/> <zscript> t1.addEventListener(Events.ON_CTRL_KEY, new EventListener(){ public void onEvent(Event event) throws Exception { System.out.println("t1"); }}); </zscript> </window>
How can I post it as a bug? I use Chrome, but the same bug reproduced on IE and Firefox. ZK 5.0.3-FL CE (build: 2010062319)
IE shows js exception
Сообщение: Исключение брошено и не поймано
Строка: 2
Символ: 2074
Код: 0
URI-код: http://localhost:8080/Vseveda/zkau/web/_zv2010062319/js/zul.wpd;jsessionid=add6bd01a996ff0001be256dd4a8
>> I've tried ctrlKeys="#tab", but page hangs with this code no errors just infinite "Loading" message, see example
https://sourceforge.net/tracker/?group_id=152762&atid=785191
--
As for your use case. Can you "hide" a focusable component after the last row and listen to "onFocus" of that component to add the new row?
Asked: 2010-07-27 14:23:03 +0800
Seen: 311 times
Last updated: Jul 28 '10