Selecting unique rows in ADF ViewObject

Hi,
In my ADF application, i am fetching data from a table. the situation is, my table is having same row of data multiple times. The primary key is a sequence. I want to fetch distinct rows of data from the table.
So, I wrote query to fetch the distinct rows of the table.
The query works in the Database SQL worksheet, but when i use it in my ViewObject and run, it throws an error saying
View object ActiveUsersVO does not include a primary key attribute Pk of entity base ExtUserMapping.here Pk is my primary key. I did not used it in the query to get the unique rows.
help me fetch the unique rows in ADF without the primary key
thanks,
Rajan

User please tell us yor jdev version!
This should be no problem as long as your VO is build as road only based on a query like
select distinct department_id from job_historyThis VO can be used without a PK, however some function which are working on PKs won't work. The query works on hte HR schema.
Timo

Similar Messages

  • Select unique rows from two tables...

    Hi,
    I have two tables, replies1 and replies2.
    SQL> desc replies
    Name Null? Type
    URN VARCHAR2(36)
    ADDRESS VARCHAR2(18)
    FILESIZE NUMBER
    AS_NUM VARCHAR2(6)
    SQL> desc replies2
    Name Null? Type
    URN VARCHAR2(36)
    ADDRESS VARCHAR2(18)
    AS_NUM VARCHAR2(6)
    Both of the tables have no primary keys, but I have indixes on (urn, addrss) combination on both....
    I am trying to select the unique rows with (urn, address) from replies2, and then find the matching size from replies...
    I am using the following query:
    select distinct replies2.urn, replies2.address, replies.filesize from replies2, replies where replies2.AS_NUM like 'XYZ' and replies.urn = replies2.urn;
    I cannot figure out why it won't work. the way I understand it is that, distinct will give all distinct combination of all column names that follow, which is what I want...
    I know it is wrong, because the query:
    select count(*) from replies2 where AS_NUM like 'XYZ' returns less number of rows than the above query.
    Any help would be greatly appreciated.
    Thank you
    Oz.

    Thanks a lot Mohan for your reply.
    urn is not a unique key. Several rows could have the same (urn, address) pair in both tables. What I want is retrieve all (urn, address) rows from one table, and find the size from the other table to make a (urn, address, size). I want all unique combinations of (urn, address) to appear in the output.
    AS_NUM is an empty column in replies... It would've been a lot easier if it wasn't, since then I'll just say: select distinct urn, address, filesize from replies where AS_NUM like 'XYZ';
    I will try your query though and let u know how it goes. It takes quite a while to run since my tables are huge.

  • Selecting unique fields

    Now i know Distinct selects unique rows but i will try my best to explain what i mean.
    I have a table with 3 fields, module, modulepart and lecturer.
    I want to select only the records where module and modulepart are diffrent so there can be 2 rows with the same module but only if the modulepart are diffrent and vice versa
    Bellow is records i dont want.
    (Module) (Modulepart)
    (M101) (L)
    (M101) (L)
    I want records like this
    (Module) (Modulepart)
    (M101) (L)
    (M101) (P)
    I hope you understand and can help, i tearing my hair out there.
    Edited by: user13009129 on 28-Apr-2010 14:59

    Hi,
    So you want all the distinct combinations of module nd modulepart. The other column, lecturer, plays no role in this problem. Is that right?
    If so:
    SELECT    module, modulepart
    FROM      table_x
    GROUP BY  module, modulepart
    ;I hope that answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data.

  • Need sample code to get handle of Selected rows from ADF Table

    Hi,
    I am new to ADF. I have an ADF table based on VO object.On some button action,I need to get handle of selected rows in application module.
    If anybody is having sample code to do this then please share with me.
    Thanks,
    ashok

    wow now link http://blogs.oracle.com/smuenchadf/examples/#134 is working.thanks a lot.
    also the link http://baigsorcl.blogspot.com/2010/06/deleting-multi-selected-rows-from-adf.html is very useful. Thanks a lot for Sameh Nassar too.He made it clear that in 11g Select column is not available for a ADF table and provided a solution to get Select column.
    Thanks,
    ashok

  • Change the background color of selected row in adf table

    Hi,
    Can somebody guide me in changing the background color of a row when its being selected. In my ADF table, one of the column is of type Command Link. So whenever i click this command link on any particular row that complete row color should change as an indication of that row being selected.
    Please guide me to do this. I referred to other forum posts, but they couldnt meet my need.
    Thanks
    ri

    Hi Frank,
    you're right. This should work. But the result is not perfect from my point of view.
    I use
    <af:table ...>
      <af:column ...>
        <af:outputText value="#{row.col1}" inlineStyle="#{row.mystyle}"/>
      </af:column>
    </af:table>and I get e.g. this in HTML:
    <table ...>
      <tr>
        <td class="af_column_cell-text OraTableBorder1111"><span style="font-weight:bold;">qqq</span></td>
      </tr>
    </table>while I would prefer to get somethig like this:
    <table ...>
      <tr>
        <td style="font-weight:bold;"><span>qqq</span></td>
      </tr>
    </table>, which looks much smarter. Is it possible?
    Thanks,
    Alexandre.

  • How to select rows in adf faces table

    Hi guys
    im new to adf faces .I created a adf faces table with some data.My task is to select one row and if i click tht row, the data of tht row will be displayed in an input text fileds.How can i select a row in a adf faces table and give actions to rows...i read so many tutorials...none of them didnt give a correct idea....plz help me...
    thanks in advance..
    rajiv

    You're here in the Sun JSF forum, not in the Oracle JSF forum.
    Try here: JDeveloper and ADF
    If the ADF datatable is technically comparable with the RI datatable, check http://balusc.xs4all.nl/srv/dev-jep-dat.html to get some insights how to retrieve the selected row object.

  • Problem while creating row with dependent select one choice in adf  table

    Iam having independent and dependent select one choice in a ROW in adf af:table
    unable to insert more than one row with dependent select one choice using create insert in adf table.
    Able to add more rows in UI af:table but ,ignoring previous rows (select one choice values) and only latest current row values is getting inserted to the database.
    Following is the code used to create row and for pointing to the current row
    public void addRowOnSecSettings(){
    SecurityGroupSettingsVOImpl SecGroupSetVO =(SecurityGroupSettingsVOImpl) this.getSecurityGroupSettingsVO1();
    try{
    int rowCount = SecGroupSetVO.getRowCount();
    SecurityGroupSettingsVORowImpl SecGroupSetRow =
    (SecurityGroupSettingsVORowImpl)SecGroupSetVO.createRow();
    SecGroupSetRow.setNewRowState(Row.STATUS_INITIALIZED);
    SecGroupSetVO.insertRowAtRangeIndex(rowCount, SecGroupSetRow);
    SecGroupSetVO.setCurrentRowAtRangeIndex(rowCount);
    SecGroupSetVO.setCurrentRow(SecGroupSetRow);
    } catch (Exception e) {
    e.printStackTrace();
    Regards,
    Bhagavan

    as it is dependent select one choice ,have already put auto submit="true".but no chance ,
    if i add two rows vo rowiterator showing count 2 but only current row select onechoice values are getting where as previous row select one choice values are null.

  • ViewObject selecting no rows

    Hi,
    In my JClient operation I use an Application Module which has multiple ViewObjects. Some ViewObjects are detail ViewObjects of other ViewObjects using ViewLinks. Certain ViewObjects are displayed in a JTree, some in a JTable others in a JList etc.
    When BC4J initializes the application module / panel binding it executes the queries of the master ViewObject(s) and loads a list of records in the JTree, JTable or JList (etc.). It also always selects the first record in the list.
    I don't mind BC4J to load data into the lists but I don't want a row selected in the ViewObjects until the user selects a row. The only way this seems possible is by resetting the ViewObject data. But this means, although it keeps displaying the data, it will lose all data and needs to perform a new query to really do something with the data.
    Is there another way to select nothing in a ViewObject which doesn't have the problem described above? And can this be set prior to loading (and selecting) data the first time? Or must it be set just after?
    Regards,
    Peter

    User please tell us yor jdev version!
    This should be no problem as long as your VO is build as road only based on a query like
    select distinct department_id from job_historyThis VO can be used without a PK, however some function which are working on PKs won't work. The query works on hte HR schema.
    Timo

  • Help to set selected row in adf table!

    Hello,
    I have a problem with adf table, when I select one row in table, I want to set selecte to next row or first row , or end row . . .
    How can I do that.
    If anyone know it, please help me
    Thanks in advance.

    <af:table value="#{bindings.BuddyView1.collectionModel}" var="row" partialTriggers="id"
    rows="#{bindings.BuddyView1.rangeSize}"
    emptyText="#{bindings.BuddyView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.BuddyView1.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.BuddyView1.collectionModel.selectedRow}"
    *selectionListener="#{bindings.BuddyView1.collectionModel.makeCurrent}"*
    rowSelection="single" binding="#{backing_untitled1.t1}"
    id="t1">
    You will have to create your own selection listener method.
    Cheers
    Venkat
    Edited by: Venkat81 on Jun 10, 2010 11:12 AM

  • Error after using a servlet in ADF  - unable to select another row in table

    Hello,
    I have a go button and when I select a row in a table it call a download servlet. After I open or save the document I'm unable to make other selection in the table or make another action.
    The table has single row selection active.
    The servlet make part from a task-flow.
    Here is the code for the sevlet and my jdev version is 11.1.1.2.0
    public class DownloadServlet extends HttpServlet {
    @Override
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    String id= null;
    String den= null;
    InitialContext ic;
    try {
    ic = new InitialContext();
    } catch (NamingException e) {
    DataSource ds = null;
    Connection conn = null;
    PreparedStatement cStmt = null;
    ResultSet rset= null;
    byte[] bdata = null;
    String rezult_null = "";
    id_fisier_lcl = request.getParameter("id");
    den_fisier_lcl = request.getParameter("fileName");
    rezult_null = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
    "<Body>Fisierul a fost arhivat</Body>";
    try {
    ic = new InitialContext();
    ds = (DataSource)ic.lookup("jdbc/ConnDS");
    conn = ds.getConnection();
    cStmt = conn.prepareStatement("commit");
    cStmt.execute();
    conn.commit();
    cStmt= conn.prepareStatement("SELECT a.item FROM table a WHERE a.id = " + id);
    rset = cStmt.executeQuery();
    if (rset.next()) {
    weblogic.jdbc.wrapper.Clob clob =
    (weblogic.jdbc.wrapper.Clob)rset.getClob("content");
    oracle.sql.CLOB oclob = (oracle.sql.CLOB)clob.getVendorObj();
    bdata = new byte[(int)oclob.length()];
    InputStream is = oclob.getAsciiStream();
    is.read(bdata);
    rset.close();
    cStmt.close();
    } else {
    bdata = new byte[(int)rezult_null.length()];
    bdata = rezult_null.getBytes();
    rset.close();
    cStmt.close();
    } catch (NamingException e) {
    } catch (SQLException e) {
    String username_lcl = null;
    username_lcl =
    ADFContext.getCurrent().getSecurityContext().getUserName();
    OutputStream outputStream =response.getOutputStream();
    String mimetype = "";
    FacesContext facesContext =FacesContext.getCurrentInstance();
    response.setContentType( (mimetype != null) ? mimetype : "application/x-download" );
    response.setHeader( "Content-Disposition", "attachment; filename=\"" + den_fisier_lcl + ".xml\"" );
    try {
    outputStream.write(bdata);
    outputStream.flush();
    outputStream.close();
    catch (Exception e) {
    e.printStackTrace();
    FacesMessage msg =
    new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getMessage(),
    facesContext.addMessage(null, msg);
    How can I fix it?
    Thank you.

    Hi,
    have you seen this ?
    http://download.oracle.com/docs/cd/E21764_01/apirefs.1111/e12419/tagdoc/af_fileDownloadActionListener.html
    If you want to continue with your approach, then a way out of your problem could be to add an af:clientListener onto the command button. The JavaScript function would be
    function onDownload(evt){
      evt.noResponseExpected();
    }Frank

  • How to select multiple rows from List Of Values

    Hello,
    I use ADF 11g to create my list of values (LOV). I want to select multiple rows from it. but i can't.
    so how i can select many rows to set them in my adf table.
    Thank in advance

    Hi,
    LOV is map to an attribute in the viewObject so it will return only one value or more values from selected row. You can't select multiple rows from LOV.
    But you can do this by using popup which you can select multiple rows and insert the selected rows to another table.
    This blog post explain how to achieve this :
    http://husaindalal.blogspot.com/2009/11/search-from-popup-and-add-to-new-table.html#comments
    Sameh Nassar

  • How can I display "detailStamp" facet selectively for rows in a table ?

    Hi,
    My JDEV version is Studio Edition Version 11.1.1.5.0
    I am trying to display "detailStamp" facet selectively .
    If I read api in link below
    http://docs.oracle.com/cd/E26098_01/apirefs.1112/e17488/oracle/adf/view/rich/component/rich/data/RichTable.html
    Use the "detailStamp" facet on the Table to include a collapsable content area for each table row. Please note that the height of the open detail area will be a set height based on the height of the detailStamp component. Adding a component that changes in height (like showDetail or panelBox) will by default produce strange results when the detailStamp component's height changes.
    Detail Stamp can be selectively displayed for rows in the table by EL binding the "rendered" attribute of the "detailStamp" facet to "true" or "false". The EL binding can contain references to the table "var" attribute since during rendering it will be executed in the context of the row. Disclosure icon is displayed only for rows which have rendered="true".
    I can see that i can achieve it by setting rendered property for that facet. BUT this property is not available in Studio Edition Version 11.1.1.5.0

    Hi Frank.
    Thanks for your quick reply .
    But I am using Studio Edition Version 11.1.1.5.0 . In this version the property RENDERED of f:facet name="detailStamp" is NOT allowed.
    Edited by: user13764942 on Feb 7, 2013 5:48 AM
    Put in another way , I want to render the "detailStamp" facet selectively for rows , so for that I need the RENDERED property of "detailStamp" facet. This property is ONLY available in Jdev version 11.2 . I am using Jdev 11.1.1.5.0 so I need some alternative to RENDERED property as this property is NOT available in Jdev 11.1.1.5.0.
    Please suggest some way to achieve this behaviour of displaying "detailStamp" facet selectively ....
    Thanks!
    Edited by: Mangpal Singh on Feb 7, 2013 11:57 PM

  • How to delete multiple rows from ADF table

    How to delete multiple rows from ADF table

    Hi,
    best practices when deleting multiple rows is to do this on the business service, not the view layer for performance reasons. When you selected the rows to delete and press submit, then in a managed bean you access thetable instance (put a reference to a managed bean from the table "binding" property") and call getSeletedRowKeys. In JDeveloper 11g, ADF Faces returns the RowKeySet as a Set of List, where each list conatins the server side row key (e.g. oracle.jbo.Key) if you use ADF BC. Then you create a List (ArrayList) with this keys in it and call a method exposed on the business service (through a method activity in ADF) and pass the list as an argument. On the server side you then access the View Object that holds the data and find the row to delte by the keys in the list
    Example 134 here: http://blogs.oracle.com/smuenchadf/examples/#134 provides you with the code
    Frank

  • "Server Exception during PPR" While selecting a row in a table

    Hi everyone
    I have a table inside the "detailStamp" facet of another table
    Whenever i select a row in this inner table, i get an NullPointerException
    Has anybody seen this behaviour before?
    Here's the full log for this error:
    [2008-08-19T13:12:20.109-03:00] [adfinternal] [ERROR] [] [view.faces.config.rich.RegistrationConfigurator] [tid: 12] [ecid: 0000HjRjFfU000000000000000030e0M700000000H,0] [APP: current-workspace-app] Server Exception during PPR, #3[[
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowKey(RowDataManager.java:122)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowKey(FacesCtrlHierBinding.java:507)
         at org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:423)
         at org.apache.myfaces.trinidad.component.UIXCollection.setClientRowKey(UIXCollection.java:653)
         at org.apache.myfaces.trinidad.component.UIXCollection.setCurrencyString(UIXCollection.java:570)
         at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1052)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:139)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:139)
         at oracle.adf.view.rich.component.fragment.UIXPageTemplate.invokeOnComponent(UIXPageTemplate.java:175)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._fixClientIds(LifecycleImpl.java:785)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:263)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:178)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:69)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
         at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:241)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:198)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:141)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.security.jazn.oc4j.JAZNFilter$3.run(JAZNFilter.java:434)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:308)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:452)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:583)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:334)
         at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:942)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:843)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:658)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:417)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:163)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    ]]

    I am also facing similar issue. Please help
    Caused by: java.lang.NullPointerException
    at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowKey(RowDataManager.java:122)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowKey(FacesCtrlHierBinding.java:507)
    at org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:423)
    at org.apache.myfaces.trinidad.component.UIXCollection.processSaveState(UIXCollection.java:247)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at javax.faces.component.UIComponentBase.processSaveState(UIComponentBase.java:1094)
    at org.apache.myfaces.trinidadinternal.application.StateManagerImpl._saveSerializedView(StateManagerImpl.java:284)
    at org.apache.myfaces.trinidadinternal.application.StateManagerImpl.saveView(StateManagerImpl.java:144)
    at com.sun.faces.application.ViewHandlerImpl$WriteBehindStateWriter.flushToWriter(ViewHandlerImpl.java:897)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:184)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:627)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:245)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)

  • How do i select a row when a table is loaded?

    Hello Guys
    could somebody help me? I'm new to ADF and I'm trying to make a SearchPage. It works but I get this behavior:
    #1: I bound the Table with the ResultSet of a EJB-SessionBean find-Method. When the SearchPage is loaded, a the SessionBean-find-Mehod is called. I want, that the Table only shows the ResultSet when the CommandButton "Search" is clicked not on PageLoad.
    #2. In the ResultSet shown in the table no row is preselected. How can i change that?
    # 3. The Table is placed in a TabbedPanel in a showDetailItem "SearchResult". After i select a row I want to show the Details of the selected row-Object in anoteher showDetailItem "Details". How could i handle that?
    Thnx a lot for your Help!

    Hello Frank,
    thank you for responding!
    #1) I tryed #1 but i got the Exception Illegal . I followed the steps you recommended as follow:
    a) On the button "Search" add an af:setPropertyListener. It looks like this:
    <af:commandButton actionListener="#{bindings.getDelegateFindAllBySearchCriteria.execute}"
    text="Suche starten"
    disabled="#{!bindings.getDelegateFindAllBySearchCriteria.enabled}"
    id="cb1" inlineStyle="margin-left:8px;">
    <af:setPropertyListener from="#{true}" to="#{viewScope.executeOK}" type="action"/>
    </af:commandButton>
    b) Have the RefreshCondition property on the iterator in the pageDef file looking for a memory flag e.g #{viewScope.executeOk==true?true:false}. In the ExpressionBuilder I get "#{adfFacesContext.viewScope}" but not #{viewScope}
    I got an error message writing this in de pageDefinition. It accepted: #{viewScope.executeOk==true}. It is right, if TRUE -> TRUE, if FALSE -> FALSE
    The compiler says: "executeOK is an unknown property"
    After that i started the Application and got an
    <14.04.2011 16:59 Uhr MESZ> <Error> <HTTP> <BEA-101020> <[ServletContext@17109869[app:EHRCPD_PISA_TT module:EHRCPD_PISA_TT-ViewController-context-root path:/EHRCPD_PISA_TT-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
    java.lang.IllegalStateException
         at oracle.jbo.uicli.binding.JUSearchBindingCustomizer.getViewCriteria(JUSearchBindingCustomizer.java:2161)
    #2) I set DisplayProperty to "selected" but it did not works. I checked the rows (they are 2) but they are the same. If i debbug the application i see, that the resultSet got from the Database (JPA) is OK. The size of the resultSet is 2 and the Objects retrieved are different. What i'm doing wrong?
    #3) This worked perfectly! Thank you!
    I hope, I get this working.
    Thnx again

Maybe you are looking for

  • Fore Closing Sales Order

    Hi I have created a sales order for items 1000 Qty and delivered 600 qty remaning 400 qty has to be fore closed automatically and must  not appear  in open list

  • PC computers do not recognize Ipod touch

    All the USB ports are fine and the cable work perfectly. When I plug in my Ipod it shows that its charging but the computers dont do anything. I checked devices and even fiddled with some third party softwares that might be blocking it but nothing is

  • How to create Handling Unit using Process Order no. & Packing Instruction

    Hi experts, Please guide me how to create Handling Unit using Process Order number & Packing Instruction reference?Noramlly this is done using standard transaction 'COWBPACK'. ANY FUNCTION MODULE OR BAPI TO DO THIS. if any solution please explain wit

  • Inconsistent primary key naming conventions

    When I create a primary key directly be marking an attribute as primary key the name for the primary key constraint gets a "_pk" suffix. When I create a primary key be adding a identifying foreign key relationship to the entity the name for the prima

  • How to delete InfoSource

    Hi there I have been assigned DS to IS and working  properly.Now we have changed the Source system and assigned the new DS's to IS. Now I want to delete the load from DS, IS ,Tr and ODS and Queries and workbooks, which are not being used.I have delet