public static MethodExpression getMethodExpression(
String expr, Class returnType, Class[] argTypes){
FacesContext fc = FacesContext.getCurrentInstance();
ELContext elctx = fc.getELContext();
ExpressionFactory elFactory = fc.getApplication().getExpressionFactory();
return elFactory.createMethodExpression(
elctx, expr, returnType, argTypes);
}
public static javax.faces.el.MethodBinding getMethodBinding(
String expr, Class[] argTypes){
FacesContext fc = FacesContext.getCurrentInstance();
ELContext elctx = fc.getELContext();
return fc.getApplication().createMethodBinding(expr, argTypes);
}
SetPropertyListener listener = new SetPropertyListener(
ActionEvent.class.getName());
listener.setFrom(link.getRoute());
listener.setValueExpression("to",
JSFUtils.getValueExpression("#{pageFlowScope.route}", String.class));
action.addActionListener(listener);
AdfFacesContext.getCurrentInstance().getPageFlowScope()
.put("route", link.getRoute());
This was hard to fix: if anyone wants the code just ask. Or if you have a better solution please post comment. Once excel export has been clicked if we navigate around using ppr to refresh the region we get this error. I was forced to create an export handler tag wich forces the export to happen in a new window. Because this page is getting some hits here is some of the code (also use this method for pdf export): Button with new listener: (xmlns:new="http://za.co.company/adf/faces/common/my" in your jsp:root) <af:commandToolbarButton text="Export" id="ctb1" immediate="true" partialSubmit="true" icon="images/excel.jpg"> <new:myExportCollectionActionListener exportedId="audTab" type="excelHTML" filename="audit.xls" title="Audit"/> </af:commandToolbarButton> TAG: import oracle.adfinternal.view.faces.export.ExportCollectionActionListener; import oracle.adfin...
Comments
Post a Comment