(2)Add manage bean to your taskflow or faces-config
<managed-bean-name>ManagedTest</managed-bean-name>
<managed-bean-class>view.managed.TestBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>bindingContainer</property-name>
<property-class>oracle.adf.model.binding.DCBindingContainer</property-class>
<value>#{bindings}</value>
(3)Now you can access bindings from bean class.
Iterator has to be added in PageDef.xml . This is example code for managed bean:
import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.jbo.Row;
public class TestBean {
private DCBindingContainer bindingContainer;
public String getIterValues(){
DCBindingContainer bc = getBindingContainer();
DCIteratorBinding iterator = bc.findIteratorBinding("DeparmentVOIterator");
Row r = iterator.getCurrentRow();
String deptnme = (String)r.getAttribute("DepartmentName");
System.out.println(deptnme );
return null;
}
public void setBindingContainer(DCBindingContainer bindingContainer) {
this.bindingContainer = bindingContainer;
}
public DCBindingContainer getBindingContainer() {
return bindingContainer;
}
}
Casino Slot machine games - drmcd
ReplyDeleteBest 충청북도 출장샵 Casinos that accept players from 남원 출장안마 all over 남원 출장안마 the world. 동해 출장샵 No wonder our 안산 출장샵 players love our casino slots! They're a great choice for most slots and they offer