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 BindTest{ | |
@BeforeClass | |
public static void init() | |
{ | |
Conversations.start("./src/test/resources"); | |
} | |
@AfterClass |
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
<zk xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.zkoss.org/2005/zul/zul.xsd" | |
xmlns:n="http://www.zkoss.org/2005/zk/native"> | |
<label multiline="true"> | |
1.you should see value1 is A value2 is B | |
2.edit on value1 and value2, set to Aa and Ba, you will see a length validation warn | |
3.edit on value2 and value2, set to Aaaa and Baaa, the message will be gone. | |
4.click update, the Info change to Aaaa/Baaa | |
</label> | |
<window apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('org.zkoss.zktest.bind.issue.B01016NestedForm')" validationMessages="@id('vmsgs')"> | |
<hlayout> |
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.mvvm.examples.duallistbox; | |
import java.util.ArrayList; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Set; | |
import org.zkoss.bind.annotation.BindingParam; | |
import org.zkoss.bind.annotation.Command; | |
import org.zkoss.bind.annotation.NotifyChange; |
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.mvvm.examples.duallistbox; | |
import java.util.ArrayList; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Set; | |
import org.zkoss.bind.annotation.Command; | |
import org.zkoss.bind.annotation.NotifyChange; |
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
<zk> | |
<hbox apply="org.zkoss.bind.BindComposer" vflex="1" hflex="1"> | |
<!-- common --> | |
<template name="header">Header: ${each}</template> | |
<template name="footer">Footer: ${each}</template> | |
<!-- different body --> | |
<template name="body"> | |
<window title="This a body1" width="100px"> | |
<button label="click me1" onClick='alert("Ooops")' /> |
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.zktest.bind.issue; | |
import org.zkoss.bind.annotation.BindingParam; | |
import org.zkoss.bind.annotation.Command; | |
import org.zkoss.bind.annotation.NotifyChange; | |
public class F01141LongOperation0 { | |
String value = "A"; |
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.zktest.bind.issue; | |
import org.zkoss.bind.annotation.BindingParam; | |
import org.zkoss.bind.annotation.Command; | |
import org.zkoss.bind.annotation.NotifyChange; | |
public class F01141LongOperation1 { | |
String value = "A"; |
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.zktest.bind.issue; | |
import org.zkoss.bind.annotation.Command; | |
import org.zkoss.bind.annotation.NotifyChange; | |
public class F01141LongOperation2 { | |
String value = "Stoped"; | |
F01141LongOperation2WorkingTask wt; |
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.zktest.bind.issue; | |
import org.zkoss.bind.annotation.Command; | |
import org.zkoss.bind.annotation.GlobalCommand; | |
import org.zkoss.bind.annotation.NotifyChange; | |
public class F01141LongOperation3 { | |
String value = "A"; | |
F01141LongOperation3Worker worker; |
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 void testDownload() throws Exception { | |
DesktopAgent desktop = Zats.newClient().connect("/~./basic/download.zul"); | |
// no download | |
assertTrue(desktop.getDownloadable() == null); | |
desktop.query("#dummy").click(); | |
assertTrue(desktop.getDownloadable() == null); | |
// download from file |
OlderNewer