0

combobox event in grid

asked 2009-05-19 07:13:49 +0800

sakan gravatar image sakan
9

Hi,

i am new in programming with zk.
since days i have the problem that i can`t use the event "onCreate" for the combobox that is embedded in a grid.

I say:
<combobox id="seite" model="@{...}" autodrop="true" selectedItem="@{...}" cols="8">

and in the java - source:
I wrote:
public void onCreate$seite(ForwardEvent event){
seite.setDisabled(true);
System.out.println("oncreate 1");
}

=> the source is not reacting onto the direction.. i am very confused.

when i say:
<combobox id="seite" model="@{...}" onCreate="self.setDisabled(true);" autodrop="true" selectedItem="@{...}" cols="8">

it disables all comboboxes "seite" in all rows in the grid.
but it doesn`t react if the onCreate - method is in the java class that is used for other methods, that function!

can that be a bug of zk?

I am using java version 1.6

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-05-19 08:28:27 +0800

hideokidd gravatar image hideokidd
750 1 2

Hi,

Please see the discussion,
http://www.zkoss.org/forum/index.zul#path%3DlistComment%3BdiscussionId%3D8187%3BcategoryId%3D14%3B
use forward and try again!

link publish delete flag offensive edit

answered 2009-05-19 15:23:05 +0800

sakan gravatar image sakan
9

thank you very much hideokidd!

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: 2009-05-19 07:13:49 +0800

Seen: 163 times

Last updated: May 19 '09

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