I have a little question on CheckBox Events. I had try a lot of Events but all of them didn't work when i deployed to tomcat. I am using IE7 / IE8 / IE9.
Can anyone tell me which event will be work (at least) on IE9?
the function i tried : (i also tried OnChange, CellClick ... etc)
boolean tempCheckBoxBoolean = false;
checkBox.addListener(Events.onClick, new Listener<BaseEvent>(){
@Override
public void handleEvent(BaseEvent be) {
System.err.println("What is the value checkBox? : " + checkBox.getValue());
System.err.println("What is the value temp boolean? : " + tempCheckBoxBoolean);
MessageBox.alert("Came here", "Came here successfully", null);
if (checkBox.getValue() != tempCheckBoxBoolean) {
AbcModelData submittedData
= new AbcModelData();
submittedData.setSuccessFlag(checkBox
.getValue().toString());
checkBox.setData(SELECTED_ITEM, submittedData);
BaseEvent success = new ComponentEvent(checkBox);
success.setSource(checkBox);
fireEvent(SystemEvents.Success, success);
tempCheckBoxBoolean = checkBox.getValue();
}
}
}
);
P.S. : My RPC success on FireFox and Chrome, but i need to test IE as well. Can anyone provide a better Events / way to solve this problem?
Aucun commentaire:
Enregistrer un commentaire