JDev11g Export Table To Excel

Posted by Steve Racanovic | Posted in | Posted on 9:11 AM


JDev 11g offers a simple way to export an ADF table to excel in a couple simple steps.

1. Create af:panelCollection on the jspx page.
2. Drag a data control onto af:panelCollection and drop it as table.
3. Set af:table id to table.
4. Expand Panel Collection facets, and drop af:toolbar on toolbar facet.
5. Drop af:commandButton on af:toolbar. Set the text to "Export To Excel"
6. Drop af:exportCollectionActionListener on af:commandButton. And set the following:

ExportId: table
Type: excelHTML
Filename: Emp.xls
Title: Employees.

The exportId needs to bind to the af:table id. Which we set as 'table' in step 3

7. Run the jspx page and test the export button.

This is how the my final code looks like:

<facet name="menus"/>
<facet name="toolbar">
<commandButton text="Export To Excel">
<exportCollectionActionListener exportedId="table" type="excelHTML"
filename="Emp.xls" title="Employees"/>
<facet name="statusbar"/>
<table value="#{bindings.EmpView1.collectionModel}" var="row"
emptyText="#{bindings.EmpView1.viewable ? 'No rows yet.' : 'Access Denied.'}"
fetchSize="#{bindings.EmpView1.rangeSize}" filterVisible="false"
<column sortProperty="Empno" sortable="false"
<outputText value="#{row.Empno}">
<convertNumber groupingUsed="false"

Jdev 11g Web Service WSDL Parameter Name

Posted by Steve Racanovic | Posted in , | Posted on 11:01 AM


With Jdev 11g, after generating a Web Service from a java class, the WSDL contains the following
parameter names:

<xsd:complexType name="sayHello">
<xsd:element name="arg0" type="xsd:string"/>
<xsd:element name="arg1" type="xsd:string"/>

My java code function looks like:
public String sayHello(String firstname, String lastname) {
return "Hello " + firstname + " " + lastname;

With Jdev 10g , the same code generates the appropriate values:
<xsd:complexType name="sayHello">
<xsd:element name="firstname" type="xsd:string"/>
<xsd:element name="lastname" type="xsd:string"/>

To workaround this in 11g, I need to create my java class as follows:

package project1;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

public class Class1 {
public String sayHello(@WebParam(name = "fname") String firstname,
@WebParam(name = "lname") String lastname) {
return "Hello " + firstname + " " + lastname;

And now my generated WSDL looks like:
<xsd:complexType name="sayHello">
<xsd:element name="fname" type="xsd:string"/>
<xsd:element name="lname" type="xsd:string"/>