If you didn't assign excel source file in zk spreadsheet component in ZSSJSF demo. And press any key in input element. There is js error showed in console.
Reproduce steps:
1. download zssjsf demo, modify the index.xhtml file as follows:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:zssjsf="http://www.zkoss.org/jsf/zss" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui"> <h:head> <title>Application for Leave</title> <zssjsf:head/> </h:head> <h:body> <input type="text" value="" /> <h:form> <p:outputPanel rendered="#{false}"> <div> <zssjsf:spreadsheet id="myzss" width="1024px" height="768px" maxVisibleRows="50" maxVisibleColumns="20" showToolbar="true" showFormulabar="true" showContextMenu="true" showSheetbar="true"/> </div> </p:outputPanel> </h:form> </h:body> </html>
2. Focus on the input element and press any key.
3. Should not see any JS error in browser console.
- relates to
-
ZSS-920 Unexpected onCtrlKey request is sent to server when using ZSS JSF
-
- Closed
-