1

popup window for listitem

asked 2013-06-18 07:53:17 +0800

demizon gravatar image demizon
179 1 6

Hi there, i am trying to get same effect like here http://www.zkoss.org/zkdemo/gettingstarted/dialogpopup (you click on item and app will throw popup with item details). problem is i am working with listbox. I tried something like this:

<template name="model">
<listitem popup="detail_${each.id}, position=end_before" style="cursor:pointer">
                <div>
                                        <label value="${each.kunde.name}" />
                                        <popup id="detail_${each.kunde.id}">
                                            <include src="/kunde_detail.zul"
                                                orderItem="${each}" />
                                        </popup>
                                    </div>

but i am getting error: Unsupported child for listitem:

.

Can any1 help me plz? Thx in advance.

delete flag offensive retag edit

11 Answers

Sort by ยป oldest newest most voted
0

answered 2013-06-19 12:18:28 +0800

demizon gravatar image demizon
179 1 6

it works! :) thx, I just add 1 thing...only this part is needed:

<vlayout children="@load(vm.list)">
    <template name="children" >
          <popup id="detail_${each.id}">
          <include src="/edit/kunde_detail.zul" kunde="${each}" />
          </popup>
    </template>
</vlayout>

this part is redundant:

<vlayout children="@load(vm.list)">
<template name="children">
<label value="@load(each.name)"/>
</template>
</vlayout>
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
1 follower

RSS

Stats

Asked: 2013-06-18 07:53:17 +0800

Seen: 123 times

Last updated: Jun 19 '13

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