Now I've found out that I can handle it using binding attributes!
While this does not work:
public void dd1_processValueChange(ValueChangeEvent event) {
Integer dd1NewVal = (Integer) event.getNewValue();
Option[] options = new Option[1];
options[0] = new Option(dd1NewVal + " " + this.getCal1Val() + " " +
this.getTxt1Val());
// getCal1Val() and getTxt1Val() return null :-(
this.dd2DefaultOptions.setOptions(options);
}
specifying binding attributes and implementing the method like that is fine:
public void dd1_processValueChange(ValueChangeEvent event) {
Integer dd1NewVal = (Integer) event.getNewValue();
Option[] options = new Option[1];
options[0] = new Option(dd1NewVal + " " + this.cal1.getValue() + " "
+ this.txt1.getValue());
// cal1.getValue() and txt1.getValue() return the input values :-)
this.dd2DefaultOptions.setOptions(options);
}
I can live with that, but I would like to understand why it behaves like
that.
Please help,
Stefan
--
View this message in context: http://www.nabble.com/Asynchronously-submit-and-refresh.-How-to--tp17316746p17468037.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.