jdeveloper - Oracle ADF: java.lang.IllegalArgumentException when pressing Printable page behaviour 12c -
hello developing web application using oracle adf , jdev12c. have page below.
the above page created using template. contains 3 parts. first part image, second part deck more 1 panel group layout (here deck child value decided using value managed bean of scope session.)and third part actual content facet in have dropped task-flow(bouded) region contain .jsff pages.
my problem every thing working fine. af:showprintablebehavior not working. when click on printable view button getting following exception. after following exception nothing working in application. (if click on commndlink opening in tab , repeatedly trying generate page content example table not displaying content)
exception java.lang.illegalargumentexception org.apache.myfaces.trinidad.model.rowkeysettreeimpl.setcollectionmodel(rowkeysettreeimpl.java:315) org.apache.myfaces.trinidad.component.uixlistview$rowkeyfacesbeanwrapper.getproperty(uixlistview.java:300) org.apache.myfaces.trinidad.component.facesbeanwrapper.getproperty(facesbeanwrapper.java:61) oracle.adf.view.rich.component.rich.data.richlistview$listviewbeanwrapper.getproperty(richlistview.java:178) org.apache.myfaces.trinidad.component.uixcomponentbase.getproperty(uixcomponentbase.java:1912) org.apache.myfaces.trinidad.component.uixlistview.getselectedrowkeys(uixlistview.java:451) org.apache.myfaces.trinidad.component.uixlistview.postcreatecollectionmodel(uixlistview.java:157) org.apache.myfaces.trinidad.component.uixcollection.getcollectionmodel(uixcollection.java:1671) org.apache.myfaces.trinidad.component.uixcollection.getcollectionmodel(uixcollection.java:1255) org.apache.myfaces.trinidad.component.uixcollection.getrowkey(uixcollection.java:493) oracle.adf.view.rich.component.rich.data.richlistview.visitchildren(richlistview.java:103) org.apache.myfaces.trinidad.component.uixcomponent.visitchildren(uixcomponent.java:774) org.apache.myfaces.trinidad.component.uixcomponent.visittree(uixcomponent.java:631) org.apache.myfaces.trinidad.component.uixcomponent.visittree(uixcomponent.java:405) org.apache.myfaces.trinidad.component.uixcomponent.visitallchildren(uixcomponent.java:504) org.apache.myfaces.trinidad.component.uixcomponent.visitchildren(uixcomponent.java:482) org.apache.myfaces.trinidad.component.uixcomponent.visitchildren(uixcomponent.java:774) org.apache.myfaces.trinidad.component.uixcomponent.visittree(uixcomponent.java:631) org.apache.myfaces.trinidad.component.uixcomponent.visittree(uixcomponent.java:405) org.apache.myfaces.trinidad.component.uixcomponent.visitallchildren(uixcomponent.java:504)
this not working in page. have tested in 1 empty page created without using template. in empty page have created table , tried af:showprintablebehavior , here behaviour working fine.
please me. how remove above exception. export excel working fine.
thanks in advance.
try using clientlistener inside button prints page, stop event propagating further:
<af:resource type="javascript"> /** * shows popup "action" type event. * @param {adfactionevent} actionevent event being handled */ function stopeventfrompropagating(actionevent) { actionevent.cancel(); } </af:resource> <af:commandbutton text="click me"> <af:clientlistener type="action" method="stopeventfrompropagating"/> </af:commandbutton>