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

Monday, February 21, 2011

How to get Select Many Shuttle values by bean class.

How to get Select Many Shuttle values by bean class.
(1)First you have to ViewObject and then drag your view object(SampleView1) to design area
(2)Then it ask for creating several types of components and select
Multiple Selection -> ADF Select Many Shuttle
(3)Now you can see Edit List Bindings window with selected data source(SampleView1) and select base attribute and display attribute
(4)drag command button and add following code stuff to your class (keep in memory change SampleView1 to your viewObject name)

public void processSelection(ActionEvent actionEvent) {
BindingContainer bindContainer = BindingContext.getCurrent().getCurrentBindingsEntry();
JUCtrlListBinding listBinding = (JUCtrlListBinding)bindContainer.get("SampleView1");
Object[] obj = listBinding.getSelectedValues();
for (Object o : obj) {
System.out.println("Selected values"+o);
}
}


(5)select command button's action listner and find your method through this action listner(Not through action)

No comments:

Post a Comment