Thursday, October 23, 2008

XML download in JDeveloper 11G



Press the New button to create a new backing bean

Now we can create a new method in this bean.

and here is method code and we are finished

package nl.ordina.richtable.view.beans;


import java.util.List;
import javax.faces.context.FacesContext;
import nl.ordina.richtable.model.dataaccess.EmployeesViewImpl;
import oracle.adf.model.BindingContext;
import oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding;
import oracle.binding.BindingContainer;
import oracle.jbo.XMLInterface;
import oracle.xml.parser.v2.XMLNode;

public class ExportBean {
public ExportBean() {
public void exportXml(FacesContext facesContext,
OutputStream outputStream) {
// Add event code here...
BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();

List controlBindings = bc.getControlBindings();
EmployeesViewImpl employees = (EmployeesViewImpl) hierBinding.getViewObject();
try {
} catch (IOException e) {

That's all.


  1. Thank you very much,This is the one what I really need to used in my application.Can I download Sample application.


  2. it's very useful for me. where can I download sample application.


  3. Thank you Edwin, this helped me a lot.

    Only problem with this is that it uses FacesCtrlHierBinding, which is for internal use only. Better to use JUCtrlHierBinding instead. Works just as well.