Adf bindings of an included page

I'm using adf/jsf, jdev 10.1.3.4. I'm trying to use the af:menuBar component in conjunction with the af dialog/popup functionality. More specifically, when the user clicks a menu item to navigate, if there are changes to the data on the current page (transaction is dirty), I want the popup dialog to ask the user if they want to save the changes before navigating.
I've got this working from a simple command button on a jspx page. However, the first issue I'm having with trying to implement this from the menuBar component is that the menuBar is an included page. I use injection in the faces-config to inject the bindings into the backing bean associated with the 'master' page:
<managed-bean>
<managed-bean-name>backing_ApplSrch</managed-bean-name>
<managed-bean-class>view.backing.setup.applications.ApplSrch</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>bindings</property-name>
<value>#{bindings}</value>
</managed-property>
</managed-bean>
The code, which is in the backing bean for the page, that determines if the transaction is dirty looks like this:
protected boolean isDirty(){
Boolean b;
if (bindings == null){
return false;
b = ((Boolean) JSFUtils.resolveExpression("#{bindings.Commit.enabled}"));
// if there is no commit binding, the form is by definition not dirty
if (b == null){
return false;
return b.booleanValue();
My problem is that when this code checks the bindings value, it's always null. So, the tranaction is never dirty, even when i know it is. I assume this is due to the fact that the code is checking for any bindings in a pageDef behind the menuBar.jspx instead of checking the bindings in the pageDef behind the 'main' page.
Right now, the only solution I can think of would be not to include the menu jsp and instead add the code for it to every jsp page. However, from a reusability/maintenance standpoint, I'd rather not do it this way. Anyone have any ideas on how i can determine if transaction is dirty from an included page?

I figured out the solution to that particular problem. Thanks.

Similar Messages

  • ADF Faces: included pages and bindings

    Hello all,
    I want to create a page with a panelSplitter, where the left panel has some sort of selection menu and the right panel displays a page depending on the selection made.
    I am displaying the pages with ppr using f:subview and jsp:include. I have already learned that the bindings for the included page must be in the pageDef of the enclosing form for it to work properly. Now I found a post in the forum where someone said that in JDev 11 it would be possible to include one pageDef into another pageDef. Is that feature already available in the 11g Preview? If so, how do I use it?
    Thanks,
    Achim

    Achim,
    Including a .jsff page in a jspx/jsp page with the jsp:include tag will not include any pageDef associated with the page fragment. Instead you can include a page fragment in a page by creating a task flow that contains the fragment you wish to reference and then include the task flow in you jspx via an af:region. Below is a link to an online demo the illustrates how-to create a task flow.
    http://www.oracle.com/technology/products/jdev/viewlets/11/index.html
    --Ric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • ADF Bindings Servlet/Filter  not invoking  Faces Servlet

    I'm getting ADF Faces and Facelets working properly with pages written in jspx format, but the Faces Servlet being mapped to jsf format.
    The problem I'm getting is while displaying ADF Tables with data retrieved from the database using Toplink and bindings provided by ADF Databindings.
    The following is the Web.xml mappings for Faces Servlet and ADF bindings filter:
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    I'm getting the ADF tables displayed using ADF Bindings, if the faces servlet is mapped for jspx format;but, at the cost of losing Facelets...Facelets is not working with Faces Servlet mapped to jspx format(though written in jspx format, the faces servlet mappping has to be made for jsf format.On the other hand, if I use faces servlet mapping for jsf pages I'm getting Facelets working but ADF Databindings are not working ,(I guess) and hence ADF Faces Tables are not being displayed(I'm getting Access Denied message).
    I even tried to change the ADF binding filter mappings
    ---- from ---- jsp &jspx---- to ----- jsp and jsf ----
    But I got the same Access denied message.
    I read a similar post on this forum by Mr.Ashish Kumar who said he is using java script and automatic form submission, to refresh the page and that gave him the table working.
    as quoted in the post:
    af:table displays Access Denied
    Why should the page be refreshed at all. I Guess , the Faces Servlet is not being invoked by the ADF Bindings Filter/Servlet, and for this , I suppose , Mr.Ashish is using java script to provide the action required.
    And one more thing which that Automatic Refreshing of page using JavaScript cannot do.
    Suppose,
    I need customised display, rather than just a Table or Form,like:
    public String getEmp() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("findAllEmp");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    List<Emp> res=(List<Emp>)result;
    for(int i=0;i<res.size();i++)
    Emp myrec=res.get(i);
    System.out.println("Employee ["+myrec.getEname()+"], Salary ["+myrec.getSal()+"]");
    return "";
    where I do some customisation in the backing bean.
    and I call that method binded to a button as below:
    <af:commandButton
    text="findAllEmp"
    disabled="#{!bindings.findAllEmp.enabled}"
    binding="#{backing_Success.commandButton1}"
    id="commandButton1"
    action="#{backing_Success.getEmp}"/>
    What I'm getting is a disabled button.
    Why doesn't ADF bindings servlet invoke the faces Servlet?
    Can't we make ADF Bindings Servlet invoke Faces Servlet by configuring in the web.xml?
    Can't we get ADF Bindings filter mapped to work with jsf pages?
    Won't ADF Bindings work with jsf pages, will they work only with jspx pages?
    ADF Team,
    Please Help me.
    Thanking you,
    Samba

    Hi! Frank,
    Thankyou for your Reply.
    Yes, Mr.Adam Winer has contributed that library, I guess.
    But I already have that adf-facelets.jar in my lib folder ; and with out that the Facelets won't work with ADF faces , in the first place.
    I'm getting Facelets working excellently with ADF Faces but I'm not getting ADF Bindings working with Faceletpages.
    The thing is even in another application which does not have facelets in it, if we use mapping for jsf pages, ADF Bindings are not working.
    I think the ADF bindings filter is configured some where to work with jspx pages only.Could you tell me where to change that entry to make ADF Bindings work with jsf extension?
    Thanking you,
    Samba.

  • Unable to acess page fragraments bindings of included page fragment

    Hi All,
    We are using Jdeveloper 11.1.1.5.0
    I have included a page fragment(say JSFF2) inside a page fragement one(JsFF1).
    Issue is, bindings defined in the page defination of JSFF2 is not getting picked up
    when jsff1 is rendered on UI.
    Can any one please help how we can include the page defination of J2FF2 inside the
    pagedefination of JsFF1, without using the regions?
    used declarative component to add the page
    <af:declarativeComponent viewId="/com/panduit/spa/pageFragments/spaMaintaince/PartsPricing.jsff"
    id="dc1"/>
    Thanks,
    Chandana

    Thanxz for the response.
    I have two jsff page parentjsff and childjsff. Using declarative component i have include child jsff in parent jsff.
    On my my child jsff , I have table which based on transient VO.No data is being displayed in the table, when I run my JSPX that contains parent JSFF.
    But when Ii include transient VO iterator in my parents jsff page def, then only data is being displayed.
    Thanxz
    Chandana

  • Limitation on number of adf components on a jsp page?

    I am currently working on a page which comprises a number of af:table components with underlying af:column components for each table. The page also contains other adf components. My question is as stated above, is there a limitation on the number of adf components that are allowed on a page and if so what this is?
    I have found that page errors I have been having can be resolved by reducing the number of components. For example, by removing af:objectspacer components I am able to include af:column components which previously caused the page to fail.
    Any info would be appreciated.
    Thanks.

    Which version are you on?
    We faced similar problem in 10g. After jspx exceeds a certain size the project doesn't compile.
    This is due to java class file code_length restriction, it cannot be greater than 64K.
    Check this thread for detailed explanation and workaround {thread:id=361086}
    We had worked around the issue by breaking the big page into serveral pages and referring to them in the main page using:
    <f:subview id="SampleSubView">
    <jsp:include page="/app/SamplePage.jspx"/>
    </f:subview>
    Mitesh.

  • ADF bindings are not working with inheritance heirarchy.

    ADF bindings are not working with inheritance heirarchy. I am using embedded OC4J in JDeveloper 10.1.3.2.
    For the data model I have the following objects\attributes.
    1) User (abstract EJB 3.0 POJO)
    - Id
    - userId
    - userName
    2) Employee -> extends User (EJB 3.0 POJO)
    - enabled
    - password
    3) Manager -> extends Employee (EJB 3.0 POJO)
    - numOfEmployees
    4) UserSessionBean (Stateless Session Bean)
    - public User findUserByUserId(String userId)
    - public List<User> queryUserFindAll()
    - Object mergeEntity(Object entity)
    I created 2 JSF pages using ADF.
    1) ListUsers.jspx - Lists all the users of type Employee and Manager in a table. You can select an user and chose to modify the user details using a modify button.
    2) ModifyUser.jspx - Modify the selected user and persist the modified user details.
    I implemented ListUsers.jspx by dragging and dropping queryUserFindAll() method from the ADF datacontrol on to the JSF page and selected ADF Table format with selection enabled.
    Similarly for the ModifyUser.jspx page I dragged and dropped the User object returned by findUserByUserId(String userId) and selected ADF Form format. I selected OutputText field types for userId and userName.
    I then created a navigation case from ListUsers.jspx to ModifyUser.jspx and pass the selected user.
    Now when I try to run the web application, ListUsers.jspx correctly displays all the users. Then I select a user of type Employee and click on the modify button. This brings up the ModifyUser.jspx page. However, the UserId text field displays the value for "Id" field rather than "userId".
    Question that I have is:
    - Why is ADF framework not able to retrieve the appropriate user attribute value for a Employee based on the binding information in case of inheritance ?
    Thanks,
    Piyush

    Hi,
    tried with JDeveloper 10.1.3.3 and this works for me. Try JDeveloper 10.1.3.3 - if it doesn't work, have a closer look at your sessionFacade
    Frank

  • ADF Bindings CRUD with either JDBC or Hibernate

    Does anyone know of an example CRUD application that uses ADF Bindings and either Hibernate or JDBC.
    The site...
    http://technology.amis.nl/blog/index.php?p=765
    uses ADF Bindings and Hibernate, but does not update a database.
    I have attempted to do this myself, but when my add/edit page loads, all of my af:inputtext controls display labels instead of input boxes.
    There are several ADF Biding examples for both Toplink and ADF BC, but if anyone can point me in the direction of examples for JDBC and/or Hibernate, I would appreciate it.

    I have created the target datacontrol for ADF Binding.
    In my DataContorls.dcx file, my datacontrol (a JavaBeanDataControl, not an AdapterDataControl) has its SupportsUpdates attribute = "false".
    When I create a form, the #{bindings.<my_property>.updateable} expression returns false, making it so my af:inputText controls cannot take input data. If I manually set SupportUpdates="true", my #{bindings.<my_property>.updateable} expression still returns false.
    If anyone knows how to set it so I can make it so I can update my java objects, I think I will be set.
    Any help would be appreciated.

  • ADF Bindings are corrupted when non-ADF Bound resource is referenced first

    I have an application that uses ADF BC binding on JSF pages. I recently wrote an image servlet which pulls an image out of the DB and writes it back to the response (so that it can be referenced in an <img> tag, for example). I wrote it to use BC4J to fetch the image BLOB, but it does not reference any page bindings. I use the following to get the app module:
            ImageAmImpl imageAm = (ImageAmImpl) Configuration
              .createRootApplicationModule( "myTestPackage.ImageAm",
                                            "ImageAmLocal" );and the following in a finally block at the end to release it:
            Configuration.releaseRootApplicationModule( imageAm, true );In debugging the image servlet I found that if I hit the image servlet before anything else, my data bindings for other pages appeared to be corrupted.
    For example:
    Server starts
    Then I go to http://127.0.0.1:7101/myApp/imageServlet?imageId=760
    Then I go to http://127.0.0.1:7101/myApp/faces/testListPage.jspx which contains an ADF data bound table, and the table is empty.
    Similarly:
    Server starts
    Then I go to http://127.0.0.1:7101/myApp/faces/testListPage.jspx and the table is populated fine.
    Then I go to http://127.0.0.1:7101/myApp/imageServlet?imageId=760
    I then go back to the table, it’s still populated, but I then have an edit button allowing me to edit an item in the table and my LOV drop down lists (based on ADF bindings) are not populated.
    After doing some poking around in web.xml, I realized that only the faces servlet was behind the oracle.adf.model.servlet.ADFBindingFilter. I put the imageServlet behind this filter and everything is working fine now. I’m at a bit of a loss, though, as to why this works. I would expect the binding filter to only be required for resources that access ADF bindings, and the image servlet does not … it operates directly on a checked out app module. While the problem appears to be resolved, I'd like to have a better understanding of why it was broken in the first place and why putting the image servlet behind the ADF Binding filter fixed it.

    As far as I can understand, Configuration.createRootApplicationModule() should not be used. This method call is intended for use in an unmanaged mode, i.e. Java client.
    Check-out some of the following:
    Check Your App for Misuse of Configuration.createRootApplicationModule()
    When should I use Configuration.createRootApplicationModule(), and when not?
    Regards,
    Nick
    Edited by: Nick Haralabidis on May 18, 2010 12:15 PM

  • ADF Passing parameter between 2 Page Fragments

    Hi,
    I have One Bounded task flow. Inside there are 2 page framgments.
    1)Header Page Pragment has table
    I changed table column itemId to af:commandLink to navigate to next detail page.
                      <af:column sortProperty="ItemId" sortable="false"
                                 headerText="#{bindings.XxTestStgVO1.hints.ItemId.label}"
                                 id="c4">
                        <af:commandLink id="ot3" text="#{row.ItemId}"
                                        action="select">
                          <af:setPropertyListener from="#{row.ItemId}"
                                                  to="#{pageFlowScope.pfsItemId}"
                                                  type="action"/>
                        </af:commandLink>
                      </af:column>While navigating to detail page we are using ExecuteWithParameters.
    <action IterBinding="FilesByItemParam1Iterator" id="ExecuteWithParams"
                RequiresUpdateModel="true" Action="executeWithParams">
          <NamedData NDName="p_item_id" NDValue="#{pageFlowScope.pfsItemId}"
                     NDType="java.lang.String"/>
        </action>However click on Command Linkon header Table is not working.
    I followed steps as in
    http://www.youtube.com/watch?v=4eyzBiIf5MM
    Did i miss anything ? or is there any Property needs to be changed ?
    Thanks,
    Jit

    Hi,
    Source Master Page
    <?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:messages id="m1"/>
          <af:form id="f1">
            <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx"
                             id="pt1">
              <f:facet name="center">
                <af:table value="#{bindings.XxTestStgVO1.collectionModel}" var="row"
                          rows="#{bindings.XxTestStgVO1.rangeSize}"
                          emptyText="#{bindings.XxTestStgVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
                          fetchSize="#{bindings.XxTestStgVO1.rangeSize}"
                          rowBandingInterval="0"
                          filterModel="#{bindings.XxTestStgVO1Query.queryDescriptor}"
                          queryListener="#{bindings.XxTestStgVO1Query.processQuery}"
                          filterVisible="true" varStatus="vs"
                          selectedRowKeys="#{bindings.XxTestStgVO1.collectionModel.selectedRow}"
                          selectionListener="#{bindings.XxTestStgVO1.collectionModel.makeCurrent}"
                          rowSelection="single" id="t1">
                  <af:column sortProperty="ItemId" filterable="true" sortable="true"
                             headerText="#{bindings.XxTestStgVO1.hints.ItemId.label}"
                             id="c1">
                    <af:commandLink id="ot4" text="#{row.ItemId}" action="select"
                                    partialSubmit="true">
                      <af:setPropertyListener from="#{row.ItemId}"
                                              to="#{pageFlowScope.pfsItemId}"
                                              type="action"/>
                    </af:commandLink>
                  </af:column>
                  <af:column sortProperty="ItemNumber" filterable="true"
                             sortable="true"
                             headerText="#{bindings.XxTestStgVO1.hints.ItemNumber.label}"
                             id="c2">
                    <af:outputText value="#{row.ItemNumber}" id="ot3"/>
                  </af:column>
                  <af:column sortProperty="RequestId" filterable="true"
                             sortable="true"
                             headerText="#{bindings.XxTestStgVO1.hints.RequestId.label}"
                             id="c3">
                    <af:outputText value="#{row.RequestId}" id="ot2">
                      <af:convertNumber groupingUsed="false"
                                        pattern="#{bindings.XxTestStgVO1.hints.RequestId.format}"/>
                    </af:outputText>
                  </af:column>
                  <af:column sortProperty="StatusId" filterable="true"
                             sortable="true"
                             headerText="#{bindings.XxTestStgVO1.hints.StatusId.label}"
                             id="c4">
                    <af:outputText value="#{row.StatusId}" id="ot1"/>
                  </af:column>
                </af:table>
              </f:facet>
              <f:facet name="header"/>
              <f:facet name="branding"/>
              <f:facet name="copyright"/>
              <f:facet name="status"/>
            </af:pageTemplate>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>Target Page
    <?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:form id="f1">
            <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx"
                             id="pt1">
              <f:facet name="center">
                <af:outputText value="#{pageFlowScope.pfsItemId}" id="ot1"/>
              </f:facet>
              <f:facet name="header"/>
              <f:facet name="end"/>
              <f:facet name="start"/>
              <f:facet name="branding"/>
              <f:facet name="copyright"/>
              <f:facet name="status"/>
            </af:pageTemplate>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>Appreciate your help.
    Jit

  • Why is ADF Bindings node not displayed in Expression Builder window?

    Hello,
    I'm using Oracle JDeveloper Studio Edition Version 11.1.1.1.0, and I've created a Fusion Web Application and I've configured ADF Authentication and Security for my web project, using the provided wizard.
    On a certain page, I've placed a Go Link component, and I'm trying to edit the Text and Destination Property using EL Expressions. When I open the Expression Builder window all I can see are the following nodes: ADF Controller Objects, ADF Managed Beans, JSF Managed Beans and JSP Objects, but no ADF Bindings. I need to access the securityContext properties, and from what I've read in B31974-03, I need ADF Bindings.
    Also, I've tryied using the search field from the Expression Builder windows, without any luck.
    This is probably a newbie problem, but I really can't figure it out. Please help.
    Bogdan.

    Hi,
    maybe your problem is that you don't have created pageDef related with your page. Try right click on your page and Go To Page Definition. It will create the related pageDef if it does not exist.
    Hope this helps
    Joseba

  • Pass Parameter from main page to include page (subview) and read it ?

    Hello All
    i have an include header.jsp page in main page.jsp ,and i included it by subview.
    i want to pass a parameter ex(screen name) to the subview by using f:param.
    Here is the code in main.jsp:
    <f:subview id="headerSubView">
    <jsp:include page="/commons/header.jsp" flush="true">
    <jsp:param name="screenTitleByJspParam" value="screen2007"/>
    </jsp:include>
    <f:param name="screenTitleByFparam" value="screen2007"/></f:subview>
    Code in header.jsp
    1- <af:outputFormatted value="#{param.screenTitleByJspParam}"/> -- this dose not work
    2- <af:outputFormatted value="#{param.screenTitleByFparam}"/> -- this dose not work (i want this manner)
    So how i can send parameter by ]<f:param and read it by subview uesing adf/jsf tags ?
    Regards
    Mohd.Weshah
    weshah79

    Dear thanassis
    Thanks for you help ,your code is working successfully but my case is the following :
    same your main jsp page but the subview tag in table :
    <%@ page contentType="text/html;charset=windows-1256"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1256"/>
    <title>main</title>
    </head>
    <body>
    <h:form>
    <afh:tableLayout>
    <afh:rowLayout>
    <afh:cellFormat>
    <f:subview id="header">
    <jsp:include page="header.jsp" flush="true">
    <jsp:param name="pageTitle" value="Modify aa record"/>
    </jsp:include>
    <f:subview>
    </afh:cellFormat>
    </afh:rowLayout>
    </afh:tableLayout> </h:form>
    </body>
    </html>
    </f:view>
    try it the parameter dose not work ,but if you want that code work successfully move the subview out of the table.
    Do you know what is the problem ?
    i want give you another hint maybe it is realted to the same problem, which is in my original page the body tag is adf tag ie(<afh:body>) your code dose not work with that tag until i changed the afh:body to html body.
    Regards
    Mohd.Weshah

  • About the adf Bindings object

    As far as I know, the page definition xml defines the datasource(such as the return method in the data control panel) of the .jspx page. when i intend to show the label text dynamically, i should use the Expression builder. then it popups a dialog where i can build the el visually. the problem is
    1.when the label is in a table,then i can build the el in two ways:#{row.name} or #{row.bindings.name.inputValue}. what's the difference?
    2.if the label is in a tree, i will have to use another variable node,so it's:#{node.name}. i want to know where the variable "row" and "node" is defined?
    Besides, there are aslo objects: adf bindings,adf managed beans,jsp objects. how and when should i use me? some detail learning materials are expected. because it' hard to explain in words.
    Edited by: Tom on 2011-8-4 下午7:14

    Here is the explanation assuming model as ADFBC,
    row.name
    row here is a ViewRowImpl class, if you have any custom rowimpl class generated for the view object, it would be referring that else refers to ViewRowImpl. row.name uses introspection and calls getName() method inside ViewRowImpl or custom row impl class.
    Here, the first letter of name should be lower case always so that the introspection would be applied
    row.binding.name.inputValue
    Gets the current row attribute value from the binding instead from the row directly. Here the case of the name should match the attribute name in view object. If the attribute name is "Name", EL should be "row.binding.Name.inputValue" or if it is "name", EL should be "row.binding.name.inputValue"
    HTH
    Sireesha

  • Tomahawk and ADF bindings conflict

    Hi, I use Tomahawk components <t:dataTable> and <t:dataScroller> to handle table with large number of rows (I learned from http://wiki.apache.org/myfaces/WorkingWithLargeTables)
    The problem is that after I added ADF bindings to call EJB session bean methods, six navigation image buttons (first, last, previous, next, ff, fr) have been disabled. It seems that ADF does something to disable JavaScript code which activates these buttons (I noticed some changes have been made in faces-config.xml and web.xml). It took me 6 hours to find bugs but I've reached nowhere. :) Pls help me.
    Thanks a lot!

    Hi Frank, I have a method:
    public List <SimpleCar> searchCar(int start, int rows);
    in a session facade bean called CarFacadeBean.
    And the following is the Page Definition.
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="10.1.3.40.66" id="carsDataModelPageDef" Package="view.pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables"/>
    </executables>
    <bindings>
    <methodAction id="searchCar" InstanceName="CarFacadeLocal.dataProvider"
    DataControl="CarFacadeLocal" MethodName="searchCar"
    RequiresUpdateModel="true" Action="999"
    IsViewObjectMethod="false"
    ReturnName="CarFacadeLocal.methodResults.CarFacadeLocal_dataProvider_searchCar_result">
    <NamedData NDName="start" NDType="int" NDValue="15"/>
    <NamedData NDName="rows" NDType="int" NDValue="15"/>
    </methodAction>
    </bindings>
    </pageDefinition>
    Then in backed beans, I put:
    BindingContainer bindings = this.getBindings();
    OperationBinding operationBinding = (OperationBinding) bindings.getOperationBinding("searchCar");
    List <SimpleCar> cars = (List<SimpleCar>) operationBinding.execute();
    to get the result set from EJB method (searchCar(start, rows)).
    These are all basic things, I believe. The problem occurs only after I dragged the method searchCar from Data Control Pallete to the page (there is only one page in this testing view). May I upload the code to somewhere so that you can take a further look?
    Regards,
    Harry.

  • Databinding within UIX include pages

    I have a uix file (call it browseTable.uix) with this line of code:
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.CountryCodeView1,'CountryCodeRid')}"/>
    But I'm trying to make this uix file into an include file, so I want to replace the references to "CountryCodeView1" and "CountryCodeRid"
    with databound values that will be supplied by the including page.
    So here's what I did
    1) The including page has this inline data provider:
    <data name="rootPage">
    <inline>
    <VO name="CountryCodeView1"/>
    <Rid name="CountryCodeRid"/>
    </inline>
    </data>
    and includes the browseTable.uix like this:
    <include node="${ctrl:parsePage(uix,' browseTable')}"/>
    2) and in the included page (browseTable.uix), I tried changing the line
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.CountryCodeView1,'CountryCodeRid')}"/>
    to be
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings[uix.data.rootPage.VO.name], '${uix.data.rootPage.Rid.name}')}"/>
    But the page isn't displaying the databound values. The documentation said that included pages can see data providers defined in the including page, so perhaps my syntax is wrong? I tried databinding a simple styledText element <styledText text="${uix.data.rootPage.VO.name}"/> in the included page to display inline data defined in the including page but that didn't work either (nothing was displayed).
    Any help would be appreciated!
    Thanks
    J
    PS I'm using JDeveloper 9.0.5.2

    Hi Jancia,
    It looks correct to me. I mocked up a test case that works, so maybe you can try it and it will help you figure out what you are doing wrong:
    includeTest.uix:
    <ctrl:page xmlns="http://xmlns.oracle.com/uix/ui" xmlns:ctrl="http://xmlns.oracle.com/uix/controller" xmlns:data="http://xmlns.oracle.com/uix/ui" xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el" xmlns:ui="http://xmlns.oracle.com/uix/ui">
      <ctrl:content>
        <dataScope>
          <contents>
       <stackLayout>
        <contents>
         <header text="including InlineTest">
          <contents>
           <include  node="${ctrl:parsePage(uix, 'inlineTest')}"/>
          </contents>
         </header>
        </contents>
       </stackLayout>
         </contents>
               <provider>
                 <data name="rootPage">
                   <inline headerText="Using inline" linkText="Click">
                    <Rid name="CountryCodeRid" />
                   </inline>
                 </data>
          </provider>
         </dataScope>
      </ctrl:content>
    </ctrl:page>inlineTest.uix
    <ctrl:page xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    expressionLanguage="el" xmlns:ui="http://xmlns.oracle.com/uix/ui">
      <ctrl:content>
               <button   text="${uix.data.rootPage.Rid.name}"/>
      </ctrl:content>
    </ctrl:page>

  • Pass parameter to included page and read it in the included packing bean

    Hello
    i have a page include in adf page (main.jspx include body.jspx) and i send a parameter to the included page ,and the included page has a request scope backing bean ,and in the constructor for this backing bean i tried to read the parameter , how can i get the included parameter "userId" in the backingbean which is realted to body page i.e(i want to pass the userid parameter to the body backing bean),the following is my code.
    main.jspx :
    <f:subview id="Body">
    <jsp:include page="/body.jspx";>
    <jsp:param name="userId" value="123456"/>
    </jsp:include>
    </f:subview>
    Regards
    Mohd.Weshah

    i tried your soluation
    <managed-bean>
    <managed-bean-name>testBacking</managed-bean-name>
    <managed-bean-class>checklist.TestBacking</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>testValue</property-name>
    <property-class>java.lang.String</property-class>
    <value>${param.myParam}</value>
    </managed-property>
    </managed-bean>
    it return to me in the getter method for the testValue the experssion as string ${param.myParam} but if i put ${param.myParam} it return value.
    please advice.
    Regards
    Mohd.Weshah

