Daily Archives: June 21, 2011

snippets – to collapse a tree which is expanded



public void rowDisclosureListener(RowDisclosureEvent rowDisclosureEvent) {
System.out.println(":::: RowDisclosureListener Invoked");
int depth = tree.getDepth();
if (depth > 0) {
return;
}
RowKeySet discloseRowKeySet = tree.getDisclosedRowKeys();
RowKeySet addedRowKeySet = rowDisclosureEvent.getAddedSet();
Iterator addedRowKeySetIter = addedRowKeySet.iterator();
if (addedRowKeySetIter.hasNext()) {
discloseRowKeySet.clear();
Object firstKey = addedRowKeySetIter.next();
discloseRowKeySet.add(firstKey);
tree.setSelectedRowKeys(addedRowKeySet);
tree.setRowKey(firstKey);
AdfFacesContext adfFacesContext = null;
adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTarget(tree.getParent());
}
}
}

Advertisements

Sherman release notes


http://jdevadf.oracle.com/adf-richclient-demo/docs/release.html

create pdf from VO


useful link that i found to create a pdf from a view object

http://technology.amis.nl/blog/1182/generating-pdfs-from-adf-business-components-view-object-datasets-using-xsql

http://kohlivikram.blogspot.com/2009/04/generate-pdf-report-in-adf.html

Ojdeploy – how to include taskflow related files to include


When you build trough ojdeploy the task flow related files like page-template.xml, task-flow-registry.xml are not added in the deployed adf library.

to include that we have remove the entry in the ojdeploy snippet

<ora:parameter name="nocompile" value="true"/>

more information is here

http://one-size-doesnt-fit-all.blogspot.com/2010/11/using-ojdeploy-and-ant-for-creating-adf.html