-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all, i have some problem: I use listbox and double-clicking to edit the data. When i double click on any of the rows the text inside of the cell i clicked on is selected.
How can I get rid of it?
I use event handling for cell tag
<template name="model" var="user"> <row> <cell onDoubleClick="@command('editUser', user=user)" > <label value="@load(user.username)" /> <label valuel="@load(user.email)" /> <label value="@load(user.firstName)" /> <label value="@load(user.lastName)" /> <label value="@load(user.role)" /> </cell> </row> </template>
@Command public void editUser(@BindingParam(value = "user") User user) { selectedUser = user; zkHelper.wireToZul(EDIT_USER_URL); }
listbox is not for editing. Use the grid instead.
Asked: 2012-05-06 15:05:52 +0800
Seen: 181 times
Last updated: May 15 '12