ADF - Partial Page render in 2 comboboxes (CoreSelectOneChoice)

Hi all,
I am trying to do something with PPR and 2 CoreSelectOneChoice and i cannot make it.
It's like this i have 2 views: Districts and Counties (One District has many Counties).
I am trying to make an ADF Form where this two combos play together with PPR and with this i mean that if i select District combo it must filter which Counties to show in the other combo. Pretty easy hum? but i cannot get it.
II have DistrictView1 and inside this view (from my dataControlPallete) i have CountiesView2.
When i drop this as CoreSelectOneChoice and i tried partialSubmit=true in District Combo (which ID = DistrictID) and then i had PartialTriggers=DistrictID in my Counties Combo .... and NOTHING HAPPENS :)
I tried this tell me what is wrong please:
I had a valueChangeListener to my District Combo and then i tried to do this in my bean:
public void valueChangeDistrict(ValueChangeEvent valueChangeEvent) {
// Add event code here...
BindingContainer bindings = getBindings();
OperationBinding operationBinding =
bindings.getOperationBinding("setCurrentRowWithKeyDistrict"); //yeah i know it's not a row but let me try
Object result = operationBinding.execute();
bindings = getBindings();
operationBinding =
bindings.getOperationBinding("ExecuteCounties");
result = operationBinding.execute();
AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
adfContext.addPartialTarget(comboCounties);
and then i had in my pagedef the following (Notice the NDValue which is where i think the error must be)
<action id="setCurrentRowWithKeyDistrict" IterBinding="DistrictView1Iterator"
InstanceName="AdminAMDataControl.DistrictView1"
DataControl="AdminAMDataControl" RequiresUpdateModel="false"
Action="96">
<NamedData NDName="rowKey" NDType="java.lang.String"
NDValue="????? what do i put here?"/>
</action>
sorry for all the trouble and
Thank you :)
André

Why don't you help us?
I've managed to filter the second combo with autosubmit=true
and an invokeAction
<invokeAction Binds="ExecuteWithParams" id="test" Refresh="renderModel"/>

