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

Unexpected onCtrlKey request is sent to server when using ZSS JSF

XMLWordPrintable

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

      Reproducible step:
      1. Add an input element in the app4l.xhtml file that exist in zssjsf demo.
      2. Press "Delete" key in the input element, should not send any request to server.

      <?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="dummy" />
      	<h:form id="form">
      		<div>
      			<zssjsf:spreadsheet id="myzss" 
      				book="#{applicationForLeave.book}"
      				actionBridge="#{applicationForLeave.actionBridge}" 
      				width="800px" height="550px" 
      				maxVisibleRows="50" maxVisibleColumns="20"
      				showToolbar="true" showFormulabar="true" 
      				showContextMenu="true" showSheetbar="true"/>
      			<h:panelGrid columns="3">
      				<h:commandButton value="Reset" action="#{applicationForLeave.doReset}" >
      					<f:ajax execute="@all" render="msg zkupdate" />
      				</h:commandButton>
      				
      				<h:commandButton value="Ok" action="#{applicationForLeave.doOk}" >
      					<f:ajax execute="@all" render="msg zkupdate" />
      				</h:commandButton>
      				
      				<h:messages id="msg"/>
      			</h:panelGrid>
      		</div>
      		<zssjsf:update id="zkupdate"/>
      	</h:form>
      </h:body>
      </html>
      

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

              Created:
              Updated:
              Resolved: