Revision history [back]

click to hide/show revision 1
initial version

answered 2016-02-19 10:41:47 +0800

gganassin gravatar image gganassin flag of Luxembourg

http://www.hybris.com/
...
<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

...
<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

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More