0

Duplicate Id on generate html

asked 2017-08-28 14:20:32 +0800

negima gravatar image negima
1

updated 2017-08-28 15:55:15 +0800

When I use a CListbox zk6.5.4 componant, zk generate a tpad or bpab div with a table and this html tags have the same id.

I custom the id-generator-class on zk.xml put I don't where is the prefix generate componant.

Exemple:

<zk>
<panel title="${labels.text}">
    <panelchildren>
        <vlayout>
            <label value="${labels.over}" />
            <cListbox id="clbEntry"
                showCheckbox="false" rows="5"
                columns="name,firstname,etc">
                <cListhead sizable="true">

.......

CListbox have zkcomp143 id and over componants have zkcomp143-whith prefix

The html code:

<div id="zk_comp_143-bpad" style="font-size:0px;display:none;width:1px;">
<table id="zk_comp_143-bpad">
    <tbody>
    <tr style="height: 0px;"><td> </td></tr>
    </tbody>
</table>

You know why ?

Or you know where I can override the class how put a prefix id ?

Thanks for your help.

delete flag offensive retag edit

Comments

Clistbox? Is this a custom component?

chillworld ( 2017-08-29 04:38:46 +0800 )edit

yes it is !

negima ( 2017-08-29 09:21:24 +0800 )edit

Can you share the code on how it's created the clistbox?

chillworld ( 2017-08-30 20:07:52 +0800 )edit
Be the first one to answer this question!
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: 2017-08-28 14:20:32 +0800

Seen: 7 times

Last updated: Aug 28

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