This blog will cover Oracle ADF, Weblogic, Oracle Application Server, Oracle Collaboration Suite etc....
Thursday, January 29, 2015
Selectonechoice current index
Valuechangelistener does not get fired on when selectonechoice default value is selected e.g. Select. Hence we should have additional button and in that button we should evaluate the index of select one choice as below
public String goButtonAction(ActionEvent actionEvent) {
// Add event code here...
Integer selectedPlatformIndex = (Integer)JSFUtils.resolveExpression("#{row.bindings.PlatformName_lov.inputValue}");
System.out.println("The gobutton clicked value: >>>>>>>>>>>>>>>>>>"+selectedPlatformIndex.toString());
if(selectedPlatformIndex == 0 ){
showMessage("Please select a Platform");
return null;
}
else
return "gotoRelease";
}
Subscribe to:
Posts (Atom)