Create ADF popup for value change event(For select one choice component).

Add popup and add dialog to inside of the popup,then select popup and add value for binding attribute in mine
#{pageFlowScope.popupBean.myPop}.
private RichPopup myPop = new RichPopup();
public void selectOneChoiceEvent(ValueChangeEvent valueChangeEvent) {
RichPopup.PopupHints ph = new RichPopup.PopupHints();
myPop.show(ph);
}
public void setMyPop(RichPopup myPop) {
this.myPop = myPop;
}
public RichPopup getMyPop() {
return myPop;
}

Oracle ADF - Add new custom attribute for view object using Expression

Oracle ADF Client-side Validators

Oracle ADF Association sample for Department and Employee

Tuesday, February 1, 2011

ADF - Add textField value to multiSelect Component in button click event

Write following code your bean and try..


private List listOfItems = new ArrayList();//to shown combo,bind this list to combo
String txtFieldValue;//txtFld bind value

public void Test(ActionEvent actionEvent) {//bind to button action listner
{
String value = (String)getTxtFieldValue();
if (value != null && !value.equals("")) {
SelectItem si = new SelectItem();
si.setLabel(value);
si.setValue(value);
listOfItems.add(si);
myTestListComponent.setValue(listOfItems);
newItemNameComponent.setValue("");
}
}
}

public void setListOfItems(List listOfItems) {
this.listOfItems = listOfItems;
}

public List getListOfItems() {
return listOfItems;
}

public String getTxtFieldValue() {
return txtFieldValue;
}

public void setTxtFieldValue(String txtFieldValue) {
this.txtFieldValue = txtFieldValue;
}

No comments:

Post a Comment