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, September 12, 2011

Oracle ADF – How to access binding value of UI component using a bean class

<af:inputText value="#{bindings.Name.inputValue}"

id="Name" >

<f:validator binding="#{bindings.Name.validator}"/>

</af:inputText>

// get the binding container

import oracle.binding.AttributeBinding;

import oracle.binding.BindingContainer;

import oracle.adf.model.BindingContext;

BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();

// get an ADF attribute value from the ADF page definitions

AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("Name");

String val =

attr.getInputValue();

No comments:

Post a Comment