13 Replies Latest reply: Nov 16, 2012 6:25 AM by 894552 RSS

    Auto-load a popup when a page loads?

    894552
      Hi,

      I created a link loading a form’s popup. I want to modify the code so that when the page is loaded, the popup is auto-load. How can I do that? I'm using JDev 11.1.1.6.

      <af:commandLink xmlns:af="http://xmlns.oracle.com/adf/faces/rich" text="Guidelines" partialSubmit="true" id="commandLink3" rendered="true">
      <af:showPopupBehavior xmlns:af="http://xmlns.oracle.com/adf/faces/rich" popupId="subform2:popup2"/>

      <af:subform xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="subform2" defaultCommand="commandLink3">
      <af:popup xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="popup2">
      <af:dialog xmlns:af="http://xmlns.oracle.com/adf/faces/rich" type="none" id="dialog2" resize="on" contentWidth="500" contentHeight="500">
      <af:outputText xmlns:af="http://xmlns.oracle.com/adf/faces/rich" value="TEXT…." id="sot1" escape="false"/>
      <f:facet xmlns:f="http://java.sun.com/jsf/core" name="buttonBar">
      <af:group xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="group1">
      <af:commandButton xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="commandButton2" text="Close"/>
      </af:group>
      </f:facet>
      </af:dialog>
      <af:clientListener xmlns:af="http://xmlns.oracle.com/adf/faces/rich" type="popupOpened" method="popupGuidelines"/>
      </af:popup>
      </af:subform>
      </af:commandLink>

      Thank you.