0

ZK Detail on grid - Error org.zkoss.zk.ui.UiException: Widget class required for <Detail lZ4Vf4> with default

asked 2016-01-05 14:53:55 +0800

gbacigalupo gravatar image gbacigalupo
1

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.

delete flag offensive retag edit

Comments

Detail is not CE version. What version do you use?

chillworld ( 2016-01-05 17:20:26 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-01-05 17:20:25 +0800

Darksu gravatar image Darksu
1991 1 4

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

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2016-01-05 14:53:55 +0800

Seen: 19 times

Last updated: Jan 05 '16

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