Combobox.... new problem

asked 2009-10-03 17:07:39 +0800

lramellavotta gravatar image lramellavotta flag of Italy
200 1 8

I have always problems with the simplest things ....
If you try the example you will see that the selected value does not match the screen.
Another problem: no longer exists clause (selected = "true") to set the default value.
Maybe I seeing double? {I need to visit a ophthalmologist? :)}

Any idea?

<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" ?>
<window title="new page title" border="normal">
						<combobox id="cmbDataPre" onSelect="ppp()">
							<comboitem label="Maggiore di"  value="0" />
							<comboitem label="Minore di"    value="1" />
							<comboitem label="Compresa tra" value="2" />
							<comboitem label="Uguale"       value="3" />
							<comboitem label="tutto"        value="4" />

void ppp()

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2009-10-03 20:53:31 +0800

lramellavotta gravatar image lramellavotta flag of Italy
200 1 8

I'm sorry..... I need holiday.

<window title="new page title" border="normal">
						<combobox id="cmbDataPre" onSelect="ppp(self.getSelectedItem(),self)">
							<comboitem label="Maggiore di"  value="maggiore" />
							<comboitem label="Minore di"    value="minore" />
							<comboitem label="Compresa tra" value="compresa" />
							<comboitem label="Uguale"       value="uguale" />
							<comboitem label="tutto"        value="tutto" />

void ppp(Comboitem cmiT, Combobox cmbT)
    String s = cmiT.getValue().toString();

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




Asked: 2009-10-03 17:07:39 +0800

Seen: 164 times

Last updated: Oct 03 '09

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