Created
February 1, 2013 04:37
-
-
Save senthilmuthiah/4689245 to your computer and use it in GitHub Desktop.
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.com.demo; | |
import java.util.HashMap; | |
import org.zkoss.zk.ui.Executions; | |
import org.zkoss.zk.ui.select.SelectorComposer; | |
import org.zkoss.zk.ui.select.annotation.Listen; | |
import org.zkoss.zk.ui.select.annotation.Wire; | |
import org.zkoss.zul.Textbox; | |
import org.zkoss.zul.Window; | |
@SuppressWarnings("serial") | |
public class ParentWindowController extends SelectorComposer<Window> { | |
@Wire | |
Textbox firstName; | |
@Wire | |
Textbox lastName; | |
@Listen("onClick=#showWindow") | |
public void submit() { | |
final HashMap<String, Object> map = new HashMap<String, Object>(); | |
map.put("firstName", firstName.getValue()); | |
map.put("lastName", lastName.getValue()); | |
Executions.createComponents("ChildWindow.zul", null, map); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment