0

ZSS and ZUL library in JSP

asked 2013-02-21 12:11:34 +0800

baba gravatar image baba
27

Hi, im trying to use zss and zul library together in a jsp page.

When im trying to perform right click on the excel, zk prompt me NullPointer error.

SEVERE: >>java.lang.NullPointerException

at org.zkoss.zssessentials.config.InsertRangeComposer.doCellRightClickEvent(InsertRangeComposer.java:111) at org.zkoss.zssessentials.config.InsertRangeComposer.access$0(InsertRangeComposer.java:110) at org.zkoss.zssessentials.config.InsertRangeComposer$1.onEvent(InsertRangeComposer.java:104) at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2742) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2713) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2654) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:534) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:461)

Here is the code.

<div style="height: 100%;">
<z:page>
<z:window>

<z:menupopup id="cellMenu">
        <z:menuitem id="cutMenu" label="Cut" />
        <z:menuitem id="copyMenu" label="Copy" />
        <z:menuitem id="pasteMenu" label="Paste" />
    </z:menupopup>

</z:window>
</z:page>
<zss:spreadsheet
     id="spreadsheet" 
        width="90%"
        height = "430px" 
        clientCacheDisabled="true"
        maxRenderedCellSize="15000"
        preloadColumnSize="60"
        preloadRowSize="80"  
        vflex="true"
         apply="
     org.zkoss.zssessentials.config.InsertRangeComposer,
     org.zkoss.zssessentials.export.ExportToExcelComposer,
     org.zkoss.zssessentials.config.SheetDimensionComposer,
     org.zkoss.zssessentials.export.ExcelCommitChange,
     org.zkoss.zssessentials.events.EditingEventsComposer" />

</div>
delete flag offensive retag edit

Comments

the code you post seems not complete? can you post runnable sample code?

samchuang ( 2013-03-19 00:53:36 +0800 )edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-02-21 12:11:34 +0800

Seen: 23 times

Last updated: Feb 21 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More