Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-924

JS Error showed in console when ZSS in JSF has no excel source file.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 3.8.0
    • 3.7.0
    • ZSS JSF
    • Security Level: Jimmy
    • None

      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.

            JerryChen JerryChen
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: