This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<zk xmlns:h="xhtml"> | |
<window border="normal"> | |
<h:audio id="audio" src="test.mp3" controls="controls" | |
preload="auto" autoplay="autoplay"> | |
Your browser does not support the audio element. | |
</h:audio> | |
<button label="Play"> | |
<attribute name="onClick"> | |
Clients.evalJavaScript("jq('$audio')[0].play()"); | |
</attribute> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<window id="win" apply="com.synnex.wms.outbound.so.SodetailController"> | |
<style> | |
.z-row-cnt .z-label { | |
white-space:nowrap; | |
} | |
</style> | |
<grid model="${win$composer.model}" height="300px" width="500px"> | |
<custom-attributes org.zkoss.zul.grid.rod="true" /> | |
<custom-attributes org.zkoss.zul.grid.initRodSize="20" /> | |
<columns> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
*/ | |
package com.synnex.wms.outbound.so; | |
import java.io.FileReader; | |
import java.util.List; | |
import org.zkoss.zk.ui.Component; | |
import org.zkoss.zk.ui.WebApp; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zjq._useQS = function (reqInf) { | |
var s = reqInf.content, j = s.length, prev, cc; | |
if (j + reqInf.uri.length < 2000) { | |
while (j--) { | |
cc = s.charAt(j); | |
if (cc == '%' && prev >= '8') | |
return false; | |
prev = cc; | |
} | |
return true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
#testCanvas { | |
position: absolute; | |
left: 0px; | |
top: 0px; | |
z-index: 2; | |
} | |
#tmpCanvas { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// EmptyServlet.java | |
package test; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.*; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServlet; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test.jsp.simplechat; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.*; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<zk xmlns:w="client"> | |
<script><![CDATA[ | |
zk.afterLoad("zul.menu", function () { | |
var _mppWgt = {}; | |
zk.override(zul.menu.Menupopup.prototype, _mppWgt, { | |
bind_: function (a, b, c) { | |
_mppWgt.bind_.apply(this, arguments); | |
var $n = jq(this.$n()); | |
if ($n.hasClass('z-auto-resize-menupopup')) { | |
$n.css({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import org.zkoss.zk.ui.event.Events; | |
import org.zkoss.zkmax.zul.Chosenbox; | |
public class CustomChosenbox extends Chosenbox { | |
private static final long serialVersionUID = -5929845559826449285L; | |
static { | |
addClientEvent(CustomChosenbox.class, "onItemClicked", CE_IMPORTANT | CE_DUPLICATE_IGNORE | CE_NON_DEFERRABLE); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import org.zkoss.zk.ui.WebApp; | |
import org.zkoss.zk.ui.Session; | |
import org.zkoss.zk.ui.sys.SessionCtrl; | |
import org.zkoss.zk.ui.sys.DesktopCache; | |
import org.zkoss.zk.ui.sys.DesktopCacheProvider; | |
public class CustomSessionDesktopCacheProvider implements DesktopCacheProvider { | |
private WebApp _wapp; |
OlderNewer