How to show one list  from bean two times

Hi All,
I am using jdeveloper version 11.1.1.6.0.
I have a scenario where I want to bind list attribute from the my bean to two different talbes or iterators.
I want to show this list twice on the page.
If I keep both the tables then it shows only one of it.
<af:table value="#{myAccShoppingCartBean.favAccountList}"
                                    columnResizing="disabled"
                                    disableColumnReordering="true"
                                    styleClass="carttbl" var="row"
                                    rows="#{bindings.favAccountList1.rangeSize}"
                                    emptyText="#{bindings.favAccountList1.viewable ? 'No data to display.' : 'Access Denied.'}"
                                    fetchSize="#{bindings.favAccountList1.rangeSize}"
                                    width="877" horizontalGridVisible="false"
                                    verticalGridVisible="false"
                                    rowBandingInterval="0" id="tblCart"
                                    binding="#{myAccShoppingCartBean.tblCartItems}"
                                    inlineStyle="border:1px solid #000000;overflow:hidden !important;">
                            <af:column sortProperty="productSizeId"
                                       sortable="false" visible="false"
                                       id="c239">
                              <af:outputText value="#{row.productSizeId}"
                                             id="ot2asdf"/>
                            </af:column>
</af:table>
<af:table value="#{myAccShoppingCartBean.favAccountList}"
                                    columnResizing="disabled"
                                    disableColumnReordering="true"
                                    styleClass="carttbl" var="row"
                                    rows="#{bindings.favAccountList1.rangeSize}"
                                    emptyText="#{bindings.favAccountList1.viewable ? 'No data to display.' : 'Access Denied.'}"
                                    fetchSize="#{bindings.favAccountList1.rangeSize}"
                                    width="877" horizontalGridVisible="false"
                                    verticalGridVisible="false"
                                    rowBandingInterval="0" id="tblCart"                                 
                                    inlineStyle="border:1px solid #000000;overflow:hidden !important;">
                            <af:column sortProperty="productSizeId"
                                       sortable="false" visible="false"
                                       id="c239">
                              <af:outputText value="#{row.productSizeId}"
                                             id="ot2asdf"/>
                            </af:column>
</af:table>How to show this list two times.
any help is apprciated

Hi ,
Can I replace above posts table with iterator
Can I set value attribute for different iterators same from the bean.
like
<af:iterator value="#{myAccShoppingCartBean.favAccountList}" id="i1">second one like
<af:iterator value="#{myAccShoppingCartBean.favAccountList}" id="i2">How to solve this?
Is there any way to set same value to the different Iterators on the same page

