0

Problem with double-clicking for cell editing

asked 2012-05-06 15:05:52 +0800

drovka gravatar image drovka
12

updated 2012-05-06 15:20:51 +0800

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?

delete flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2012-05-15 06:11:47 +0800

drovka gravatar image drovka
12

Thanks I will try this variant

link publish delete flag offensive edit

answered 2012-05-15 01:59:49 +0800

iantsai gravatar image iantsai
2755 1

I think you better use Composite component to wrap a <label> + <textbox> and do the swap mechanism in it.
data binding cannot do the swapping for you.

link publish delete flag offensive edit

answered 2012-05-07 07:15:15 +0800

drovka gravatar image drovka
12

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>


and Controller is annotated with @Command annotation
 @Command
   public void editUser(@BindingParam(value = "user") User user) {
       selectedUser = user;
       zkHelper.wireToZul(EDIT_USER_URL);
   }

link publish delete flag offensive edit

answered 2012-05-07 01:49:15 +0800

iantsai gravatar image iantsai
2755 1

How you implement your "double-clicking to Edit" mechanism?

link publish delete flag offensive edit

answered 2012-05-06 21:26:08 +0800

drovka gravatar image drovka
12

I replaced listbox a grid, but the selection is left.

link publish delete flag offensive edit

answered 2012-05-06 16:31:39 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2012-05-06 16:31:52 +0800

listbox is not for editing. Use the grid instead.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2012-05-06 15:05:52 +0800

Seen: 181 times

Last updated: May 15 '12

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