Focus on next navigatble item in ADF Table after refresh

Hi,
How to set the focus in the ADF table to next navigable item after Table Refresh.
I have valueChangeListner set to one of the columns in the table. Once the Value is changed in the Column we perform calculations based on the value and update the RowIterator.
To get the updated values I refresh the Table. It shows the updated values correctly.
After refresh the contorl/focus moves to the Table header.
Instead We would like to have the focus on the next navigable Item in the Table.
Or is there a way to change the values in the Table without refreshing by Partial trigger on the Table.
Thanks,
Satya

Hi Arun,
I did that but it doesn't seems to be working as it need to refresh its own column.
eg:
Row COL1 COL2
R1: Rxxxx Val1
R2: Lxxxx Val2
R3: Exxxx Val3
R4: Fxxxx Val4
When I modify Val1 Val4 need to be calculated using val1-val3/val2
I'm doing this in ValueChangeListener. and setting attribute values by finding the correct row using RowsetIterator.
When I refresh the Table Iterator in Row R4 Val4 is showing the correct values.
But If I refresh the COL2 it doesn't change the value in row R4
I have tried by setting IterartorBinding Refresh to always / ifneeded. Tried both declarative and Dynamically. There is no effect.
Thanks,
Satya

Similar Messages

  • Refreshing an ADF Table After update

    I have an ADF Table which has multiple records. I want the table should refresh after I change some field and press commit.

    Hi,
    Assuming you are using ADF Faces your can double click on the command button and add a backing bean method, in which you call the commit and then also execute (for execute query).
    Let Jdev generate the backing bean code for you and then add the execute binding manually in the page definition and then add it after the commit code in the backing bean.
    Brenden

  • How to not getting record in table after refreshing my page?

    Hi,
    I am using jdev 11.1.1.2.3
    My problem is,.. i am performing deleting operation my table for deleting record in that time it is deleted,
    But in my problem is after refreshing the page record is coming back.
    I am performing delete operation using bindings
    can any one help me..
    Thank You..

    Hi,
    Actually i create global components insert delete,commit,first,next these all are icons in my template page
    when i am using any master table click on those icons i perform operations
    for bindings
    insert:#{backingBeanScope.AdminCountryBean.addNewCountry}
    savecall:#{AdminMainActionBean.pofAdminAction}
    cancelcall:#{bindings.Delete.execute}
    For inserting and saving i write bean class deleting i am not following any programmatic approach....

  • Maintain the current row position of a table after refresh.

    Hi,
    I use a poll to refresh tables continuously. when a table is refreshed, the current referring row is reset.
    To maintain the current row position after a refresh I use the following poll method.
    public void refreshTableT1(PollEvent pollEvent) {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding dcb = fctx.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer bindings1 = (DCBindingContainer) dcb.getValue(fctx);
    DCIteratorBinding dciter = bindings1.findIteratorBinding("<VOIterator>");
    if(dciter!=null){
    if(dciter.getCurrentRow()!=null){   
    Key current_row_key = dciter.getCurrentRow().getKey();
    dciter.executeQuery();
    if(current_row_key!=null){
    try{
    dciter.setCurrentRowWithKey(current_row_key.toStringFormat(true));
    }catch(Exception ex) {
    System.out.println("Exception in current_row_key");
    }This works for normal tables well. But when I use it to master-detail tables (pair of tables) it does not.
    At the master-detail tables, before the first data fetch, it works well. if we go below the first data fetch, it sets the current row into another position.
    how can I overcome this...??
    Thanks,
    Dinuka.

    Hi Mr.Frank,
    I have an association in two VOs.
    for example: There are 2 tables called Emp and Dept. Every Department has Employees. so there is an association (both tables have a common column). Master table is the Dept table. when you click on one record of the Dept table Detail table will show the details of the employees belongs to that selected department. That's what I referred as master-detail tables. first one is master table; second one is detail table.
    When the web page loads all the table data is not fetched from the db (it will depend on the fetch size). when we scroll down the table data fetch happens again and again.
    think my data fetch size is 25 rows per time.
    Suppose we use mine poll method and think I have clicked on the 20 ^th^ row of table1(master table). then the table2 will display details belongs to selected department. that is OK even after refresh. that works well.
    when I go to 30 ^th^ row data fetch will happen (my fetch size = 25)
    when I click on the 30 ^th^ row of the table1(master table), table2 will display details belongs to selected department. but after the poll method is called the selected row at the table1 disappears and is set to another position. now the 30 ^th^ row is not in the 30 ^th^ position. but it is the selected row and table2 displays correct details.
    I think you have got the problem now. :D
    Thanks a lot.
    Dinuka.

  • Keep filter in adf richtable after refreshing

    Hi,
    i use jdeveloper 11g (11.1.1.0.1) with toplink (no ADF BC) and have the following Problem:
    I have a table with enabled builtin filtering. If i filter the data and make a refresh the filter is gone. The refresh is achieved by a call to the Execute-Method of the according Iterator. I played around with the Refresh-option of the SearchRegion but nothing helps.
    Any ideas?
    Thanks in advance,
    Friedrich

    Hi,
    Try and add an af:inputText component to the "filter" facet of the column. Then bind this field value property to a managed bean variable to store and hold the filter data. I think this should work
    Frank

  • Warning messages recieved when activating z* tables after refresh.

    Hi all,
    We are having a problem in activating tables. After the system refresh, while activating z* tables warning messages are recieved. Some of the warnings recieved are as follows:
    Index LIKP-BGR is not in customer namespace.
    Enhancement category for table missing.
    Enhancement category for include or sub-type missing.
    It appears that the tables with "enhancement categories" set to "not classified" are the ones posing the problems.
    Earlier, this problem was not there. But after a technical weekend the issues are being faced.
    The details of the system are:
    Application Server beevssp1_RQ1_00
    SAP Kernel Information
    SAP Kernel :  700_REL
    Database Client Library : OCI_102 (10.2.0.2.0)
    created in  :  AIX 2 5 005DD9CD4C00
    created on  :  Oct 26 2008 20:51:39
    Support Level  :  0
    Kernel Patch number : 183
    Source ID  :  0.183
    DBSL Patch No. : 167
    ICU Version : 3.0 Unicode Version 4.0.1
    libsapu16 Version : 1.0025  Oct 24 2008 20:54:38
    Supported Environment
    SAP Database Version
    700
    Database
    ORACLE 9.2.0..
    ORACLE 10.1.0..
    ORACLE 10.2.0..
    Operating System
    aix 1 5
    aix 2 5
    aix 3 5
    aix 1 6
    Please suggest.

    Hi varsha,
    Index LIKP-BGR is not in customer namespace.
    Enhancement category for table missing.
    Enhancement category for include or sub-type missing.
    For this goto SE11
    Enter the table name .
    Click on Display               .
    Go to Extras-->Enhancement Category.
    select radio button for Can be enhanced Deep.
    Click on continue.
    This will resolve your issue.
    Let me know if you have any problem....
    Thanks & Regards,
    Sudheer.
    Edited by: sudheer chowdhary on Dec 22, 2008 8:02 PM

  • How  to set focus on next row inputfield in table

    Hello all,
    How  to set focus on next row input field in table
    Please help.
    Thanks in advance.
    CSP

    Hi,
    use the following code
    wdThis.wdGetAPI().requestFocus(nodeElement, attribute)
    Ex:
    Provide the attribute and replace the nodeElement with that of yours
    IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("Your attribute");
           wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(), attributeInfo);
    Regards
    Ayyapparaj

  • 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

  • Non-database/Non-VO based ADF table: need programmaticall access! 11g

    Hello there,
    I have ADF table with 2 attributes coming from a managed-bean. The table lies within *.jsff page in popup panelWindow. I am able to populate the table from the managed-bean after performing some actions.
    My question is:
    How to  get access to the selected row of that table programmatically? Since I want to perform delete of the selected row (including the values from the managed-bean corresponding to the selected row).
    One of the table attributes contains unique values, but is not set as PK. I don't know if it is necessary to set that attribute to behave as PK. If yes, how do I achieve that, since is not VO-based table ?
    Thanks a lot.
    Regards,
    Valon

    Hi,
    I would like to know how to populate af:table from a managed bean:
    This is what I am trying:
    There is a managed bean: StudentBean.java
    This is registered in adf-config.xml as ADFStudentBean and also registered in faces-config.xml as JSFStudentBean.
    Now I create a jspx page and create a JSF dataTable which I bind to JSFStudentBean. This works fine.
    Next I create an ADF table and try to bind it to ADFStudentBean. It does not get bound since the columns are not appearing in the binding.
    So I try to bind it to JSFSudentBean. This one works. But it throws a runtime exception:
    This message may be avoided by performing initADFContext before using getCurrent().
    <RegistrationConfigurator><handleError> Server Exception during PPR, #1
    javax.servlet.ServletException: java.lang.StackOverflowError
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:333)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    The steps are as follows:
    1. Create Student.java
    2. Create StudentBean.java
    3. Register StudentBean.java as JSFStudentBean in faces-context.xml in request scope.
    4. Register StudentBean.java as ADFStudentBean in adf-config.xml in request scope.
    5. Create jspx file: Use f:dataTable like:
    <h:dataTable value="#{JSFStudentBean.studentData}" var="var" id="dt1">
    <!--oracle-jdev-comment:Faces.RI.DT.Class.Key:oracle.apps.view.Student-->
    <h:column id="c3">
    <f:facet name="header">
    <h:outputText value="Stud Name" id="ot3"/>
    </f:facet>
    <h:outputText value="#{var.studName}" id="ot4"/>
    </h:column>
    <h:column id="c2">
    <f:facet name="header">
    <h:outputText value="Stud Roll" id="ot5"/>
    </f:facet>
    <h:outputText value="#{var.studRoll}" id="ot1"/>
    </h:column>
    <h:column id="c1">
    <f:facet name="header">
    <h:outputText value="Stud Class" id="ot6"/>
    </f:facet>
    <h:outputText value="#{var.studClass}" id="ot2"/>
    </h:column>
    </h:dataTable>
    This works well.
    6. Create af:table and try to bind it to "#{ADFStudentBean.studentData}
    Does not work. The columns do not come in the create table wizard.
    7. Hence I create af:table and bind it to #{JSFStudentBean.studentData}"
    "<af:table value="#{JSFStudentBean.studentData}" var="row"
    rowBandingInterval="0" id="t1">
    <af:column sortable="false" headerText="Stud Name" align="start"
    id="c1">
    <af:outputText value="#{row.studName}" id="ot1"/>
    </af:column>
    <af:column sortable="false" headerText="Stud Roll" align="start"
    id="c3">
    <af:outputText value="#{row.studRoll}" id="ot3"/>
    </af:column>
    <af:column sortable="false" headerText="Stud Class" align="start"
    id="c2">
    <af:outputText value="#{row.studClass}" id="ot2"/>
    </af:column>
    </af:table>"
    Bindings work but fails with the servletException
    Target URL -- http://127.0.0.1:7101/ADFWebApp2-ViewController-context-root/faces/student.jspx
    <ADFContext><getCurrent> Automatically initializing a DefaultContext for getCurrent.
    Caller should ensure that a DefaultContext is proper for this use.
    Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
    This message may be avoided by performing initADFContext before using getCurrent().
    <ADFContext><getCurrent> Automatically initializing a DefaultContext for getCurrent.
    Caller should ensure that a DefaultContext is proper for this use.
    Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
    This message may be avoided by performing initADFContext before using getCurrent().
    <TableRenderer><encodeAll> Table with ID: t1 has no visible columns.
    <ADFContext><getCurrent> Automatically initializing a DefaultContext for getCurrent.
    Caller should ensure that a DefaultContext is proper for this use.
    Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
    This message may be avoided by performing initADFContext before using getCurrent().
    <RegistrationConfigurator><handleError> Server Exception during PPR, #1
    javax.servlet.ServletException: java.lang.StackOverflowError
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:333)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.StackOverflowError
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.adf.controller.faces.FacesServletEnvironment.getLocale(FacesServletEnvironment.java:54)
    at oracle.adf.share.http.ServletEnvironment.getRequestLocale(ServletEnvironment.java:120)
    at oracle.adf.share.ADFContext.getLocale(ADFContext.java:1129)
    at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.createSessionOptions(ADFContextMDSConfigHelperImpl.java:89)
    at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.createMDSSession(ADFContextMDSConfigHelperImpl.java:52)
    at oracle.adf.share.ADFContext.getMDSSessionAsObject(ADFContext.java:1289)
    at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.detectChanges(MdsMetadataResourceProvider.java:610)
    at oracle.adf.controller.internal.metadata.MetadataService.getPerUserCache(MetadataService.java:733)
    at oracle.adf.controller.internal.metadata.MetadataService.getPerUserCache(MetadataService.java:707)
    at oracle.adf.controller.internal.metadata.MetadataService.getAdfPageFlow(MetadataService.java:437)
    at oracle.adfinternal.controller.util.StateUtils.getCurrentPageFlow(StateUtils.java:141)
    at oracle.adfinternal.controller.beans.ManagedBeanFactory.getManagedBeanInCurrentPageFlow(ManagedBeanFactory.java:818)
    at oracle.adfinternal.controller.application.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:91)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
    at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:107)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
    at javax.faces.component.UIViewRoot.getLocale(UIViewRoot.java:824)
    at oracle.adf.controller.faces.FacesServletEnvironment$PrivilegedFacesLocaleAction.run(FacesServletEnvironment.java:118)
    at oracle.adf.controller.faces.FacesServletEnvironment$PrivilegedFacesLocaleAction.run(FacesServletEnvironment.java:107)
    Student.java:
    public class Student {
    private String studName;
    private Integer studRoll;
    private String studClass;
    public Student() {
    super();
    public Student(String studName, Integer studRoll,
    String studClass) {
    this.studName = studName;
    this.studRoll = studRoll;
    this.studClass = studClass;
    public void setStudName(String studName) {
    this.studName = studName;
    public String getStudName() {
    return studName;
    public void setStudRoll(Integer studRoll) {
    this.studRoll = studRoll;
    public Integer getStudRoll() {
    return studRoll;
    public void setStudClass(String studClass) {
    this.studClass = studClass;
    public String getStudClass() {
    return studClass;
    StudentBean.java:
    package view.example;
    import java.util.ArrayList;
    import java.util.List;
    public class StudentBean {
    private List <Student> studentData;
    public StudentBean() {
    studentData = new ArrayList <Student> ();
    studentData.add(new Student("Rakesh", 23, "Six"));
    studentData.add(new Student("Hari", 12, "Two"));
    studentData.add(new Student("Rajesh", 61, "Five"));
    public void setStudentData(List<Student> studentData) {
    this.studentData = studentData;
    public List<Student> getStudentData() {
    return studentData;
    Please tell me why am I not able to use af:table and the managed bean registered in adf-config.xml?
    Thanks,
    Subhranshu.

  • ADF table data not refresh

    hi,
    i am create a adf table using data control. value of adf table depend on view object. where i bind a variable in where clause.
    now i am giving the value of whereClauseParam using using view object instance in backing bean method.
    when i pressed command button method run properly but adf table not refresh and not showing data.
    thanks in Advance

    public void callData(ActionEvent ae) {
    String amDef = "com.jagran.in.model.view.updatable.AppModule";
    String config = "AppModuleLocal";
    ApplicationModuleHandle handle = null;
    ApplicationModule am;
    try {
    handle = Configuration.createRootApplicationModuleHandle
    (amDef, config);
    //am = Configuration.createRootApplicationModule(amDef,config);
    // ApplicationModule sam = handle.useApplicationModule();
    am=handle.useApplicationModule();
    am.processChangeNotifications();
    ViewObject svo = am.findViewObject("BindView1");
    svo.setNamedWhereClauseParam("id","JK0554");
    svo.executeQuery();
    ((ViewObjectImpl)svo).refreshCollection(null, false, false);
    am.processChangeNotifications();
    svo.reset();
    while (svo.hasNext()) {
    Row r = svo.next();
    System.out.println( (String)r.getAttribute(1));
    } catch(Exception e)
    System.out.println(e);
    finally {
    if (handle != null)
    Configuration.releaseRootApplicationModuleHandle(handle, false);
    }

  • Adf Table with selection as set to NONE

    Hi,
    I having a scenario as explained below:
    I am populating records in to the adf Table
    After that I am using checkbox for selecting multiple records in the table and delete them.
    So I set selection property to None for the table. Because I want user to edit only that record which is checked.
    My multiple delete is working fine.
    Now if i selected one checkbox and and click on edit(which I have placed in the panal collection toolbar) it should show me the record in the which I have selected by check box. But it is showing me the first row.
    Can anybody help me to set the current row of the adf table manually which is having selection property as none. so that I can populate in popup.
    If some other way is available please explain.
    I am using jdeveloper 11.1.2.1
    Thanks,
    Sandeep.

    I don't see why you can't set selection property to "single"? (and don't forget to restore table SelectionListener property - if deleted)
    This will set current row when you click on it.
    If you programmatically iterate through RowSet to find rows with selected checkbox, this will work regardless of value in "selection" property.
    Dario
    Edited by: kdario on Nov 7, 2012 5:20 AM
    Edited by: kdario on Nov 7, 2012 5:22 AM

  • Problem when removing elements from table after apply sort

    Hi,
    I have big problem with <af:table> and sorting.
    When I removed objects from a table without sorting, there is no problem but when I removed
    items from the table after sorting, the remain items are not correct.
    For example, i have in my table these items :
    Item AA
    Item CC
    Item ZZ
    Item BB
    Item AA
    Item BB
    Item CC
    Item ZZ
    I sort the table and i select the following Items : Item BB a Item CC
    The remains item is only Item AA, Item ZZ disappear.
    If i resort the table, the missing Item zz appear again in the table.
    Here is my jspx :
    <af:table var="row" rowBandingInterval="1" width="1050" rows="5"
    rowSelection="multiple"
    value="#{pageFlowScope.editNotificationBackingBean.ingredients}"
    binding="#{pageFlowScope.editNotificationBackingBean.ingredientsTable}"
    autoHeightRows="10" id="t2">
    <af:clientListener method="goEditRow" type="dblClick"/>
    <af:serverListener type="doubleClickOnRow" method="#{pageFlowScope.editNotificationBackingBean.handleRequestIngredientsSelectBtn_action}"/>
    <af:column headerText="#{bundle.col_fr_name}" width="240"
    sortable="true" sortProperty="name.FR_Description" id="c1">
    <af:outputText value="#{row.name.texts['fr'].value}" id="ot1"/>
    </af:column>
    In my backing bean i call this method to remove selected elements :
    public void unselectBtn_action(ActionEvent actionEvent) {
    RowKeySet rowKeySet = selectIngredientsTable.getSelectedRowKeys();
    int i = 0;
    Iterator it = rowKeySet.iterator();
    while (it.hasNext()) {
         Integer index = (Integer)it.next() - i;
    selectIngredientsTable.setRowKey(index);
    CompositionIngredient compositionIngredient =
    (CompositionIngredient)selectIngredientsTable.getRowData();
    notification.getProductDetail().getCompositionIngredients().remove(compositionIngredient);
    i++;
    selectIngredientsTable.getSelectedRowKeys().clear();
    AdfFacesContext.getCurrentInstance().addPartialTarget(selectIngredientsTable);
    Thanks in advance.

    I have made a mistake, i don't paste the right <af:table> from my jspx.
    Here is the correct one :
    <af:table var="row" rowBandingInterval="1" width="1050"
    rowSelection="multiple" id="tableSelectedIngredients"
    value="#{pageFlowScope.editNotificationBackingBean.notification.productDetail.compositionIngredients}"
    binding="#{pageFlowScope.editNotificationBackingBean.selectIngredientsTable}"
    partialTriggers="::tab_ingredients_list_expressed_per">
    <af:column sortable="true" headerText="#{bundle.col_name}" id="c5" width="180"
    sortProperty="ingredient.name.FR_Description">
    <af:outputText value="#{row.ingredient.name.texts['fr'].value}"
    id="ot18"/>
    </af:column>
    ...

  • ADF Question: Set focus in table after ppr

    Hi all,
    I am using JDeveloper 10.1.3.3 with ADF and BC.
    In my table I have two editable fields, itemCode and quantity.
    When I hit enter in the itemCode, I execute a method in the backing bean, and the table is ppr refreshed.
    After that, I want the focus to go to the next field, quantity.
    I have tried following this example: http://www.bloggingaboutoracle.org/archives/focussing-conditionally-in-a-table-after-a-partial-page-refresh
    However, the focusItem string never has the row index included. So the focus never gets set correctly.
    Next I tried doing it via javascript, changing the focus after the event by adding a partial target to a script tag that sets the focus. However, the row index at this time is not what it was at the time of entering the itemCode.
    It looks like the rowIndex (ie: form1:table1:rowIndex:quantity) is changing after the ppr event. At the beginning (when entering the item) it is 0, but after the ppr, it is 1 or 3 or something else...
    How can I get this row id? OR how can I go about setting the focus to that next field (quantity) after the ppr?
    Thanks,
    Heather

    Hi,
    the row index should always be in synch with the underlying binding. So if you get the current rows position in the iterator then you know its index in the table
    Frank

  • How to change "next" "previous" in ADF table ?

    **hi ,**
    **I am using oracle jdev 10.1.3.4**
    **I want to put my own text instead of "next" "previous" in ADF table , also I have the same problem in shuttle box ,**
    **I want to change the default javascript validation (ex: shuttle box alerts)**
    **I do not know to customize it or where these files saved ?**
    **any one can help ?**

    Hi Dave,
    Thank you so much for the email.  I tried every object and method I can
    posibly think about such as
    myTable.Rows.Item(1).PointSize = 24
    myCell.Characters.Item(1).PointSize = 24
    I got error message all the time.  These objects don’t support PointSize.
    All I need is to change point size of the text in InDesign tables created
    using VBScript. Could you help me with this?  Thanks,
    Regards,
    Li

  • How to show next set of columns in a adf table

    hi,
    i want to display 999 no of columns in a adf table. since it is not a better way to show all the columns in the adf table at a time, we want to show 10 columns at first and by using the next and previous links the user can see the next and previous set of columns. i dont know how to do this. please help me.
    parameswaran

    You have to put table name in Capital letters
    Like
    SELECT COUNT(1)
      FROM user_tab_columns
    WHERE table_name = 'EMP';
    or
    SELECT COUNT(1)
      FROM user_tab_columns
    WHERE table_name = UPPER('Emp');Regards
    Arun

Maybe you are looking for

  • E51 is lack of "OK" button and groups are missing ...

    Greetings all! Couple of days ago I've noticed that my phone E51 is lack of "OK" button - to be more precise: when I'm creating new SMS/ MMS message and I'm going to add contact, the cell phone displays all my contacts, I can select one or more perso

  • How can I go to a new window by clicking a button

    Hi, I am a beginner user of Labview. Could help me solve this problem: For user's login verified, the system allows the user to choose two functions. Press button 1, go to a new window where the user can change their particulars Press button 2, go to

  • How is the interface between the Java Stack and ABAP stack is achieved?

    How is the interface between the Java Stack and ABAP stack is achieved?..Please send me the answer to [email protected]

  • Can't see youtube videos (version 3.6.12)

    I currently can't see any you tube videos (on the you tube site, or embedded on other websites). The videos work using the IE tab 2 (FF 3.6+) version 2.10.19.1 plugin. I have the most recent Adobe flash installed.

  • Virtual PC - Microsoft Visual C++ 6.0

    Has any one tried install Visual C++ 6.0 on Virtual PC ? Am very interested in getting an iBook. But I work with VC++ mainly. That would be the main factor that stops me from buying a mac.