Similar Messages

  • ADF partial page updates fails after changing the JSESSIONID name

    Hi All.
    I'm using Human Task WorkFlow (11g, wls 10.3.4).
    I changed session-descriptor to WORKLISTAPPSESSIONID of woklistapp application and my deployed TaskFlow.
    After that ajax partial pages updates fails with java.lang.NullpointerExpcetion in the log.
    I think ajax based code does not use session-descriptor element (in the weblogic.xml) to determine the session id cookie name.
    And i cant find where and what i have to modify?
    Guys, please, help.
    Oleg.

    repost
    --

  • Adf partial page rendering not working in safari (iphone and ipad)

    Hi,
    ADF rich faces PPR seems to not work in safari browser on iphone and ipad.
    PPR works first time around, but fails on the second click on the same page on the sam button.
    Any one else had the same problem with Safari browser?
    Johnny

    Hi Shay,
    Thank you for the quick answer.
    No it does not work on the ipad or iphone.
    It works on chrome for the ipad!
    PPR does not work for the second click on the same button.
    In you example it will accept the first click but ignore the rest of the clicks on the same button.
    We are about to create a ADF app for the ipad and this is a major showstopper.
    Hope we can find some sort of workaround, that does not involve dropping PPR.
    Regards Johnny

  • ADF Faces : partial page rendering in f:subview

    hi
    Please consider this blog post, "ADF Faces: How-to issue a PPR event from a f:subview and how-to PPR of subviews" :
    http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-how-to-issue-a-ppr-event-from-a-fsubview-and-how-to-ppr-of-subviews/
    In this post, Frank Nimphius writes : "... PPR from a containing page to the subview - unfortunately - only works for the whole subview, which means that the included page is getting refreshed. Because the f:subview component does not support PR, you need to work with a wrapping ADF Faces container, like af:panelGroup ...".
    But, it looks like such partial page rendering in a subview can be done without a specific "wrapping ADF Faces container" like this ...
            <h:form id="firstPPRPageFormID">
              <af:panelPage title="firstPPRPage">
                <af:panelHeader text="components on firstPPRPage">
                  <af:panelForm>
                    <af:panelLabelAndMessage label="dateUtil.currentDateAsString, with partial trigger">
                      <af:outputText value="#{dateUtil.currentDateAsString}"
                                     partialTriggers="firstSubviewID:firstSubviewCButton"/>
                    </af:panelLabelAndMessage>
                    <af:panelLabelAndMessage label="dateUtil.currentDateAsString">
                      <af:outputText value="#{dateUtil.currentDateAsString}"/>
                    </af:panelLabelAndMessage>
                    <f:facet name="footer">
                      <af:commandButton text="firstPPRPage button"
                                        id="firstPPRPageCButton"
                                        partialSubmit="true"/>
                    </f:facet>
                  </af:panelForm>
                </af:panelHeader>
                <f:subview id="firstSubviewID">
                  <jsp:include page="/firstSubview.jspx" flush="true"/>
                </f:subview>
              </af:panelPage>
            </h:form>... and where firstSubview.jspx contains something like this ...
      <af:panelHeader text="components on firstSubview">
        <af:panelForm>
          <af:panelLabelAndMessage label="dateUtil.currentDateAsString, with partial trigger">
            <af:outputText value="#{dateUtil.currentDateAsString}"
                           partialTriggers=":firstPPRPageFormID:firstPPRPageCButton"/>
          </af:panelLabelAndMessage>
          <af:panelLabelAndMessage label="dateUtil.currentDateAsString">
            <af:outputText value="#{dateUtil.currentDateAsString}"/>
          </af:panelLabelAndMessage>
          <f:facet name="footer">
            <af:commandButton text="firstSubview button" id="firstSubviewCButton"
                              partialSubmit="true"/>
          </f:facet>
        </af:panelForm>
      </af:panelHeader>Note the value ":firstPPRPageFormID:firstPPRPageCButton" for the partialTriggers attribute.
    see http://verveja.footsteps.be/~verveja/files/oracle/PartialPageRenderingInSubview-v0.01.zip (check README.txt)
    questions:
    (1) Why exactly does this approach seem to work?
    (2) Because of question (1), what could be potential issues with this approach?
    regards
    Jan Vervecken

    Jan,
    good job ! I actually never thought of reversing what I said about PPR'ing a component from a subview.
    Actually
    partialTriggers=":firstPPRPageFormID:firstPPRPageCButton"/>
    works because the leading ":" makes ADF Faces to start the component search from the root container. Note that if you use af:form instead of h:form, the trigger is
    partialTriggers=":firstPPRPageCButton"/>
    I'll update my blog
    Frank

  • ADF UIX Partial page rendering

    Hi
    I am facing a mysterious problem with partial page rendering in ADF UIX.
    My page contains a <header> H1 and inside this there are two headers(H2 and H3).
    The partial page rendering is in the header H2 and is working fine.
    When i remove the below header H3 the partial page rendering ceases to work and get stuck.
    Pasting the full code below. Please suggest.
    <?xml version="1.0" encoding="windows-1252"?>
    <!-- $Header: registration.uix 115.4.51.4 2009/12/14 13:10:05 kcthirum noship $ -->
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    xmlns:myTemplate="http://xmlns.oracle.com/xhub"
    xmlns:bc4j="http://xmlns.oracle.com/uix/bc4j"
    xmlns:data="http://xmlns.oracle.com/cabo/marlin" expressionLanguage="el">
    <!--This UIX page is used as a tutorial page for new developers, which is why it has a lot of comments-->
    <!--This section describes the ApplicationModule used by this page, and any View Objects that are used to display UI components or are used in any of the event handlers-->
    <bc4j:registryDef>
    <!-- XhubRegAM is the application module used by the entire Registration flow. defFullName is just the class. configName is the Configuration, which always has the pattern <AM name>Local -->
    <bc4j:rootAppModuleDef name="XhubRegAM"
    defFullName="oracle.apps.snw.tpadmin.server.XhubRegAM"
    configName="XhubRegAMLocal" releaseMode="stateful">
    <bc4j:viewObjectDef name="TpProfilesRegVO" rangeSize="1" autoCreate="false"/>
    <bc4j:viewObjectDef name="UsersRegVO" rangeSize="1" autoCreate="false"/>
    <!--IdentifierDomainsView drives the dropdown list of Identifier Types-->
    <bc4j:viewObjectDef name="IdentifierDomainsView" rangeSize="20"/>
    <!--XhubTerritoriesTlView drives the dropdown list of Countries-->
    <bc4j:viewObjectDef name="XhubTerritoriesTlView" rangeSize="300"/>
    </bc4j:rootAppModuleDef>
    </bc4j:registryDef>
    <!--We import the template file xhub.uit, which has code to display the tabs, subtabs, global buttons, etc., appropriately-->
    <templates xmlns="http://xmlns.oracle.com/uix/ui">
    <templateImport source="xhubtpadmin.uit"/>
    </templates>
    <content>
    <!--in this section we define all of the methods and ResourceBundle classes that we want to reference as data sources in our page-->
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!--We use the TextProvider class to display ANY text to the user. All text is controlled in the database and cached on the middle tier. This allows for translation and for customization of text-->
    <data name="textSource">
    <bundle class="oracle.apps.snw.uicommon.TextProvider"/>
    </data>
    <!--This method provides information about the hub-->
    <data name="adminInfo">
    <method class="oracle.apps.snw.tpadmin.webui.AdminInfo"
    method="getAdminInfo"/>
    </data>
    </provider>
    <contents>
    <document>
    <!--This section defines the html metadata, usually just the page title-->
    <metaContainer>
    <head title="${textSource.REGISTRATION}"/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <!--This next tag indicates that everything inside of it should be encapsulated in the "rootChild" node of the template page-->
    <myTemplate:xhubTpAdminPageLayout selectedTab="1">
    <contents>
    <!-- this will contain any validation errors after form submission -->
    <messageBox automatic="true"/>
    <!--The form tag is necessary for any kind of form handling. This particular form performs some javascript validation before submitting-->
    <form name="reg" method="POST">
    <contents>
    <!--The javascript that is executed on form submission-->
    <!-- we cannot implicitly determine that events will be triggered because submit buttons are outside the form scope, so add the placeholder explicitly -->
    <formParameter name="event"/>
    <!-- define the bc4j scope of all child elements-->
    <bc4j:rootAppModuleScope name="XhubRegAM">
    <contents>
    <!-- a top-level header -->
    <header text="${textSource.REGISTRATION}">
    <contents>
    <!-- always used OraInstructionText, not <tip>, for explanation messages-->
    <styledText styleClass="OraInstructionText"
    text="${textSource.REG_PAGE_EXPLAIN}"/>
    <!-- a second-level header -->
    <header text="${textSource.REG_COMPANY_INFO}">
    <contents>
    <stackLayout>
    <contents>
    <!-- the labeledFieldLayout is the correct layout for vertically-stacked labeled fields-->
    <labeledFieldLayout id="TpPartialDetails" width="80%"
    labelWidth="40%">
    <contents>
    <messageChoice name="OracleAppsCustFlag"
    prompt="Oracle Apps Customer"
    required="yes" statePreserved="true"
    selectedValue="${ui:defaulting(uix.pageProp.OracleAppsCustFlag, 'select')}">
    <primaryClientAction>
    <firePartialAction event="buyorsup"
    targets="TpPartialDetails"
    formSubmitted="true"
    unvalidated="true"/>
    </primaryClientAction>
    <contents>
    <option text="-select-" value=""/>
    <option text="${textSource.YES}" value="Y"/>
    <option text="${textSource.NO}" value="N"/>
    </contents>
    </messageChoice>
    <messageTextInput prompt="${textSource.ORACLE_CSI_Q}"
    name="OracleCsi"
    text="${uix.pageProp.OracleCsi}"
    rendered="${ui:defaulting(uix.pageProp.OracleCsiRender, 'false')}"/>
    <messageTextInput prompt="${textSource.YOUR_TP_NAME}"
    name="TpName"
    tip="${textSource.YOUR_TP_NAME_TIP}"
    required="no"
    text="${uix.pageProp.TpName}"
    rendered="${ui:defaulting(uix.pageProp.TradeswithTPRender, 'false')}"/>
    <messageTextInput prompt="${textSource.YOUR_TP_ALIAS}"
    name="TpAlias"
    tip="${textSource.YOUR_TP_ALIAS_TIP}"
    required="no"
    text="${uix.pageProp.TpAlias}"
    rendered="${ui:defaulting(uix.pageProp.TradeswithTPAliasRender, 'false')}"/>
    </contents>
    </labeledFieldLayout>
    </contents>
    </stackLayout>
    </contents>
    </header>
    <!--level-2 header-->
    <header text="${textSource.TP_DEFAULT_CONTACT_INFO}">
    <contents>
    <labeledFieldLayout width="80%" labelWidth="40%">
    <contents>
    <!--all of these fields default to the corresponding ctrl:page value if the user has entered a value. These values are set up in the register() handler-->
    <messageTextInput prompt="${textSource.PASSWORD_PROMPT}"
    name="Password" id="Password"
    required="yes" secret="true"
    maximumLength="32"
    text="${uix.pageProp.Password}"/>
    <messageTextInput prompt="${textSource.PASSWORD_CONFIRM_PROMPT}"
    name="PasswordConfirm"
    id="PasswordConfirm" required="yes"
    secret="true" maximumLength="32"
    text="${uix.pageProp.PasswordConfirm}"/>
    </contents>
    </labeledFieldLayout>
    </contents>
    </header>
    </contents>
    </header>
    </contents>
    </bc4j:rootAppModuleScope>
    <spacer height="10"/>
    <!--message indicating how we indicate required fields-->
    <inlineMessage required="yes"
    prompt="${textSource.REQUIRED_FIELD}"/>
    </contents>
    </form>
    </contents>
    <!--the contents of this tag will appear below the page-->
    </myTemplate:xhubTpAdminPageLayout>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <!--event handlers-->
    <handlers>
    <!--This event is called by pressing the submit button-->
    <event name="continue">
    <bc4j:findRootAppModule name="XhubRegAM">
    <method class="oracle.apps.snw.tpadmin.webui.RegistrationHandlers"
    method="register"/>
    </bc4j:findRootAppModule>
    </event>
    <!--This event is called by pressing the Cancel button-->
    <event name="cancel">
    <!-- finding the ApplicationModule causes it to be checked out from the ApplicationPool. It is released after rendering completes. -->
    <bc4j:findRootAppModule name="XhubRegAM">
    <!-- rollback the current transaction -->
    <bc4j:rollback/>
    <!-- forward to the summary page -->
    <go name="main"/>
    </bc4j:findRootAppModule>
    </event>
    <!--the * event is called whenever the page is accessed and no other event is called-->
    <event name="buyorsup">
    <bc4j:findRootAppModule name="XhubRegAM">
    <!--This method sets the context of the page, namely the scope of the country dropdown view object-->
    <method class="oracle.apps.snw.tpadmin.webui.RegistrationHandlers"
    method="isBuyerorSupplier"/>
    </bc4j:findRootAppModule>
    </event>
    <event name="*">
    <bc4j:findRootAppModule name="XhubRegAM">
    <!--This method sets the context of the page, namely the scope of the country dropdown view object-->
    <method class="oracle.apps.snw.tpadmin.webui.RegistrationHandlers"
    method="setContext"/>
    </bc4j:findRootAppModule>
    </event>
    </handlers>
    </page>
    Please suggest if you know of any documentation on ADF UIX partial page rendering.
    ADF UIX has very little documentation online and finding it hard to debug this issue.
    It ll be of great help.
    Thanks
    Kamal

    Hi Jason,
    As of EA9, all rendered components support a partialTriggers attribute. This attribute takes a list of master component IDs. If any of the master components are updated via a partial event, the dependent component will be rerendered in the partial update.
    If you are on an earlier release, you should upgrade.
    Thanks,
    Jeanne

  • ADF Faces : simultaneous partial page rendering

    hi
    I'm wondering what I can expect from "simultaneous partial page rendering".
    I would like to have some af:selectOneChoice components on a page, with next to them some related information about the selected value.
    This example application, created using JDeveloper 10.1.3.3.0, does this using partial page rendering (check README.txt):
    http://verveja.footsteps.be/~verveja/files/oracle/SimultaneousPPRApp-v0.01.zip
    It as a pprPage.jspx with these components ...
              <af:panelPage title="pprPage">
                <af:panelHorizontal>
                  <af:commandButton text="some button"/>
                  <af:objectSpacer width="10" height="10"/>
                  <af:outputText value="requestCounter.value = #{requestCounter.value}"/>
                </af:panelHorizontal>
                <af:panelHorizontal>
                  <af:selectOneChoice label="selectOneChoice A"
                                      id="selectOneChoiceA" autoSubmit="true"
                                      binding="#{backing_PPRPage.selectOneChoiceA}"
                                      valueChangeListener="#{backing_PPRPage.onChangeSelectOneChoiceA}">
                    <af:selectItem label="null value label"
                                   value="#{null}"/>
                    <af:selectItem label="first choice label"
                                   value="first-choice-value"/>
                    <af:selectItem label="second choice label"
                                   value="second-choice-value"/>
                    <af:selectItem label="third choice label"
                                   value="third-choice-value"/>
                  </af:selectOneChoice>
                  <af:objectSpacer width="10" height="10"/>
                  <af:outputText value="#{backing_PPRPage.selectOneChoiceARelatedValue}"
                                 partialTriggers="selectOneChoiceA"/>
                </af:panelHorizontal>
                <af:panelHorizontal>
                  <af:selectOneChoice label="selectOneChoice B"
                                      id="selectOneChoiceB" autoSubmit="true"
                                      binding="#{backing_PPRPage.selectOneChoiceB}"
                                      valueChangeListener="#{backing_PPRPage.onChangeSelectOneChoiceB}">
                    <af:selectItem label="null value label"
                                   value="#{null}"/>
                    <af:selectItem label="fourth choice label"
                                   value="fourth-choice-value"/>
                    <af:selectItem label="fifth choice label"
                                   value="fifth-choice-value"/>
                    <af:selectItem label="sixth choice label"
                                   value="sixth-choice-value"/>
                  </af:selectOneChoice>
                  <af:objectSpacer width="10" height="10"/>
                  <af:outputText value="#{backing_PPRPage.selectOneChoiceBRelatedValue}"
                                 partialTriggers="selectOneChoiceB"/>
                </af:panelHorizontal>
                <af:outputText value="userAgentHelper.info = #{userAgentHelper.info}"/>
              </af:panelPage>... and has a backing bean like this ...
    public class PPRPage
         public String getSelectOneChoiceBRelatedValue()
              return "some " + fSelectOneChoiceB.getValue() + " related value"
                   + ", requestCounter.value = " + ELHelper.get("#{requestCounter.value}");
         public String getSelectOneChoiceARelatedValue()
              return "some " + fSelectOneChoiceA.getValue() + " related value"
                   + ", requestCounter.value = " + ELHelper.get("#{requestCounter.value}");
         public void onChangeSelectOneChoiceA(ValueChangeEvent pValueChangeEvent)
              // simulating a slow operation/response
              try
                   Thread.sleep(2000);
              catch (InterruptedException ex)
                   ; // ignore;
         public void onChangeSelectOneChoiceB(ValueChangeEvent pValueChangeEvent)
              // nothing here to slow things down
    }It is important to note that changing the value for the "selectOneChoice A" dropbox has some time consuming operation to perform (possibly calculating/querying the related information to show next to it).
    Using IE 6 ("userAgentHelper.info = ... MSIE 6.0 ..."), this behaves like this:
    (ie-1) Run pprPage.jspx in JDeveloper, which results in a page that shows this:
    selectOneChoice A [null value label] some null related value, ...
    selectOneChoice B [null value label] some null related value, ...(ie-2) Select "first choice label" from the "selectOneChoice A" dropbox and immediatly after that select "fourth choice label" from the "selectOneChoice B" dropbox, which results in a page that shows this:
    selectOneChoice A [first choice label] some first-choice-value related value, ...
    selectOneChoice B [fourth choice label] some null related value, ...(ie-3) Select "second choice label" from the "selectOneChoice A" dropbox, which results in a page that shows this:
    selectOneChoice A [second choice label] some second-choice-value related value, ...
    selectOneChoice B [fourth choice label] some fourth-choice-value related value, ...Using Firefox 2.0 ("userAgentHelper.info = ... Firefox/2.0.0.12"), this behaves like this:
    (ff-1) Do the same as in step (ie-1), which has the same result as step (ie-1).
    (ff-2) Do the same as in step (ie-2), which results in a page that shows this:
    selectOneChoice A [first choice label] some first-choice-value related value, ...
    selectOneChoice B [fourth choice label] some fourth-choice-value related value, ...
    questions:
    (q1) Why does the related information, for the selected "fourth choice label", not show up in step (ie-2) (as it does in step (ff-2))?
    (q2) Why does the related information, for the selected "fourth choice label", show up in step (ie-3) while the value was only/already changed in step (ie-2)?
    (q3) Does some general approach exist to prevent "simultaneous partial page rendering" behaviour as described in (q1) and (q2)?
    many thanks
    Jan Vervecken

    repost
    --

  • Partial Page Redering in ADF

    Hi,
    How to implement partial Page Redering in ADF

    Have a look at the documentation - Web User Interface Developers Guide for Oracle Application Development Framework - chapter 7 - Rendering Partial Page Content
    Everything is explained there and a lot better than I can do :-)
    HTH
    Paul

  • ADF/JSF page loads when any command button is clicked

    Hello All,
    I am lost in the ADF/JSF page flow (using Jdev 10.1.3). Following are the tags (in order) in my page;
    (WHEN THIS PAGE LOADS, IT GOES TO THE DATABASE TO GET VALUES (for the drop down lists that will appear on the page); THIS SHOULD HAPPEN JUST ONCE AND AT THIS POINT)
    <f:view>
    <afh:body>
    <afh:html>
    <af:form>
    <af:panelpage>
    <f:facet name="contextSwitcher">
    <af:panelHorizontal> has a af:commandLink </af:panelHorizontal>
    </f:facet>
    <f:facet name="messages">
    <af:messages/>
    </f:facet>
    <af:panelform>
    <h:panelGrid columns="2" cellspacing="14">
    has 2 panelgroups (one group has *2 SelectOneChoice lists (that need to be populated by fetching data from database* and the other group has 2 CommandButtons - 'Go' and 'Cancel") (GO BUTTON SETS THE SHOWPANEL() TO TRUE)
    (WHEN GO BUTTON IS CLICKED, THE PAGE GOES TO THE DATABASE (AS IT DID ON PAGE LOAD). *THIS SHOULD NOT BE HAPPENING*. ONLY THE METHOD (action="#{muBean.doWork}" )THAT IS ASSOCIATED WITH GO BUTTON ACTION SHOULD BE CALLED)
    </h:panelGrid>
    <h:panelGrid columns="2" cellspacing="14" rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has 3 inputText fields
    </h:panelGrid>
    <af:table var="someTable" rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has a bunch of af:columns
    </af:table>
    <af:panelHorizontal rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has 3 af:commandButtons - submit, save, add row
    (WHEN submit or save or add row BUTTON IS CLICKED, THE PAGE KIND OF LOADS AND GOES TO THE DATABASE (AS IT DID ON PAGE LOAD). *THIS SHOULD NOT BE HAPPENING*. ONLY THE METHOD THAT IS ASSOCIATED WITH submit/save/add row BUTTON ACTION SHOULD BE CALLED)
    </af:panelHorizontal
    </af:panelForm>
    </af:panelPage>
    <!-- Footer -->
    <jsp:include page="/pages/includes/footer.jspx"/>
    </af:form>
    <f:verbatim>
    <script type="text/javascript" src="../script/tree.js"></script>
    </f:verbatim>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>
    _*why is it that when the command buttons are clicked, the whole page is loaded? Only the methods associated with the action (action="#{newMapRequestItem.addARow}" ) should be called.*_
    _*IS THERE A WAY TO AVOID THIS WITHOUT USING PARTIAL PAGE RENDERING ?*_
    _*DOES MY TAG NESTING LOOK OK?*_
    Edited by: user12054715 on Mar 24, 2010 12:00 PM

    Can somebody please address this?
    Thanks,

  • Global error page - compatible with partial page rendering

    My global error page doesn't show in some isolated cases. Could this be because of partial page rendering? What changes might be needed to have it work in all cases?
    I have created a global error page and set it in the web.xml with:
    <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>pages/htmlErrorPage.html</location>
    </error-page>
    This displays the htmlErrorPage when errors occur in nearly all my tested cases. However, when the test error is created inside one page redraw I find that the application dies without ever displaying my error page. On the console I get an error message that starts with:
    Jun 13, 2008 12:54:11 PM oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer encodeAll
    SEVERE: Error during partial-page rendering
    javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.softrek.adf.view.managed.JFreeChartPlotter'.. class com.softrek.adf.view.managed.JFreeChartPlotter : java.lang.NullPointerException
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
    But my error page doesn' t show up. I've used the identical test error in most other parts of my application and it shows - so other than the partial page rendering going on, I can't see why this case would be different.
    Is there any known bug (or feature) about the use of an error page during partial page rendering?
    Any ideas will be welcome.

    I'm unclear on how I would get the error to redirect.
    I've changed my web.xml to go to a servlet of my creation, set up the mapping and all.
    It works fine for exceptions generated in a backing bean normally.
    When the exception occurs as part of partial page rendering the error servlet is not called and the user's session dies.
    This is being done in JDeveloper 10.1.3.3
    The new web.xml contains:
    <error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/servlet/errorAction</location>
    </error-page>
    Which is working for errors generated under most circumstances but not when they are inside my partial page change.
    How do I get errors to go to my error page when the error occurred during PPR?
    PS. Using the PartialPageUtils.isPartialRequest() method generated a recursive error in my error servlet. This looks like the known limitation for Faces error handling.

  • How to use Partial Page Navigation

    according to Web User Interface Developer's Guide for Oracle Application Development Framework section 7.4.1 How to Use Partial Page Navigation,
    I set 'oracle.adf.view.rich.pprNavigation.OPTIONS' to 'on' in the web.xml.
    and in the jspx, I use af:commandNavigationItem to navigation and set the tag 'partialSubmit' attribute to true.
    But it does not work. does anybody know how to use this feature?

    Hi,
    the question is "what does not work". Partial Page Navigation is there to improve performance on page navigation. So if you navigate from page1 using a navigation case to end up at page 2 then the outcome of the command action's action property should match the navigation case name.
    Frank

  • Partial Page Rendering with HTMLDB2.0. How can I do it?

    Hi,
    somebody told me, that PPR is implemented in HTMLDB 2.0. So not the whole page will be rerendered after a submit but a single region. I know this very helpful feature from the ADF-Java Server Faces. How can I do it with HTMLDB 2.0?
    Bye,
    Rumburak

    Hello,
    Take a look at this thread.
    Netflix: Nice UI ideas
    Also just so you know PPR Partial Page Refresh is an Oracle term you would probably have better luck looking for AJAX or XMLHTTP when looking in the forums
    Carl

  • Partial Page Rendering - newbie question

    I am a newbie to ADF and I am in the process of trying out the tutorial "Developing Ajax-Based User Interfaces with ADF Faces Rich Client Components" http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_56/jdtut_11r2_56.html
    I have a question regarding Step 4. I am not very sure where to post this question, if this is not the correct forum, pardon me.
    Under "Step 4: Implementing Partial Page Rendering" there is this following comment
    In order to have a refresh of the Product Details when you select another row in the Product table, we need to set the Partial Rendering behavior. To do so, perform the following steps:
    Similarly On Step 3, sub step 26 states "Finally, double-click on any of the rows in the product table. Notice that the Product Details pane does not reflect the change in the selected product. To implement this synchronization, we need to add partial page rendering functionality."
    Question: even before I tried any of the changes mentioned in step 4, I am finding that the product details pane does show information related to the product selected on the panel collection (in other words it is displaying the master detail information automatically). What am I missing here? As per the training document it is supposed to work only after implementing changes mentioned in step 4. Can one of you kindly point out if this is a mistake in documentation or if I have misunderstood the statement?
    Thanks
    A Sreedhar

    Frank,
    Thank you very much for the quick turnaround; I appreciate it.
    Yes, I am using what seems to be the latest version of JDev (11.1.2.3.0); and yes the ChangeEventPolicy for the iterator is set to "ppr". Thank you for pointing that out.
    Does that mean ppr is standard for most components (when I say components, I mean adf tables, button's etc), don't we need to add any special events to get that to work?
    I just wanted to see, what will it due if the ChangeEventPolicy for the iterator is set to "None"; made the change saved it, there were two iterators I changed the "ChangeEventPolicy" on both to none; saved it and ran the page. It worked same as before; I was expecting it will not load the corresponding data at the child level, but it did. can you kindly point out what is wrong.
    <executables>
    <variableIterator id="variables"/>
    <iterator Binds="root" RangeSize="25" DataControl="StoreProducts" id="StoreProductsIterator"
    ChangeEventPolicy="none"/>
    <accessorIterator MasterBinding="StoreProductsIterator" Binds="products" RangeSize="25" DataControl="StoreProducts"
    BeanClass="tutorial.model.Product" id="productsIterator" ChangeEventPolicy="none"/>
    </executables>
    Thanks
    Aravind S

  • Partial page rendering not working in ie9

    Hello guys, i have one fusion web application and got menu navigation using partial page rendering. The problem is, the ppr is working fine in firefox, chrome, ie8 and ie7 but not working in ie9. Is it i need to update jdeveloper patch or something?
    My ppr setting
    put below code in web.xml
    <context-param>
    <param-name>oracle.adf.view.rich.pprNavigation.OPTIONS</param-name>
    <param-value>on</param-value>
    </context-param>
    for the menu just enable partial submit
    partialSubmit="true"

    Oh sorry, currently i am using jdeveloper version 11.1.1.5.0. Actually it is not shown any error, when i click the command link as example below, in ie9, nothing happens still displaying same page (my main page).
    my sample menu
    *<af:commandLink partialSubmit="true" action="page1" text="Page 1" id="cl2"/>*
    *<af:commandLink partialSubmit="true" action="page2" text="Page 2" id="cl3"/>*
    in task flow, action page1 will open page1.jspx and page2 will open page2.jspx

  • XML file Upload in ADF UI page

    Hi,
    I have following requirement:
    a) There will be an upload button on the ADF UI page.
    b) The ADF UI will allow user to browse and select the XML file
    c) Once XML file is selected there will be a Load button.
    Note: I am fine till step c)....
    d) Upon the Load, UI Screen should be populated with the XML content.
    e.g. UI screen will have Book Title and Author text boxes and the data for Title and Author should be loaded from XML file.
    e) Once data is loaded in ADF UI page (from XML) , it should allow user to modify Title and Author in UI screen.
    f) After modifying the data, user should be allowed to save modified content either in XML file or Database.
    Note: On the OTN forum I posted similar question and I found the partial solution of using the URLConnection Data control, however this data control does not allow you to modify the content on the ADF UI page.
    Thanks

    Hi,
    Note: On the OTN forum I posted similar question and I found the partial solution of using the URLConnection Data control, however this data control does not allow you to modify the content on the ADF UI page.
    Not quite true what you say. The data control shows the data as read only. However, setting the updateable property on the metadata will allow you to create an input form, which is editable. For this, in the Data Control for the URL data control, select the collection and choose "Edit Definition" from the context menu. Select Attributes and if this doesn't show the attributes, follow the link in the Attributes field. Then select each attribute and set the updateable property using the PI
    The question then is how you perform the update, which is what the URL data control doesn't do for you. For this you need to expose methods in a POJO that you then expose as a POJO data control. With your knowledge about the location and name of the XML file, you can then use JAXB to upload the XML, or a database bound collection (EJB, ADF BC or JDBC) to write changes to the database. Note that JAXB could also be used read from teh XML file and show the data in the UI using the JavaBean Data Control.
    To access the object to use for updating the XML file or the database, you use ((DCIteratorBinding)bindings.get("IteratorNameInPageDef")).getCurrentRow().getDataProvider()
    Frank

  • ADF web pages not getting displayed inside the frame

    I am working with an Oracle Application called "Oracle Transportation Management"...to which our Development Group have asked to log an issue to this forum thread. Please let us know if you can assist:
    Client has added an external link to an ADF web page in OTM and when they click the link, it gives an error message saying it cannot be displayed within frame. Per the client, if they add frame busting to the deployment descriptor, it makes other screens in OTM to open in new window.
    ERROR:
    Warning: Unable to load content in a frame. Frame content will load at the top level.
    we tried setting "oracle.adf.view.rich.security.FRAME_BUSTING" to "never", but this makes all selections open in a new window.
    How do we correct this?

    Hi,
    wrong forum. If this is an existing application that you are not developing then the problem needs to be tracked by the application owner. If this happens to be Oracle Applications then you can use one of their forums here on OTN. Note that normally setting frame bursting to never indeed should solve the problem
    Note: This context parameter is ignored and will behave as if it were set to never when either of the following context parameters is set to true
    org.apache.myfaces.trinidad.util. ExternalContextUtils.isPortlet
    oracle.adf.view.rich.automation.ENABLED
    Frank
    Edited by: Frank Nimphius on Oct 27, 2010 7:43 AM

Maybe you are looking for

  • Error message when inserting built in flash buttons

    Anyone help point me to a solution? Previously worked fine - but now a problem. When wanting to either add or edit existing flash buttons, all I get is "Error unknown" - no ref ID to help me. In the html editor window - I can no longer see the flash

  • IWeb??  Publish not working.

    I created a website using photos from my iPhoto.  I used the iWeb in iPhoto.   I completed the page and then "published" it.   But it is not working.   It says HTML not available.   Am I leaving out a step?   Thank you.   I have an iMac G5.   Can you

  • Macbook Pro 2013 Retina very slow

    My laptop started to act very slow with the fan constantly running. I look at the activity monitor and it shows more than 80% of resourses, I had nothing running at the time. Decided to take it in to the Apple store, it was a miracle the computer sta

  • After 10.5.3 update i can't boot up to my desktop

    I updated my macbook with 10.5.3 and everything is fine; But, I updated my wife's MacBook and it won't boot up past a light blue screen; it is stuck; the only difference was she had other updates, as well as Leopard update; What can i do to get hers

  • CRM-XI-MDM Integration End To End Scenario

    Hi Frnds any Body share CRM-XI-MDM Integration, I searched in forum, But i dint find the doc.... Regards, Raj