Maybe you are looking for

  • Total time for a netstream object?

    I'm making a video player, and I'm having trouble making a seek bar. There is the "time" property of the netstream, but there doesn't seem to be a way to find the total length of the video in seconds, making it difficult to find the fraction of the v

  • Date format conversion from MySQL

    Hi my dear friends. I have some problem with the date format. I am using MySQL version 3, LabSQL and Labview7.1 In the MySQL, the date format reads as 2006-12-18 14-51-25 while, when querying in Labview, it reads 18-Dec-06 14-51-25. So when using thi

  • MBP NVIDIA blackout - Change auto login in sys pref's?

    I have an appointment in a couple of hours @ Apple Store... I when working at home check the auto login to the main user name I use to save time at boot up. Now I have to bring in my MBP and have them work on it. I have some proprietary stuff on the

  • Using AUTHID = CURRENT_USER and Apex

    I'm new to Apex and am just assessing if we can make use of it, mainly for reporting functionality in our existing web based application. We have a schema that holds all of our procedures, packages, functions etc and they all have AUTHID = CURRENT_US

  • How to flatten keyword hierarchy?

    For about a year I had all my keywords organized into a nice hierarchy, but after moving projects between libraries and computers my keywords are in chaos because keyword hierarchy information is not included in exported projects. I have keywords rep