-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
...
<include id="myInclude" src="included.zul" />
<button onClick="@command('myCmd', val=myInclude.getFellow('myTextBox').value)" />
...
and
@Command
public void myCmd(@BindingParam(value = "val") String val) {
System.out.println(val);
}
NOTE: the included zul should use transparent components... otherwise you will be forced to know how it is composed (and to articulate even more the myInclude.getFellow('myTextBox').
Gio
2 | No.2 Revision |
...
<include id="myInclude" src="included.zul" />
<button onClick="@command('myCmd', val=myInclude.getFellow('myTextBox').value)" />
...
and
@Command
public void myCmd(@BindingParam(value = "val") String val) {
System.out.println(val);
}
NOTE:
the included zul should use transparent components... otherwise you will be forced to know how it is composed (and to articulate even more the myInclude.getFellow('myTextBox').myInclude.getFellow('myTextBox').
You should anyway try to do in another way: myInclude.getFellow('myTextBox').value is really weak... as you can see if the inner .zul gets changed over time... it may cause issues.
Gio