3 Replies Latest reply: May 9, 2012 8:40 AM by Sudipto Desmukh RSS

    showPrintablePageBehavior is not working inside popup. Is it an ADF Bug?

    Dinil Mithra
      Hi,

      I am facing some issues with showPrintablePageBehavior component.

      1. I have placed a command button with showPrintablePageBehavior inside a popup. But I am getting a blank page in print mode. But the showPrintablePageBehavior is working fine without popup.
      2. I have a pivot table with a button having showPrintablePageBehavior and these components are surrounded with panelSplitter. But pivot table is not rendering in print mode.


      Using JDeveloper 11.1.1.5.0 / 11.1.1.6 - adfbc

      code:

      <af:form id="f1">
      <af:panelSplitter id="ps1">
      <f:facet name="first">
      <af:panelGroupLayout layout="scroll"
      xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
      id="pgl1">
      <af:commandButton text="Popup" id="cb1">
      <af:showPopupBehavior triggerType="action" popupId="p1"/>
      </af:commandButton>
      <af:commandButton text="Print" id="cb3">
      <af:showPrintablePageBehavior/>
      </af:commandButton>
      <af:outputText value="Hai Output Text" id="outputText1"/>
      <af:popup id="p1">
      <af:dialog id="d2">
      <af:panelSplitter id="ps2">
      <f:facet name="first">
      <af:panelGroupLayout layout="scroll"
      xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
      id="pgl2" clientComponent="true">
      <af:commandButton text="Print" id="cb2">
      <af:showPrintablePageBehavior/>
      </af:commandButton>
      <af:outputText value="Hai Popup Output Text" id="it9"/>
      <af:clientAttribute name="print" value="true"/>
      </af:panelGroupLayout>
      </f:facet>
      </af:panelSplitter>
      </af:dialog>
      </af:popup>
      </af:panelGroupLayout>
      </f:facet>
      </af:panelSplitter>
      </af:form>

      Thanks,
      Dinil Mithra V S