Similar Messages

  • How to use one commandButton  to execute two task in JSF

    I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
    The code of the inputText:
    <h:inputText value="#{bindings.ProjectNumber.inputValue}"
    id="pn"
    size="10"
    required="#{bindings.ProjectNumber.mandatory}">
    The code of commandButton:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}"/>
    The managed bean is “findInspector”. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}">
    <h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
    </h:commandButton>
    But it was not work
    Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two task in JSF.
    Thank you
    Waheed

    Yes I did
    <managed-bean>
    <description>The bean for get project No</description>
    <managed-bean-name>projectBean</managed-bean-name>
    <managed-bean-class>
    mcscm.model.ProjectBean
    </managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{bindings}</value>
    </managed-property>
    </managed-bean>
    Also I changed the method in the managed bean as follows:
    public String commandButton_action() {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vb = fctx.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer dcb = (DCBindingContainer) vb.getValue(fctx);
    OperationBinding operation = (OperationBinding) dcb.get("projectNumber");
    operation.execute();
    return null;
    where projectNumber is my method in the java class of the application module "TaskInformationImpl". I made this method to be accessed from outside of ADF BC.
    I just create a sample code for projectNumber method for testing only as:
    public void projectNumber (String data){
    System.out.print(data);
    In the page Pagedef file I added this :
    <methodAction id="projectNumber"
    InstanceName="TaskInformationDataControl.dataProvider"
    DataControl="TaskInformationDataControl"
    MethodName="projectNumber" RequiresUpdateModel="true"
    Action="999" IsViewObjectMethod="false">
    <NamedData NDName="data" NDValue = "#{bindings.ProjectNumber.inputValue}" NDType="java.lang.String"/>
    After I did all of this I get a new error like:
    javax.faces.FacesException: #{projectBean.commandButton_action}: javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding cannot be cast to oracle.adf.model.OperationBinding
    Is it very difficult to do this in JDeveloper?. yes ADF BC provide me a lot of facilities, but when I want to do a specific task I face a lot of troubles

  • How to use one commandButton to execute two tasks in JSF

    I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
    The code of the inputText:
    <h:inputText value="#{bindings.ProjectNumber.inputValue}"
    id="pn"
    size="10"
    required="#{bindings.ProjectNumber.mandatory}">
    The code of commandButton:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}"/>
    The managed bean is �findInspector�. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}">
    <h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
    </h:commandButton>
    But it was not work
    Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two tasks in JSF.
    Thank you
    Waheed

    Just dopublic void execute() {
        anotherAction(inputValue);
    I guess those articles might be interesting about passing params and the usage of inputHidden and also about using datatables:
    http://balusc.xs4all.nl/srv/dev-jep-com.html
    http://balusc.xs4all.nl/srv/dev-jep-dat.html

  • How to refer one view from another view?

    Hi,
    I have 2 views in my Adobe Flash Builder mobile app. I need to refer the first view in my second view.
    How to refer one view from another view? Or how to create a reference to a view wherever needed?

    I don't need any data from my first view. In a certain flow, I need to make my first view to be invisible.
    for eg., My First view is in portrait mode. I change the device to Landscape. In the landscape mode, I want to show a completely different view (second view).
    In this case, what happens is, I see my first view in Landscape mode for a second. Then the second view appears. When I change to Landscape mode, only the second view should be seen. I need to make my first view to be completely invisible in the OnOrientationChanging event of
    StageOrientationEvent
    As stage object and StageOrientationEvent works at application level, I need to know how to refer my first view object in the application level.
    private function onOrientationChanging(soe:StageOrientationEvent):void
          MyFirstView.Visible = False; ====> don't know how to refer MyFirstView here
    Is my question clear now?

  • HOW TO SHOW ONE PAGE AT A TIME

    Does anybody have a clue how to show one page at a time? I clicked Facing Pages in the Inspector and 2 columns of pages showed up. Now, I can't get it back to just one page showing up at a time. There must be a fix, but I don't' want to spend days on this. Many thanks.

    Frank,
    At the bottom left of the page, click on the zoom percentage, then select One-up from the menu.
    -Dennis

  • How to link one scroll bar with two dynamic text boxes.

    How to link one scroll bar with two dynamic text boxes.
    If i move scroll bar in one text box,automatically text will
    be moved in another text box.But scroll bar is not visible.
    Can you please help me.
    Thanks in advance.

    See the following article:
    JavaScript - setFocus Method for tabbing to next form field
    And see if iOS can even handle the sample form.
    iOS and android devices are not a powerful as your desktop of laptop computer and have limited support for JavaScript within PDF forms. This limitation for specific apps ranges from none to quite a bit but not all JavaScript.

  • How to remove a list from a page ?

    I added a list to a page and then later decided it would be easier to add the list to page 0. Now I can't find how to remove the list from the page.
    Edited by: Rene W. on Oct 6, 2008 1:52 AM

    Ok sorry I understood you wrong then.
    I tried to recontruct your problem and did the following things.
    1. Created a new list in: Home>Application Builder>Application 305>Shared Components>Lists>Create / Edit List
    2. Created a new region on page 2: Home>Application Builder>Application 305>Page 2>Create Region Type: List, Name:"test1"
    3. Created a new region on page 1: Home>Application Builder>Application 305>Page 1>Create Region Type: List, Name: "test2"
    4. Deleted region "test1" on page 2
    5. List and region still survived on page 1. :D
    Tobias

  • How to delete a list from the reading list

    How to delete a list from the reading list

    I assume that you mean in Safari, in which case just swipe across it's name in reading list and you should get a Delete button appear on it.

  • How to restore one table from the previous backup in 9.2.0.8 version.

    Hi,
    How to restore one table from the previous backup in 9.2.0.8 version.
    Thanks
    -Ganga

    Hi,
    What is the table you want to restore?
    Using export/import is supported with Oracle Apps database (for full database exp/imp, and certain schemas like custom ones). For the Apps schema, I believe it is not supported due to object dependencies and integrity constraints.
    Regards,
    Hussein

  • How to retrieve Task Lists from All Subsites to the Parent Site and display in Grid view using CAML Query

    How to retrieve Task Lists from All Subsites to the Parent Site and display in  Grid view using CAML Query + object model

    do u just want task list or items under task list for all subsites
    for items use spsitedataquery ref
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx use recursive to get it from alll subsite under site collection
    for tasklist only u can a simply use a for loop to find in all subsite
    Manish Sati

  • How to make one dvd from several camcoder dvd's

    How to make one dvd from several camcoder dvd's. I got a dvd camcoder, to be able to play them into DVD player I had to finalize  my disks. Now I got several DVD's whith short files and terrible custom camera menu. I'd like to make it more presentable.
    The main problem is I dont want to recode my vob files. So Final Cut and other editing soft is bad idea.
    Is there any soft on mac I could reauthor my DVD's?

    How to make one dvd from several camcoder dvd's. I got a dvd camcoder, to be able to play them into DVD player I had to finalize  my disks. Now I got several DVD's whith short files and terrible custom camera menu. I'd like to make it more presentable.
    The main problem is I dont want to recode my vob files. So Final Cut and other editing soft is bad idea.
    Is there any soft on mac I could reauthor my DVD's?

  • I'm trying a full restore in Lion, but it won't. States that there isn't enough space on the Mac HD. How do I restore everything from a recent Time Machine Backup?

    I'm trying a full restore in Lion, but it won't. States that there isn't enough space on the Mac HD. How do I restore everything from a recent Time Machine Backup?

    Thanks but I think it has something to do with the 'restore'. in the newest iTunes 11, when I click on the tab "iphone", it redirects me to the "welcome to your new iphone" page and asks about doing a 'restore'. I already did a 'restore', but it went to the original factory settings and I want to 'restore' to my lastest back up as of April 12. When I choose that option, it says my iphone doesn't have enough space. I don't know how much I need to delete in order to make it work. I've deleted lots, but it only has 4.1 GB available. I'm not sure why this isn't enough to do a 'restore'. I don't want to delete all my photos and videos, but maybe I will have to?...7.7GB is used up for that. I can't sync or do ANYTHING...

  • How do I stop apps from reloading every time I unlock my iPhone?

    How do I stop apps from reloading every time I unlock my iPhone? I have an iPhone 4 and at least 95% of the time I unlock it, some apps act as though they are reinstalling. It only lasts for about 3 seconds if that but it makes me feel like something is wrong with it. Does anyone else have this problem??

    jamiekat wrote:
    some apps act as though they are reinstalling.
    Could you explain what you mean by this? What is happening that makes you think they're reinstalling?

  • HT1711 How do I get a album that I purchased already to show the whole album. After the lastest upgrade it only shows one song from the album. I tried repurchasing it but it says that is already purchase but will not re download. Please help.

    How do I get an album from Itunes that I have already downloaded to show the complete album again. After the last update it only shows one song. I tried to re purchase the whole album but it will not let me cause I already purchased it. Pease help

    The large text size makes your post almost impossible to read.
    Excessive use of bold or capitals (also) makes posts difficult to read.
    You can drag most of the column headings left or right, or right-click on the header to turn columns on or off.
    Once you've used File > Display Duplicates or Shift > File > Display Exact Duplicates you can use File > Display All or the Display All button at the bottom of the list to restore the display.
    For general advice on organising your library see this article on Grouping tracks into albums.
    tt2

  • How to show the graphs from 16channels or more at one time

    Hi.
    I am using labview with pci-6031e board.
    Is there a efficient way to show the graph from 16 channels which acquire the temperature with thermocouple, or to show just one specific graph that I want.
    I followed these steps.
    1.in examples from the labview program,I`ve used the source of acquring the multi-temperatures.
    2. used the index array to devide each temp. and connected this to graph in the case structure.
    but it requred too many space,and doesn`t look good.
    Thank you .

    You can set a state machine doing the following: Put 17 controls, one for each temperature and one for all. Inside the case structure, wire one case for each temperature, bundling x and y arrays into a cluster, and then building an array (of 1 element). In the all case bundle each temperature and build an array of all. Put the array output into the graph... and it's done.
    Hope this will feed your needs, and if you want an example... just ask

Maybe you are looking for

  • Billing document enhancement

    I have to add three new items in the "Billing document's" table control. The data from the table control in Tcode VF01 is written into the table VBRP. All the three fields are customer created fields, They have no previous data at all. But all the ne

  • How do I copy a photo from my PC to my iPad?

    Help! How do I copy a photo or folder from my PC to my iPad?

  • Error: Installing EM Grid 10.1.0.3 and Oracle 10.2

    Hi folks, I've been looking through the pre-installation notes for EM Grid. Wondering if I missed the JDBC requirements. Maybe thick JDBC? How can we check this on Linux? I get an error while installing EM Grid on Windows. I'm using an existing Oracl

  • Invoking PL/SQL function (via DB Adapter) with in parameter (BPEL newbie)

    Hi! Using: JDeveloper: 10.1.3.3.0, OAS: 10.1.3 I'm new to BPEL, and now I have a simple problem: anyway to pass in parameter value with PL/SQL function call via DB Adapter? PL/SQL function like this: >> create or replace function f_test_bpel (p_in in

  • Event Failure-using DV

    Hi Experts, I am getting stuck at one logic when i using dynamic visibilty in my dashboard. The situation is like this : Sale of Toothpaste : across india(Location Dimension) i have two series Plan and Actual on X-Axis i have three type of it : Clove