8 Replies Latest reply: Nov 24, 2012 11:43 AM by Tshifhiwa RSS

    jspx page not showing whole jsff region page

    Tshifhiwa
      hi i have drag my task flow as region in my jspx page my problem is when the page run it show in half it does not show the whole jsff page,am in jdeveloper 11.1.2.1.0
      <?xml version='1.0' encoding='UTF-8'?>
      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
                xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
          <jsp:directive.page contentType="text/html;charset=UTF-8"/>
          <f:view>
              <af:document title="main" id="d1">
                  <af:form id="f1">
                      <af:region value="#{bindings.agrtaskflowdefiniton1.regionModel}" id="r1"/>
                  </af:form>
              </af:document>
          </f:view>
      </jsp:root>
      Edited by: adf0994 on 2012/11/23 10:25 PM

      Edited by: adf0994 on 2012/11/23 10:26 PM
        • 1. Re: jspx page not showing whole jsff region page
          Sudipto Desmukh
          See if this helps - http://andrejusb.blogspot.in/2011/04/layout-stretching-property-in-adf-ps3.html
          • 2. Re: jspx page not showing whole jsff region page
            Tshifhiwa
            i try this but the page is more half now,it showing only piece in top corner
            <?xml version='1.0' encoding='UTF-8'?>
            <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
                      xmlns:f="http://java.sun.com/jsf/core"
                      xmlns:h="http://java.sun.com/jsf/html"
                      xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
              <jsp:directive.page contentType="text/html;charset=UTF-8"/>
              <f:view>
                <af:document id="d1">
                  <af:panelDashboard id="pd1" dimensionsFrom="auto">
                    <af:region value="#{bindings.agrtaskflowdefiniton1.regionModel}" id="r1"/>
                  </af:panelDashboard>
                  <af:form id="f1">
                  </af:form>
                </af:document>
              </f:view>
            </jsp:root>
            • 3. Re: jspx page not showing whole jsff region page
              Sudipto Desmukh
              That was not what I meant.
              Its clearly written in the article that sometimes the components inside a region donot get stretched when put in a page.
              Which in the example was a panelDashboard.So try to set the dimensionsFrom property of the parent container in your region to parent and see if that helps.
              • 4. Re: jspx page not showing whole jsff region page
                Tshifhiwa
                there is no dimensionsFrom property only in dashbord
                <?xml version='1.0' encoding='UTF-8'?>
                <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
                          xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
                    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
                    <f:view>
                        <af:document title="main" id="d1">
                            <af:form id="f1">
                                <af:region value="#{bindings.agrtaskflowdefiniton1.regionModel}" id="r1"/>
                            </af:form>
                        </af:document>
                    </f:view>
                </jsp:root>
                • 5. Re: jspx page not showing whole jsff region page
                  Sudipto Desmukh
                  again .. you need to see the jsff inside the TF which you drop as a region to find the parent component.
                  • 6. Re: jspx page not showing whole jsff region page
                    Timo Hahn
                    Why don't you put a panelStretchLayout onto the page and drop the fragment into the center facet of the panelStretchLayout?

                    Timo
                    • 7. Re: jspx page not showing whole jsff region page
                      Tshifhiwa
                      hi i did use the panelStrechLayout but my page is still showing in top conner,and in half
                      <?xml version='1.0' encoding='UTF-8'?>
                      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
                                xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
                          <jsp:directive.page contentType="text/html;charset=UTF-8"/>
                          <f:view>
                              <af:document title="maintest" id="d1">
                                  <af:form id="f1">
                                      <af:panelStretchLayout id="psl1" dimensionsFrom="auto">
                                          <f:facet name="bottom"/>
                                          <f:facet name="center">
                                              <af:region value="#{bindings.agrtaskflowdefiniton1.regionModel}" id="r1"/>
                                          </f:facet>
                                          <f:facet name="start"/>
                                          <f:facet name="end"/>
                                          <f:facet name="top"/>
                                      </af:panelStretchLayout>
                                  </af:form>
                              </af:document>
                          </f:view>
                      </jsp:root>
                      Edited by: adf0994 on 2012/11/24 3:43 PM

                      Edited by: adf0994 on 2012/11/24 3:43 PM
                      • 8. Re: jspx page not showing whole jsff region page
                        Tshifhiwa
                        Switch DimensionFrom value to auto: in the jsff page not in in the jspx page