Forum Stats

  • 3,759,893 Users
  • 2,251,611 Discussions
  • 7,870,858 Comments

Discussions

af:popup open url source af:inlineFrame multiple times

Souhaiel
Souhaiel Member Posts: 44 Red Ribbon
edited Sep 26, 2021 11:52PM in JDeveloper and ADF

oracle jdevelopper version 12.2.1.3.0 i'm test url path in

af:inlineFrame used new page jsf open one request but if add in

af:popup send 4 request or more in server oracle reporst in one

javaBeans

private String oraReportsUrl;
private RichPopup popTest;
public String editerCompEmp() {
    StringBuffer medUrl = new StringBuffer();
    String reportsServerUrl = FacesContext.getCurrentInstance()
                                          .getExternalContext()
                                          .getInitParameter("reportsServerUrl");
    String userid = FacesContext.getCurrentInstance()
                                .getExternalContext()
                                .getInitParameter("userid");
    String server = FacesContext.getCurrentInstance()
                                .getExternalContext()
                                .getInitParameter("server");


    medUrl.append(reportsServerUrl + "?");

    medUrl.append("desformat=" + "PDF" + "&");
    medUrl.append("report=" + "agent.rdf" + "&");
    medUrl.append("userid=" + userid + "&");
    medUrl.append("destype=" + "cache" + "&");
    medUrl.append("server=" + server + "&");
    medUrl.append("annee=" + annee7.getValue() + "&");
    medUrl.append("mois=" + mois7.getValue());
   
    
    setOraReportsUrl(medUrl.toString());
   
    RichPopup.PopupHints hints = new RichPopup.PopupHints();
    getPopTest().show(hints);

    return null;
}
public void setPopTest(RichPopup popTest) {
    this.popTest = popTest;
}

public RichPopup getPopTest() {
    return popTest;
}
public void setOraReportsUrl(String oraReportsUrl) {
    this.oraReportsUrl = oraReportsUrl;
}

public String getOraReportsUrl() {
    return oraReportsUrl;
}

Page JSF

<af:panelBox text="PanelBox2" id="pb2" showHeader="never" >
            <f:facet name="toolbar"/>
            <af:spacer width="10" height="10" id="s2"/>
            <af:panelFormLayout id="pfls1" maxColumns="2" rows="3">
              <f:facet name="footer"/>
              <af:inputText value="#{bindings.annee1.inputValue}" label="#{bindings.annee1.hints.label}"
                     required="#{bindings.annee1.hints.mandatory}"
                     columns="#{bindings.annee1.hints.displayWidth}"
                     maximumLength="#{bindings.annee1.hints.precision}"
                     shortDesc="#{bindings.annee1.hints.tooltip}" id="it1"
                     binding="#{backingBeanScope.ReportBean.annee7}"
                     valueChangeListener="#{backingBeanScope.ReportBean.onChangeYear3}"
                     contentStyle="text-align:center;width:60px;">
                <f:validator binding="#{bindings.annee1.validator}"/>
                <af:convertNumber groupingUsed="false" pattern="#{bindings.annee1.format}"/>
              </af:inputText>
							
							<af:selectOneChoice value="#{bindings.Mois.inputValue}" label="#{bindings.Mois.label}"
                        required="#{bindings.Mois.hints.mandatory}"
                        shortDesc="#{bindings.Mois.hints.tooltip}" id="soc1"
                        binding="#{backingBeanScope.ReportBean.mois7}"
                        valueChangeListener="#{backingBeanScope.ReportBean.onChangeMonth3}"
                        contentStyle="text-align:center;width:60px;">
                <f:selectItems value="#{bindings.Mois.items}" id="si1"/>
                <f:validator binding="#{bindings.Mois.validator}"/>
              </af:selectOneChoice>
           <af:button text="Report" id="b1" 
          action="#{backingBeanScope.ReportBean.editerCompEmp}"/>
              
            </af:panelFormLayout>
          </af:panelBox>
         
	     <af:popup childCreation="immediate" animate="default" id="p2"
         binding="#{backingBeanScope.ReportBean.popTest}">
      <af:dialog id="d2" type="none" contentWidth="700">
        <f:facet name="buttonBar"/>
        <af:inlineFrame shortDesc="This is my reports" source="#{backingBeanScope.ReportBean.oraReportsUrl}"
                styleClass="AFStretchWidth" inlineStyle="height:600px;" id="if1"/>
      </af:dialog>
      </af:popup>


Tagged:

Answers