Use the class ZkAwareFederationAuthenticator
in your META-INF/context.xml
as described in https://cxf.apache.org/fediz-tomcat.html
This file contains 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
public class TestComposer extends GenericForwardComposer { | |
public void doAfterCompose(Component comp) throws Exception { | |
super.doAfterCompose(comp); | |
System.out.println("Init"); | |
} | |
protected void finalize() throws Throwable { | |
super.finalize(); | |
System.out.println("Finalize"); | |
} |
This file contains 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
@Tags(tags = "Example") | |
class ExampleTest extends ZTL4ScalaTestCase { | |
def testClick() = { | |
val zscript = { | |
<vbox> | |
Click "hello world", if you see the message change, it is ok. | |
<zscript><![CDATA[ | |
public void doCreate(Event evt) { | |
evt.target.setValue(" hello,\\n world"); |
This file contains 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
<script><![CDATA[ | |
zk.afterMount(function () { | |
zk.Desktop._dt.firstChild.appendChild(new GlobalResizeMonitor()); | |
}); | |
GlobalResizeMonitor = zk.$extends(zk.Widget, { | |
bind_: function () { | |
this.$supers('bind_', arguments); | |
zWatch.listen({onSize: this}); | |
}, | |
unbind_: function () { |
This file contains 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 org.zkoss.test; | |
import java.util.Collections; | |
import java.util.List; | |
public class ForEachVM { | |
private List<Integer> array = Collections.nCopies(30, 30); | |
public void setArray(List<Integer> array) {} | |
public List<Integer> getArray() { | |
return array; |
This file contains 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 issue; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; | |
import java.io.Serializable; | |
import java.lang.reflect.Method; | |
import javassist.util.proxy.MethodFilter; |
This file contains 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
public class Todo { | |
private String message; | |
private boolean done; | |
public Todo() {} | |
public Todo(String message) { | |
this.message = message; | |
} |
This file contains 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
public class Book { | |
private Set<Category> categories = new LinkedHashSet<Category>(); | |
private String author; | |
private String name; | |
public Book() {} | |
public void setCategories(Set<Category> categories) { | |
this.categories = categories; | |
} | |
public Set<Category> getCategories() { |
This file contains 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
FROM java:8-jdk | |
MAINTAINER Jumper Chen <jumperchen@potix.com> | |
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 | |
# Config to get to install git, maven, and tomcat7 | |
RUN apt-get update && apt-get install -y --force-yes git maven tomcat7 | |
VOLUME /zksandbox | |
# copy your zksandbox (depends on where the Dockerfile located) folder |
OlderNewer