This discussion is archived
8 Replies Latest reply: Nov 24, 2012 9:43 AM by adf009 RSS

jspx page not showing whole jsff region page

adf009 Explorer
Currently Being Moderated
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 Expert
    Currently Being Moderated
    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
    adf009 Explorer
    Currently Being Moderated
    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 Expert
    Currently Being Moderated
    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
    adf009 Explorer
    Currently Being Moderated
    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 Expert
    Currently Being Moderated
    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 Oracle ACE
    Currently Being Moderated
    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
    adf009 Explorer
    Currently Being Moderated
    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
    adf009 Explorer
    Currently Being Moderated
    Switch DimensionFrom value to auto: in the jsff page not in in the jspx page

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points