Skip to content

Instantly share code, notes, and snippets.

Avatar

senthilmuthiah

View GitHub Profile
View web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<description><![CDATA[My ZK Application]]></description>
<display-name>ZKExampleTheme</display-name>
<!-- //// -->
View POM.XML
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ZKExampleTheme</groupId>
<artifactId>ZKExampleTheme</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<zk.version>7.0.3</zk.version>
<commons-io>1.3.1</commons-io>
<maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
View windows.less
@import "~./zul/less/_header.less";
@windowBackgroundColor: #D9E5EF;
@windowFramePadding: 8px;
.defaultOverflowZoom() {
overflow: hidden;
zoom: 1;
}
View Myscan.zul
<zk>
<window id="patientscan" border="none"
apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('com.product.webapp.patient.PatientScanVM')">
<script type="text/javascript">
<![CDATA[
var directoryPath = "C:\\CSSNDemoImages\\"; //set path to root folder for web app. to hold all images generated by this app.
View scan.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Driver License Scan demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="JavaScript/IdErrorDescription.js" type="text/javascript"></script>
<script src="JavaScript/ScannerErrorDescription.js" type="text/javascript"></script>
<script type="text/JavaScript" src="JavaScript/SDKLicenseKey.js"></script>
<script type="text/javascript">
View greentheme.css
@CHARSET "ISO-8859-1";
/* ----------------------------------------------------------------------------------------------------------------------- */
/* Modal Window CSS Customization
/* ----------------------------------------------------------------------------------------------------------------------- */
.mymodal .z-window-modal-hm,.mymodal .z-window-modal-br,.mymodal .z-window-modal-cr,.mymodal .z-window-modal-cl,.mymodal .z-window-modal-hr,.mymodal .z-window-modal-tr,.mymodal .z-window-modal-hl
{
background-image: none;
background: transparent repeat-x 0 0;
@senthilmuthiah
senthilmuthiah / style.css
Created Mar 25, 2013
Address Book Using JPA +ZK + Spring.
View style.css
@CHARSET "ISO-8859-1";
/* ----------------------------------------------------------------------------------------------------------------------- */
/* Modal Window CSS Customization
/* ----------------------------------------------------------------------------------------------------------------------- */
.mymodal .z-window-modal-header,.mymodal .z-window-modal-header-noborder
{
padding-top: 1px;
padding-right: -1px;
padding-bottom: 1px;
@senthilmuthiah
senthilmuthiah / AddressList.zul
Created Mar 25, 2013
Address Book Using JPA +ZK + Spring.
View AddressList.zul
<?page title="Address List" contentType="text/html;charset=UTF-8"?>
<zk>
<window id="addressList" border="none"
apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('zkoss.vm.AddressListVM')">
<separator />
<separator />
<div width="100%">
<div sclass="sectionTitle">
<separator />
@senthilmuthiah
senthilmuthiah / AddressCRUD.zul
Created Mar 25, 2013
Address Book Using JPA +ZK + Spring.
View AddressCRUD.zul
<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<window title="Address" id="addressCRUD" border="normal" width="30%"
mode="modal" maximizable="false" closable="true" sclass="mymodal"
position="center,parent" apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('zkoss.vm.AddressListCRUDVM')">
<panel width="100%">
<panelchildren>
<separator />
<grid sclass="vgrid">
@senthilmuthiah
senthilmuthiah / AddressListVM.java
Created Mar 25, 2013
Address Book Using JPA +ZK + Spring.
View AddressListVM.java
package zkoss.vm;
import java.util.HashMap;
import java.util.List;
import org.zkoss.bind.BindUtils;
import org.zkoss.bind.annotation.AfterCompose;
import org.zkoss.bind.annotation.BindingParam;
import org.zkoss.bind.annotation.Command;
import org.zkoss.bind.annotation.ContextParam;