-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all,
I am facing an issue with ZK 7.0.2 version.
I have a grid defined on my zul file and then, on the Java Composer I add dynamically a Detail component for each row. It compiles but on runtime I get the following error when going to render the grid:
org.zkoss.zk.ui.UiException: Widget class required for <Detail lZ4Vf4> with default
Here is the .zul:
<window id="controlPointCheckerController"
apply="${controlPointCheckerController}">
<grid id="gridControlPoints">
<columns sizable="true"
style="text-align: center;" height="30px">
<column width="28px" />
<column
label="${c:l('cpc.select')}" width="65px" />
<column
label="${c:l('cpc.editor')}" width="145px" />
<column
label="${c:l('cpc.dateEdition')}" width="155px" />
<column
label="${c:l('cpc.changeReason')}" />
<column
label="${c:l('cpc.type')}" width="115px" />
<column
label="${c:l('cpc.actions')}" width="150px" />
</columns>
</grid>
</window>
And on the .java file:
public class ControlPointCheckerController extends GenericForwardComposer {
public void render (Row row, Object data,int paramInt) throws Exception {
row.setAlign("center");
Detail det = new Detail();
det.setOpen(false);
Div detailContent = new Div();
detailContent.setParent(det);
row.appendChild(det);
(...)
}
}
Thanks for your help.
Hello gbacigalupo,
The component is available for ZK PE, and EE editions:
http://books.zkoss.org/wiki/ZKComponentReference/Data/Grid/Detail
What edition are you using? And please refresh your zk installation.
Best Regards,
Darksu
Asked: 2016-01-05 14:53:55 +0800
Seen: 19 times
Last updated: Jan 05 '16
Detail is not CE version. What version do you use?
chillworld ( 2016-01-05 17:20:26 +0800 )edit