ADF Table Pagination in JDev 11.1.1.4

Hi,
I am using JDeveloper 11.1.1.4.
I need to implement the Table Pagination functionality. The below are the options that I tried, but they are not able o fulfill my requirement perfectly.
1. Using <af: Iterator> component - when I use this the appearance is not like table data. and moreover in my table each row will have check boxes and input text area. Not sure whether these can be used in iterator component.
2. Using <af: Table>, giving th evalue as #{bindings.EmployeesVO1.rangeSet} instead of #{bindings.EmployeesVO1.collectionModel} - When I use this getting the error javax.el.PropertyNotFoundException: Target Unreachable, 'bindings' returned null.
I read that Pagination functionality is in built with JDev 11.1.1.7. But I cant use that, Should use 11.1.14 only.
Could you please suggest the way or sample code to achieve this ?
Regards,
Srivinod

http://codeplay.net/2011/04/21/simple-adf-traditional-pagination-2-with-business-component/    
Might be a solution for you.However solution 1 should work too.
Our http://www.ateam-oracle.com/adventures-in-webcenter-skinning-aftable-with-custom-pagination/ it's what you are looking for.
Timo

Similar Messages

  • ADF Table filtering in JDev 10.1.3

    Hi,
    I wonder how to do ADF Table filtering in JDev 10.1.3. I know in JDev 11 have a query listener property but i want to know how to do this in JDev 10.1.3
    For example :
    Based on HR schema, i have a search form and table result in the same page.
    The table result will give me the result based on filtering.
    Ley say i choose radio button male, and the adf table will give me all male employee.
    Or let say i choose department IT, the adf table will give me all employee within IT deparment.
    Thanks in advance

    Update :
    All i wanna to know is how to :
    ADF table can execute 2 or more query.
    Example if i tick check box, then will run binding named query 1, if not will run binding named query 2.

  • I am unable to get ADF TABLE PAGINATION in ORACLE 11 G

    hi,
    I searched a lot for displaying a ADF TABLE WITH PAGINATION using ORACLE 11G only.
    I dont want to interact with the Database.
    it may be any kind of ADF TABLE
    I need a sample like ,
    public List getData(){
    List al=new ArrayList();
    al.add("test1"); al.add("test2"); al.add("test3");...........
    return al;
    jsp
    ===
    in jsp i want to display that list with PAGINATION. (no database interaction)
    (next, previous options)
    ex: if i give 3 rows it should display only 3 rows with next and previous.
    following that sample i can implement in my application
    thanks in advance.
    regards,
    sandeep

    Some examples here:
    http://andrejusb.blogspot.com/2011/05/oracle-adf-11g-custom-table-pagination.html
    http://www.adftips.com/2010/10/adf-ui-pagination-first-previous-next.html
    http://connotea.org/user/jdeveloper/tag/pagination

  • How to implement table pagination/navigation in ADF pages?

    Hi,
    I am developing an ADF application, where I have a requirement to implement table pagination like the one used in Google (<< < 1 2 3 ... > >>). I have around 1 million rows and the user needs to navigate to different sets using the buttons at the bottom of the table. I know that in ADF the scroller loads the data depending on the range but I haven't found anything like the one used in Google.
    There is an implementation of dropdown in trinidad table but our application is using the ADF table. Any light in this direction will be a great help.

    Search the forum fro pagination or page ranging. Lots of discussion here.
    Generally you have to write it yourself, theres no way to use rich table this way.
    Timo

  • JDEV 10.1.3.3 ADF Table Row Highlighting onMouseOver

    I am working with JDEV 10.1.3.3 and I have the following requirement for an ADF table.
    When a user's mouse hovers over a table row, the table row should be highlighted and a title should pop up displaying the value of a hidden column in the table. In html, this would look something like the following:
    <tr on mouseover="this.bgColor='#elcda7'" on mouseout="this.bgColor='<whatever the current row color is>'" title="Opportunity Primary: <% name %>">
    Can anyone help? Thank you!

    What i want to know is if we have some date to uix support in jdev 10.1.3

  • Jdev 11.1.1.5 R1 How To Get Row Data From ADF Table

    Hi everyone,
    I have an ADF Table Populated with dummy data (for now). Below the Table there is an InputText field.
    What I need to do is have the body of the message show up in the InputText field when the user clicks on a message in the inbox(Table).
    I've been trying to figure this out for quite some time now, unsuccessfully of course. Hopefully you guys can help me change that.
    I do consider myself a beginner still, so please be as clear and specific as possible.
    Thanks in advance!
    Here is the code I have for the Table/InputText and Backing Beans
    <tr>
    <td>
    <af:table value="#{TableBean.messageAll}" var="message"
    rows="5"
    inlineStyle="color:Navy; border-style:outset; border-color:Background; border-width:thick; font-size:small; text-align:center; vertical-align:middle; height:135.0px;"
    width="610" rowBandingInterval="0" id="t1"
    rowSelection="single"
    selectionListener="#{TableBean.messageSelected}"
    immediate="true" summary="Message Inbox"
    disableColumnReordering="true"
    columnSelection="none"
    columnResizing="disabled">
    <af:column sortable="false" align="center"
    id="chechboxCol" width="25"
    minimumWidth="25">
    <f:facet name="header">
    <h:selectBooleanCheckbox id="selectAll"
    onclick="selectAll();"></h:selectBooleanCheckbox>
    </f:facet>
    <h:selectBooleanCheckbox id="selectMessage"
    value="#{message.selected}"
    immediate="true"></h:selectBooleanCheckbox>
    </af:column>
    <af:column id="urgentCol" width="25" align="center"
    minimumWidth="25">
    <f:facet name="header">
    <h:outputText id="urgentHeader">
    <img src="urgent.gif" height="14"
    width="14" alt="Urgent Icon"/>
    </h:outputText>
    </f:facet>
    </af:column>
    <af:column sortable="true" headerText="From"
    align="start" id="fromCol" width="175"
    minimumWidth="175">
    <af:outputText value="#{message.from}"
    id="ot1"/>
    </af:column>
    <af:column sortable="true" headerText="Subject"
    align="start" id="subjectCol" width="175"
    minimumWidth="175">
    <af:outputText value="#{message.subject}"
    id="ot2"/>
    </af:column>
    <af:column sortable="true" headerText="Type"
    align="start" id="c5" width="100"
    minimumWidth="100">
    <af:outputText value="#{message.type}"
    id="ot3"/>
    </af:column>
    <af:column sortable="true"
    headerText="Date Received" align="start"
    id="c6" width="80" minimumWidth="80">
    <af:outputText value="#{message.date}"
    id="ot4"/>
    </af:column>
    <af:column sortable="true" headerText="Body"
    rendered="false" align="start" id="c7"
    width="100" minimumWidth="100">
    <af:outputText value="#{message.body}"
    id="ot5"/>
    </af:column>
    </af:table>
    </td>
    </tr>
    <tr>
    <td>
    <p>
    <af:commandButton text="Print" id="printButton"
    inlineStyle="font-size:x-small;"/>
    </p>
    <af:inputText binding="#{TableBean.textArea}" rows="10"
    readOnly="true" partialTriggers="t1"
    contentStyle="width:620px;"
    inlineStyle="color:Black; outline-color:Background; outline-style:outset;"
    id="it1"></af:inputText>
    </td>
    </tr>
    package Backing;
    import javax.faces.event.ActionEvent;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    import oracle.adf.view.rich.component.rich.output.RichOutputText;
    import java.util.List;
    import java.util.ArrayList;
    import oracle.adf.view.rich.component.rich.data.RichTable;
    import org.apache.myfaces.trinidad.event.SelectionEvent;
    public class TableBean {
    private RichInputText textArea;
    private message[] messageAll =
    new message[] { new message("Sender 1", "Author 1", "Message 1",
    "Alert", "6/21/2011",
    "This is the body 1."),
    new message("Sender 2", "Author 2", "Message 2",
    "Notification", "6/22/2011",
    "This is the body 2."),
    new message("Sender 3", "Author 3",
    "Message 3", "Broadcast", "6/23/2011",
    "This is the body 3."),
    new message("Sender 4", "Author 4",
    "Message 4", "Alert", "6/24/2011",
    "This is the body 4."),
    new message("Sender 5", "Author 5", "Message 5",
    "Notification", "6/25/2011",
    "This is the body 5."), };
    public message[] getmessageAll() {
    return messageAll;
    public void messageSelected(SelectionEvent selectionEvent) {
    textArea.setValue("Message body should go here.");
    public void setTextArea(RichInputText textArea) {
    this.textArea = textArea;
    public RichInputText getTextArea() {
    return textArea;
    public class message {
    boolean selected;
    String from;
    String to;
    String subject;
    String type;
    String date;
    String body;
    public message(String from, String to, String subject, String type,
    String date, String body) {
    this.from = from;
    this.to = to;
    this.subject = subject;
    this.type = type;
    this.date = date;
    this.body = body;
    public String getFrom() {
    return from;
    public String getTo() {
    return to;
    public String getSubject() {
    return subject;
    public String getType() {
    return type;
    public String getDate() {
    return date;
    public String getBody() {
    return body;
    }

    try this code in selection method
    RichTable object = (RichTable)selectionEvent.getSource();
    Row row = null;
    for (Object facesRowKey : object.getSelectedRowKeys()) {
    object.setRowKey(facesRowKey);
    Object o = object.getRowData();
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)o;
    row = rowData.getRow();
    }

  • Error while creating adf table in jdev 11.1.1.2.0

    Hi
    I am getting below error while running the jsf page.
    =======
    <UIXInclude><_setupIncludeContext> Illegal call to setup the context of an include that is already in context
    <UIXInclude><_tearDownIncludeContext> Illegal call to tear down the context of an include that is not in context
    <UIXPageTemplate><tearDownVisitingContext> Tear down of page template context failed due to an unhandled exception.
    java.util.NoSuchElementException
    =======
    In this jsf page I just dragged view object to create a table.
    What could be the reason?
    Thanks

    Hi,
    Did you drop it as ADF table? Can you post the code snippet of your jspx page?
    -Arun

  • Problem with JDev 10g ADF table component and rangeChangeListener

    Hi,
    I'm populating an ADF table component from a backing bean and would like the range of rows be changed using custom method on the backing bean.
    I have declared table on page as shown below and the table is populated correctly. However the onRangeChanged method in the backing bean never fires when
    user hits previous or next. Any ideas of what I missed ?.
    Thanks,
    Kenneth
    <af:table emptyText="No items were found"
    value="#{companySearchBean.companies}"
    var="company" rows="20"
    first="#{companySearchBean.firstCompany}"
    rendered="#{companySearchBean.queryExecuted}"
    rangeChangeListener="#{companySearchBean.onRangeChanged}">
    <af:column sortable="false" headerText="Company Name">
    <af:outputText value="#{company.partyName}"/>
    </af:column>
    <af:column sortable="false" headerText="Party Number"
    formatType="number">
    <af:outputText value="#{company.partyFileNo}"/>
    </af:column>
    </af:table>

    Hi,
    I'm populating an ADF table component from a backing bean and would like the range of rows be changed using custom method on the backing bean.
    I have declared table on page as shown below and the table is populated correctly. However the onRangeChanged method in the backing bean never fires when
    user hits previous or next. Any ideas of what I missed ?.
    Thanks,
    Kenneth
    <af:table emptyText="No items were found"
    value="#{companySearchBean.companies}"
    var="company" rows="20"
    first="#{companySearchBean.firstCompany}"
    rendered="#{companySearchBean.queryExecuted}"
    rangeChangeListener="#{companySearchBean.onRangeChanged}">
    <af:column sortable="false" headerText="Company Name">
    <af:outputText value="#{company.partyName}"/>
    </af:column>
    <af:column sortable="false" headerText="Party Number"
    formatType="number">
    <af:outputText value="#{company.partyFileNo}"/>
    </af:column>
    </af:table>

  • JDev 11g TP4: ADF tables and ADF form pop-ups PPR?

    I was hoping somebody could help me with the following please.
    I'm currently having a bit of an issue with ADF tables and ADF forms embedded in a pop-up, where the wrong record is shown in the popup. I suspect it's a PPR problem but am unsure. My scenario:
    1) I have the following table:
    CREATE TABLE "CHRIS_MUIR_DELETE_ME" (
    "ID" NUMBER(5,0)
    "SOME_COLUMN" VARCHAR2(20 BYTE)
    CONSTRAINT "CHRIS_MUIR_DELETE_ME_PK" PRIMARY KEY ("ID"));2) I have a default ADF BC EO/VO combination for this table.
    3) I have an ADF Faces RC page with a read-only table based on this VO:
    <af:table value="#{bindings.ChrisMuirDeleteMeView.collectionModel}" var="row"
       rows="#{bindings.ChrisMuirDeleteMeView.rangeSize}"
       emptyText="#{bindings.ChrisMuirDeleteMeView.viewable ? 'No rows yet.' : 'Access Denied.'}"
       fetchSize="#{bindings.ChrisMuirDeleteMeView.rangeSize}"
       selectedRowKeys="#{bindings.ChrisMuirDeleteMeView.collectionModel.selectedRow}"
       selectionListener="#{bindings.ChrisMuirDeleteMeView.collectionModel.makeCurrent}"
       rowSelection="single" partialTriggers="myDialog">
      <af:column sortProperty="Id" sortable="false"
        headerText="#{bindings.ChrisMuirDeleteMeView.hints.Id.label}">
         <af:outputText value="#{row.Id}">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.ChrisMuirDeleteMeView.hints.Id.format}"/>
         </af:outputText>
      </af:column>
      <af:column sortProperty="SomeColumn" sortable="false"
         headerText="#{bindings.ChrisMuirDeleteMeView.hints.SomeColumn.label}">
        <af:outputText value="#{row.SomeColumn}"/>
      </af:column>
    </af:table>Note that rowSelection is set to "single".
    3) The page also includes a popup-dialog combo that shows the same data from the table (ie. they're based on the same VO) as an ADF Input Form:
    <af:popup id="myPopUp">
      <af:dialog type="okCancel" id="myDialog">
         <af:panelFormLayout>
            <af:inputText value="#{bindings.Id.inputValue}"
                label="#{bindings.Id.hints.label}"
                required="#{bindings.Id.hints.mandatory}">
               <f:validator binding="#{bindings.Id.validator}"/>
               <af:convertNumber groupingUsed="false" pattern="#{bindings.Id.format}"/>
            </af:inputText>
            <af:inputText value="#{bindings.SomeColumn.inputValue}"
                label="#{bindings.SomeColumn.hints.label}"
                required="#{bindings.SomeColumn.hints.mandatory}"/>
            </af:inputText>
         </af:panelFormLayout>
      </af:dialog>
    </af:popup>Note that the table's partialTriggers is set to the id of the dialog. This implies on return from the dialog, the table will update itself to reflect any changes.
    4) I have a data bound Create commandButton, + a simple Edit commandButton. The Edit button includes an <af:showPopupBehavior> to display the popup:
    <af:commandButton
        actionListener="#{bindings.Create.execute}" text="Create"
        disabled="#{!bindings.Create.enabled}"
        partialTriggers="table1"/>
    <af:commandButton text="Edit">
        <af:showPopupBehavior popupId="myPopUp"/>
    </af:commandButton>If you run the form with the following steps, you can reproduce my issue:
    1) Click the create button, this will create a blank record in the <af:table>
    2) Click the edit button and give the 2 fields values, press ok. Note this is reflected back in the table.
    3) Click the create button, you will now see another blank record in the <af:table>. Note that the current row selection highlight is on the new record.
    4) In the table select the original record, then the Edit button. Oddly the input form is showing the blank record, not the original record even though we selected it in the <af:table>
    This implies to me that I have to hook up a PPR event such that the fields on the popup know to update themselves when the user selects a new row in the table.
    I've tried setting the partialTriggers property for the popup, dialog and individual fields on the popup page to the table id, but this doesn't seem to work.
    Does anybody have any suggestions on how I'm meant to hook up the partialTriggers in this case? I'm at a bit of a loss to know what to do to solve this issue. Is it possible the table selectionListener isn't working?
    Thanks for your help in advance.
    Regards,
    CM.

    G'day gang
    This morning I had a chance to play with Pavle's suggestions, specifically the popup contentDelivery option, and it's solved the issue. Specifically changing the contentDelivery option to lazyUncached was the golden solution.
    As the popup component help states, the default functionality is: "lazy -- the default strategy described above. The content isn't loaded until you show the popup once, but then is cached."
    ....cached being the issue I was seeing.....
    While the lazyUncached options states: "lazyUncached -- the content isn't loaded until you show the popup, and then is re-fetched every subsequent time you show the popup. Use this strategy if the popup shows data that can become stale."
    The nasty thing about the lazy option is the fact that in the dialog it can show the previous cached result (even though you've selected a different record), and you can even appear to edit that cached result in the dialog, but when you press okay in the dialog and return to the previous table, it's updated the record you selected, not the cached result.
    Confusing, but not a bug if you understand the popup contentDelivery options.
    Frank, if you'd like it, I have the simple test case available to send you. But as it's not a bug I wont send it to you unless requested.
    Thanks to both of you for your assistance with this one. Once again your help is much appreciated! :)
    I'll take time out to blog about this in the next few weeks to assist others.
    Thanks & regards,
    CM.

  • Customising ADF table

    Hi everyone,
    is it possible to move/replace the first few columns of an ADF read-only table with the next few columns on clicking a icon/link/command button. And the icon/link/command button be placed in the column header of ADF table. i am looking to achieve carousel kind of feature for ADF table where first 10 columns get replaced with the next 10 columns.
    i want to achieve the columns of adf table to move to and fro on click of icon/link that is placed in the 2nd and last column of ADF table Header.
    i have referred to the below link but it wasn't as helpful, but it gave some idea-
    http://www.ateam-oracle.com/adventures-in-webcenter-skinning-aftable-with-custom-pagination/
    Thanks,
    Manjunath

    Pagination won't help you as it is used to load more rows and not columns.
    What is your jdev version?
    What comes to mind is to use a panel collection where you put your table into.The panel collection allows you to show and hide columns of a table. Using you two buttons you hide the currently shown columns and show the next columns.
    Timo

  • Refresh adf table and selection row

    Hi,
    I create web application. I have created entity Users from MySQL database and managed Bean. In this managed Bean (sessionScope) is method for connection to database and method for adding new row (data) in database. It works.
    I have 2 problems.
    The first.
    I have form for adding User and commandButton Add.
    How I can refresh (update) adf table after executing SQL command (in commandButton Add) ? Now I must reconnect session.
    The second problem:
    I want to show a panel with data from one row from adf table.
    How I can selection this row in popup ?
    My table:
    <af:table var="user" rowBandingInterval="0" id="t2"
                                                  inlineStyle="margin:20px 30px; width:578pt; height:160pt;"
                                                  value="#{userController.users}"
                                                  rows="15"
                                                  emptyText="#{bindings.UsersprototypView11.viewable ? 'No data to display.' : 'Access Denied.'}"
                                                  fetchSize="#{bindings.UsersprototypView11.rangeSize}"
                                                  editingMode="clickToEdit" rowSelection="single"
                                                  selectedRowKeys="#{userController.selectedUser}"
                                                  selectionListener="#{userController.selectedUser}"> ---- Here I have problem.
                                            <af:column sortProperty="#{user.user_id}"
                                                       sortable="false"
                                                       headerText="ID"                            
                                                       id="c11" width="33">
                                                <af:commandLink id="ot34" text="#{user.user_id}">
                                                    <af:showPopupBehavior popupId="p4" triggerType="action"/>
                                                </af:commandLink>
                                            </af:column>
                                            <af:column sortProperty="#{user.firstname}"
                                                       sortable="false"
                                                       headerText="Firstname"
                                                       id="c20" width="111">
                                                <af:outputText value="#{user.firstname}" id="ot27"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.lastname}"
                                                       sortable="false"
                                                       headerText="Lastname"
                                                       id="c12">
                                                <af:outputText value="#{user.lastname}" id="ot31"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.address}"
                                                       sortable="false"
                                                       headerText="Address"
                                                       id="c9" width="95">
                                                <af:outputText value="#{user.address}" id="ot32"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.city}"
                                                       sortable="false"
                                                       headerText="#City"
                                                       id="c10" width="76">
                                                <af:outputText value="#{user.city}" id="ot33"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.username}"
                                                       sortable="false"
                                                       headerText="Username"
                                                       id="c7" width="102">
                                                <af:outputText value="#{user.username}" id="ot29"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.email}"
                                                       sortable="false"
                                                       headerText="E-mail"
                                                       id="c21" width="106">
                                                <af:outputText value="#{user.email}" id="ot28"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.regdate}"
                                                       sortable="false"
                                                       headerText="Registration"
                                                       id="c8" width="108">
                                                <af:outputText value="#{user.regdate}" id="ot30">
                                                    <af:convertDateTime pattern="#{user.regdate}"/>
                                                </af:outputText>
                                            </af:column>
                                        </af:table>userController is name managed Bean.
    users is list of users.
    My panel window (popup):
    <af:popup childCreation="deferred" autoCancel="disabled" id="p4">
                                        <af:panelWindow id="pw9" title="Delete user">
                                            <af:panelFormLayout id="pfl6">
                                                <af:panelLabelAndMessage label="ID:"
                                                                         id="plam16">
                                                    <af:outputText value="#{userController.selectedUser.user_id}" id="ot50"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Firstname:"
                                                                         id="plam17">
                                                    <af:outputText value="#{userController.selectedUser.firstname}" id="ot51"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Lastname:"
                                                                         id="plam18">
                                                    <af:outputText value="#{userController.selectedUser.lastname}" id="ot52"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Address:"
                                                                         id="plam19">
                                                    <af:outputText value="#{userController.selectedUser.address}" id="ot53"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="City:" id="plam20">
                                                    <af:outputText value="#{userController.selectedUser.city}" id="ot54"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Username:"
                                                                         id="plam21">
                                                    <af:outputText value="#{userController.selectedUser.username}" id="ot55"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="E-mail:" id="plam22">
                                                    <af:outputText value="#{userController.selectedUser.email}" id="ot56"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Registration:"
                                                                         id="plam23">
                                                    <af:outputText value="#{userController.selectedUser.regdate}" id="ot57">
                                                        <af:convertDateTime pattern="#{userController.selectedUser.regdate}"/>
                                                    </af:outputText>
                                                </af:panelLabelAndMessage>
                                            </af:panelFormLayout>
                                            <af:commandButton text="Delete" id="cb18"
                                                              inlineStyle="width:80pt; margin:10px 0px 0px 0px;"/>
                                        </af:panelWindow>
                                    </af:popup>When I cut out row: selectionListener="#{userController.selectedUser}
    Popup (for deleting user) looks like this:
    http://imageshack.us/photo/my-images/404/popupc.jpg/
    I need to get the outputs from <af:outputText> in this popup.
    Thanks for help.
    Edited by: user9202624 on 26.2.2013 7:52

    thanks for answer.
    I added partialTriggers in af:table
    <af:table var="user" rowBandingInterval="0" id="t2"
                                                  inlineStyle="margin:20px 30px; width:578pt; height:160pt;"
                                                  value="#{userController.users}"
                                                  rows="15"
                                                  emptyText="#{bindings.UsersprototypView11.viewable ? 'No data to display.' : 'Access Denied.'}"
                                                  fetchSize="#{bindings.UsersprototypView11.rangeSize}"
                                                  editingMode="clickToEdit" rowSelection="single"
                                                  selectedRowKeys="#{userController.selectedUser}"
                                                  partialTriggers="::t1" >What next ? What should I do next ? Sry, I'm newbie in adf and jDev.
    Edited by: user9202624 on 26.2.2013 8:55

  • Delete operation is not working to delete selected row from ADF table

    Hi All,
    We are working on jdev 11.1.1.5.3. We have one ADF table as shown below. My requirement is to delete a selected row from table, but it is deleting the first row only.
    <af:table value="#{bindings.EventCalendarVO.collectionModel}" var="row"
    rows="#{bindings.EventCalendarVO.rangeSize}"
    emptyText="#{bindings.EventCalendarVO.viewable ? applcoreBundle.TABLE_EMPTY_TEXT_NO_ROWS_YET : applcoreBundle.TABLE_EMPTY_TEXT_ACCESS_DENIED}"
    fetchSize="#{bindings.EventCalendarVO.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.EventCalendarVO.collectionModel.selectedRow}"
    selectionListener="#{bindings.EventCalendarVO.collectionModel.makeCurrent}"
    rowSelection="single" id="t2" partialTriggers="::ctb1 ::ctb3"
    >
    To perform delete operation i have one delete button.
    <af:commandToolbarButton
    text="Delete"
    disabled="#{!bindings.Delete.enabled}"
    id="ctb3" accessKey="d"
    actionListener="#{AddNewEventBean. *deleteCurrentRow* }"/>
    As normal delete operation is not working i am using programatic approach from bean method. This approach works with jdev 11.1.1.5.0 but fails on ver 11.1.1.5.3
    public void deleteCurrentRow (ActionEvent actionEvent) *{*               DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("EventCalendarVOIterator");
    // Get an object representing the table and what may be selected within it
    ViewObject eventCalVO = dcItteratorBindings.getViewObject();
    // Remove selected row
    eventCalVO.removeCurrentRow();
    it is removing first row from table still. Main problem is not giving the selected row as current row. Any one point out where is the mistake?
    We have tried the below code as well in deleteCurrentRow() method
    RowKeySet rowKeySet = (RowKeySet)this.getT1().getSelectedRowKeys();
    CollectionModel cm = (CollectionModel)this.getT1().ggetValue();
    for (Object facesTreeRowKey : rowKeySet) {
    cm.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)cm.getRowData();
    rowData.getRow().remove();
    The same behavior still.
    Thanks in advance.
    Rechin
    Edited by: 900997 on Mar 7, 2012 3:56 AM
    Edited by: 900997 on Mar 7, 2012 4:01 AM
    Edited by: 900997 on Mar 7, 2012 4:03 AM

    JDev 11.1.1.5.3 sounds like you are using oracle apps as this not a normal jdev version.
    as it works in 11.1.1.5.0 you probably hit a bug which you should file with support.oracle.com...
    Somehow you get the first row instead of the current row (i guess). You should debug your code and make sure you get the current selected row in your bean code and not the first row.
    This might be a problem with the bean scope too. Do you have the button (or table) inside a region? Wich scope does the bean have?
    Anyway you can try to remove the iterator row you get
    public void deleteCurrentRow (ActionEvent actionEvent) { DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("EventCalendarVOIterator");
    dcItteratorBindings.removeCurrentRow();Timo

  • How to get edited row values from ADF table?

    JDev 11.
    I have a table which is populated with data from Bean.
    I need to save changes after user make changes in any table cell. InputText is defined for table column component.
    I have defined ValueChangeListener for inputText field and AutoSubmit=true. So when user change value in inputText field, method is called:
    public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
    getSelectedRow();
    SaveMaterial(material);
    This method should call getSelectedRow which take values from selected table row and save them into object:
    private Row getSelectedRow(){
    RichTable table = this.getMaterialTable();
    Iterator selection = table.getSelectedRowKeys().iterator();
    while (selection.hasNext())
    Object key = selection.next();
    table.setRowKey(key);
    Object o = table.getRowData();
    material = (MATERIAL) o;
    System.out.println("Selected Material Desc = "+material.getEnumb());
    return null;
    Problem is that getSelectedRow method doesnt get new (edited) values, old values are still used.
    I have tried to use ActiveButton with same method and it works fine in that case. New values are selected from active row and inserted into object.
    JSF:
    <af:table var="row" rowSelection="single" columnSelection="single"
    value="#{ManageWO.material}" binding="#{ManageWO.materialTable}">
    <af:column sortable="false" headerText="E-number">
    <af:inputText value="#{row.enumb}" valueChangeListener="#{ManageWO.SaveMaterial}" autoSubmit="true"/>
    </af:column>
    <af:column sortable="false" headerText="Description">
    <af:inputText value="#{row.desc}" valueChangeListener="#{ManageWO.SaveMaterial}" autoSubmit="true"/>
    </af:column>
    </af:table>
    <af:activeCommandToolbarButton text="Save" action="#{ManageWO.EditData}"/>
    What is a correct place from where save method should be called to get new (edited) values from ADF table?
    Thanks.

    Did you look into the valueChangeEvent?
    It has oldValue and newValue attributes.
    public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
    Object oldVal = valueChangeEvent.getOldValue();
    Object newVal = valueChangeEvent.getNewValue();
    // check if you see what you are looking for.....
    getSelectedRow();
    SaveMaterial(material);
    }Timo

  • List Binding is Not Working Correctly for an ADF Table

    I created an ADF Select One Choice for a field being displayed in an ADF Table - mutliple records.
    The issue I'm seeing is that all the records in the ADF Table are showing the same value in the field defined as a "List", but the field values are not all the same.
    It almost looks like the List is taking the value in the first record and assigning the value to all the other records in the ADF Table.
    Please help.

    The solution is explained here:
    http://www.oracle.com/technology/products/jdev/tips/muench/screencasts/editabletabledropdown/dropdownlistineditabletable.html?_template=/ocom/technology/content/print

  • Open url in new window on button click of adf table

    Hi,
    I have a requirement in which i need to open the constructed URL in a new tab/window on button in adf table.
    I am using action listener for the button, using action event i am getting the values of the particular row to the bean and using those values i am constructing url.
    Now i have to use the URL and open it in a new tab/window.
    Please suggest me different approaches.
    jdev version 11.1.1.5

    Hi,
    Check following will match for your use case
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/33-open-page-in-new-tab-169175.pdf

Maybe you are looking for

  • Play movies on my mac onto tv

    Hi, i know this has been asked loads, but i just wanna make sure this will work before i spend the money on it. i've got a dual 1.8 g5 with an ati 9600. i want to watch movies from my mac on a tv in another room. i was going to buy a adc to vga adapt

  • 0CRM_SALES_ACT_1 standard datasource of CRM not working

    While trying to extract data through standard datasource 0crm_sales_act_1 it is failing with the error "Error occured in data selection". And in the source system(CRM) , it is throwing dump with the runtime error message "  BCD_OVERFLOW"  Overflow du

  • Help reqd on USER EXIT

    Hi all.... I got a new object in USER EXIT for my current impl project... 1st,i know that how to creat it in cmod but i desnt know how to do enhancement assignment and writing a code for the below requirement my SD consultant req is...... IN VA01, th

  • Deployment error in com.evermind.....

    Yet another bomb in my face ;) during deployment i get this (i'm trying to add some ebeans to the project, we've been using DAO's uptill now) Auto-unpacking D:\oc4j9030\j2ee\home\applications\NMS_EJBs.ear... done. Auto-deploying NMS_EJBs (New server

  • Error opening OWA in environment coexisting 2010 2013

    Good Morning, I am facing the following problem was realziado uam mailbox migration from Exchange 2010 to Exchange 2013, however this account has link with BES for Exchange, where it was necessary to return to 2010 after it not possible to account be