Not sure what "combobox" you're using, but all GWT widget events can have multiple handlers. Each label wanting to listen to a widget for change can add its own via addChangeHandler, vs having a single handler on the widget itself.
On Apr 28, 9:17 am, StrongSteve <[email protected]> wrote: > Hello Everybody! > > I have a more or less complex GWT page, consisting of comboxboxes, > labels, buttons... (yes, it is the specification for a calculation! ;) > > Now I need a good approach/solution for the following problem: > > As soon as I change the value on one combobox I need the text of some > labels to change. > It can not be done manually from the combobox (use the onValueChange > event and call label1.setText, label2.setText, ...) as the combobox > does not known which labels to change. Only the label knows which > combo box it should listen to. (Reason: Number of comboboxes is > created dynamically) > > So I was thinking if there is a way to tell specific labels (during > their creation) to listen for onValueChange events on a specific > combobox. If the comboxbox changes its value, and an event is fired, > all labels will be called an can change their value. > > Is this possible? (How!? ;) > Anyone ever had the same problem? > > Thanks in Advance for your help! > > Greetings > Stefan -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
