-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Beside the zul bind mode, is there a java programing way to pass value to the customized component?
<state-box state="@init(each)"
icon="@init(each.type)
@converter('org.zkoss.admin.converter.TypeIconConverter')"
color="@init(each.type)
@converter('org.zkoss.admin.converter.TypeColorConverter')"/>
state-box
isn't a full component, it's more a shortcut to the shadow element <apply>
usage:
<apply templateURI="/WEB-INF/template/stateBox.zul" state="@init(...)" ...>
What it does is inserting a specific zul file, handing over parameters. The same can be done from Java code (which ZK does in many cases even without shadow elements), by calling one of the Executions.createComponents(...)-methods.
An alternative of working with templates in MVC are ShadowTemplate and CollectionTemplate.
Asked: 2019-10-01 09:58:53 +0800
Seen: 14 times
Last updated: Oct 01 '19
[ZK8.6 Preview] New media components coming soon!
Bug in Datebox with lenient=false and value 01.04.1981?
javascript cannot catch id of zul component. Please help.
failed to utilize getTop(), getLeft() on div(component). Please help.
Serving zul files from a directory outside web application