Issue while creating ADF Table programatically

Hi,
I am trying to create a table programatically...And i implemented like below:
            RichTable phoneTable = new RichTable();
            phoneTable.setEmptyText("No Phone Details yet");
            getContactPhone(contactObj.getPhone());
            phoneTable.setValue(contactObj.getPhone());
// contactObj.getPhone() is a ArrayList<TelephoneBOD> in pojo Object...
// Which is taken from a Object returned from DataControl Method (Captured in pageFlowScope)
            phoneTable.setVar("row");
            // Add Columns
            RichColumn column = new RichColumn();
            column.setHeaderText("Type");
            column.setId("phoneType");
            column.setAlign("right");
            column.setWidth("100");
            // Set output.
            RichOutputText output = new RichOutputText();
            output.setValue("#{row.phoneType}");
            // Add output into column.
            column.getChildren().add(output);
            // Add column into table.
            phoneTable.getChildren().add(column);When i try to implement like this i am getting fllowing error:
popup:
ZIP_STATE_FAILED
ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #2log:
Caused By: java.io.NotSerializableException: org.ieee.internal.ws.proxy.conf.types.TelephoneBOD
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
     at java.util.ArrayList.writeObject(ArrayList.java:570)
     at sun.reflect.GeneratedMethodAccessor252.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
     at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
     at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
     at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
     at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:239)
     at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
     at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
     at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)
     at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
     at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)I think this is happening because i am not serializing the object passing to Table. If this is the Reason.. How to serialize the object?
Or i am missing something in the code?
Thanks
Thoom
Edited by: User007 on Aug 31, 2011 1:47 PM
Edited by: User007 on Aug 31, 2011 1:47 PM

Thanks Timo.. for simple solution.
Actually.. TelephoneBOD is auto-generated on creation of web service proxy from web service.
I don't think.. updating those Java files directly is a best practice. Because they will be changing if there is any change in web service schema..
You think there is any other way to do so?
Thanks
Thoom

Similar Messages

  • 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 while creating ADF Table

    When I drag view object from data control palette and place it on jspx page as a ADF Table then it does not show any table fields in Edit Table Columns dialog box. I am using JDeveloper 10.1.3.2
    Please Help, its urgent.
    Thanks in advance.

    Hi,
    When you expand your view object in data control can you see those fields?
    Bogdan

  • How to add SelectionListener to ADF table Programatically?

    Hi,
    Iam creating ADF table programatically and trying to setSelectionListener(MethodExpression) to it. i am unable to pass parameter MethodExpression properly.
    What i am trying to do is, need to get the values on row selection of table.
    How to pass that method name in setRowSelection(MethodExpression) programatically.?
    and Any one got sample code of performing row selection event programatically, i mean accessing the selected row in java class i.e., creation of table and adding listeners to it programatically.....
    Thanks
    Thoom
    Edited by: User007 on Sep 4, 2011 9:06 PM
    Edited by: User007 on Sep 4, 2011 9:45 PM

    Thoom,
    from the Docs:
    public final void setRowSelection(java.lang.String rowSelection)so setRowSelection method take a string parameter, and when you look at the property inspector for 'RowSelection' in jdev (which setRowSelection is the peer) you see the possible values:
    single, multiple, multipleNoSelectAll and none or their constant field values ROW_SELECTION_SINGLE, ROW_SELECTION_MULTIPLE, ROW_SELECTION_MULTIPLE_NO_SELECT_ALL, ROW_SELECTION_NONE. You use this property to let the framework know if you want row selection at all, single or multiple rows.
    As you want to get the selected rows of a table you have to distinguish between singe and multiple selection, as they are handled in a different way. The default for single selection is to use the 'makeCurrent' selection listener from the bindings
    #{bindings.YOUR_TREE_BINDING.collectionModel.makeCurrent}To Set this in code you need to generate an MethodExpression out of it
    MethodExpression ex = JSFUtils.resloveMethod("#{bindings.EmployeesView1.collectionModel.makeCurrent}", Object.class, new Class[]
                                { SelectionEvent.class });
    table.setSelectionListener(ex);
        public static MethodExpression resloveMethod(String expression, Class returnType,
                                                     Class[] argTypes)
            FacesContext facesContext = cesContext.getCurrentInstance();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            MethodExpression methodExpression =
                elFactory.createMethodExpression(elContext, expression, returnType, argTypes);
            return methodExpression;
        }Timo

  • Issue while Creating the records in OAF by disabling one field.

    Hi Experts,
    I am having the scenario like this.
    From the OAF page I want to create the record by omitting one field(it is disable for OAF).
    Consider the folowing scenario..
    I am having the following fields Empno,Empname,Salary,Job in the OAF page where I made the Job field alone as disable and the style i am using for job field is message text input and i have set the initial value as 'Manger'.
    I am facing issue while creating the records in OAF page without the job filed value ie 'Manager' then the records were not inserted into my tables. Whereas if I enable the job field in OAF page(meaning I gave the job as 'Manager' in OAF page) I am able to create the records from OAF page and able get inserted in the database.
    Could Anyone can suggest where I fail as it is my Priority issue.
    Any Suggestion will be a great help for me.
    Thanks,
    Murugesh.

    or you can default it in the controller by handling add row event
    if(vo.hasNext())
    vorow = vo.next();
    vorow.setAttribute("xxxx",3838);
    --Prasanna                                                                                                                                                                                                                                                                                                                                   

  • Getting error while creating a table

    Hi there,
    I have created a user 'ram' and gave "create table" permissions for that user.
    After that, when I tried to create a table using the command
    create table countries as select * from hr.countries;
    where hr is another user and countries is the name of table in that schemagetting error message
    ERROR at line 1:
    ORA-00942: table or view does not existNOTE: The same error occurs even while creating a table in 'ram' schema after granting sysdba rights to 'ram'
    Thanks
    Rajiv

    Hi,
    dose the user ram has SELECT rights on the table hr.countries. Can he do SELECT in that table.
    Thanks

  • Issue while creating repair order via IW52

    Hi All,
             I am facing an issue while creating a repair order from Service Notification.
    In IW52 for service Notification , we have option of Create repair order in Action box of service notification, when i am clicking that i need to enter the sales order type.. when i am selecting standard order type KD01 or any other it is saying that
    1)Order type KD01 does not have the sales doc. identifier "repair"
    Message no. QM127
    Diagnosis
    You entered an order type that is not assigned to the sales document identifier "F" or "G" = repair order.
    Procedure
    Enter an order type that has the sales document identifier "F" or "G".
    Where can we see sales document identifier in config ?
    2. I would like know is there any setting where we can give default sales order type to service notification type ..
    regards
    giri

    Dear,
            Thanks for your inputs. It will be great help if you can let me know the below :
    1) Diff between Repair order, spare parts order..
    2)I happened to create a service order from a sales order following IDES Model for CS -4.6C / the service order type created is SM01 is created and my sales order type is OR .. now my question is there any setting where we assign Service order type to sales order type ???
    Note :- In OIOL Tcode for SM01 Order type i have IRC Sales order document type linked ..
    regards
    giri

  • Create ADF Table at runtime

    Hi,
    I am trying to create ADF table at run time. Initially I tried to include all the tables at design time. Then I turned the setVisible property to false. Then , based on the condition, I turned it to true at runTime, so that to give the effect of the table getting created at run time.
    But now, I would like to know , is there any option to extract the table component from the ViewObject or from the iterator, at run time.
    say,
    I have my ViewObject like this.
    DCIteratorBinding dcIter=(DCIteratorBinding)bindings.getControlBinding("Table1View1Iterator");
    ViewObject vo=dcIter.getViewObject();
    Now, I have a panel, 'pb1'. I am able to add input boxes at run time. Now I want to add the table that corresponds to the above View also at run time.
    Could someone pls give me the suggestion..
    Thanks,
    Sabarisri. N

    well, in that case you can create table dynamically from managed bean. I am giving you a sample code which add row dynamically to a table on click of "Add" button.
    jspx code:
    <af:document id="d1" title="XXXX">
          <af:form id="f1">
            <af:commandButton text="Add" id="cb1" action="#{MyBean.add}"/>
            <af:table varStatus="rowStat" summary="table"
                      value="#{MyBean.collectionModel}"
                      rows="#{MyBean.collectionModel.rowCount}"
                      rowSelection="none" contentDelivery="immediate" var="row"
                      rendered="true" id="t1">
              <af:forEach items="#{MyBean.columnNames}"
                          var="name">
                <af:column sortable="true" sortProperty="#{name}"
                           rowHeader="unstyled" headerText="#{name}"
                           inlineStyle="width:100px;" id="c1">
                  <af:activeOutputText value="#{row[name]}" id="aot1"/>
                </af:column>
              </af:forEach>
            </af:table>
          </af:form>
        </af:document>managed bean:
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    import org.apache.myfaces.trinidad.model.CollectionModel;
    import org.apache.myfaces.trinidad.model.SortableModel;
    public class MyBean {
        private SortableModel model;
        private List<String> columnNames;
        public MyBean() {
            System.out.println("Cntl in MyBean constructor :::");
            columnNames = new ArrayList<String>();
            columnNames.add("Col-1");
            columnNames.add("Col-2");
    //        generateColumnModel();
        public void generateColumnModel() {
            this.model = new SortableModel(createRows(columnNames));
        private static List<Map> createRows(List<String> columnNames) {
            int i = 0;
            List<Map> mapListforRows = new ArrayList<Map>();
            //for (String name : columnNames) {
                Map newRow = new HashMap();
                mapListforRows.add(newRow);
                for (String col : columnNames) {
                    newRow.put(col, "data");
            return mapListforRows;
        public String add() {
            System.out.println("Cntl in add method :::");
    //        columnNames = new ArrayList<String>();
    //        columnNames.add("Col-1");
    //        columnNames.add("Col-2");
            generateColumnModel();
            return null;
        public CollectionModel getCollectionModel() {
            return model;
        public void setColumnNames(List<String> columnNames) {
            this.columnNames = columnNames;
        public List<String> getColumnNames() {
            return columnNames;
    }I hope this will help you to solve your use case
    ~Abhijit

  • Not Able to create ADF Table In the Multiple model enviorment

    Hi All
    I am not able to create ADF Table or ADF Read-only Table
    I am having following thinks in my JWS Project
    2, Model Project(Different different name)
    2,faces-config.xml(Different different name)
    1 web Project (View Controller)
    and one Databinding.cpx file
    i am using following version of jdeveloper to develop application
    ADF Business Components     10.1.3.41.57
    BPEL Designer     10.1.3.3.0 (Build 070615.0525)
    Java(TM) Platform     1.5.0_06
    Oracle IDE     10.1.3.41.57
    Struts Modeler Version     10.1.3.41.57
    UML Modelers Version     10.1.3.41.57
    Versioning Support     10.1.3.41.57

    Are you dragging from the data control? what technologies did you use for the data controls?Ans:I am using data controll as ADF BC
    Are the two faces-config.xml files in your web project?
    Ans:Yes with one name with faces-config.xml and antoher with different name

  • I am receiveing error while creating Z table: Entry in table TAORA missing

    Hi Experts,
    I am receiving "Entry in table TAORA missing" while creating Z table.
    Please help
    Edited by: N_niki on Jun 11, 2011 9:22 AM

    Hi
    1) Check for the DB System. The Table name in  "Entry in table TAORA missing", meant to save the "DATA CLASS of the ORACLE application"., OR
    2) check for the Data Class you Selected, on Creation of the Z Table, for which an Entry exists in the TAORA or the Available DATA CLASS in the TAORA Table to fix it.
    Regards
    Gopu

  • Steps to follow while creating Database table in notes or paperwork

    what are the steps to follow while creating Database table in notes or paperwork
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    hi,
    1. Goto Transaction SE11.
    2. Enter the table name to be created. It should start with a Y or Z.
    3. Press Create
    4. Enter the Short description for the table
    5. Enter the Delivery class for the table. It can be 'A', 'C' or other.
    6. In the Fields tab, specify the table fields and the corresponding data elements or the built-in data types.
    7. If the table needs to be made a client-depenedent table, the first field should be MANDT.
    8. Goto Technical settings of the table and sepcify the Data Class and Size for the table. Also, there u can specify if buffering for the table should be allowed or not.
    9. Now, activate the table.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

  • Issues while creating a search project in BCC

    Hi There,
    Migrating the apps from 2007.3 to 10.0.3.Experiencing issues while creating a search project.
    Step #1.In Search Administration,navigating through Project > Global Settings & creating a Content Label named as "Catalog"
    Step #2.Navigating through Project > Create Production Project.Creating a project with Content Set as "CatalogSet"
    Step #3.Adding a Content with this info:
              Content Name: Catalog
              Type of Content : ATG Repository
              IndexingOutputConfig Path : /atg/commerce/search/ProductCatalogOutputConfig
              Host name : localhost
              RMI : 10160 ( RMI port of commerce instance)
         Creating a content & getting the message as New Content "CatalogTest" has been created.
         Issue #1: Content is not displaying in the Content eventhough content has been created successfully.
         Issue #2: Getting error for "Default Text Processing Options"
         You can refer these issues in the attached screenshot "Content-Page-with-error.jpg"
    Step #4.Creating a new TPO as "English" & trying to "Associate Search Project" & getting an error.Refer the attached error log "Associate-Search-Project.log"
    Due to these issues, "Build Index" button is disabled.Did anybody experienced these issues? Any help/comments are appreciated.
    Also attached the full server logs as commerce-server.log & publishing-server.log.
    Since no options for attachment in this forum, I posted the attachment in this link.Please refer it.
    https://groups.google.com/forum/?fromgroups#!topic/atg_tech/csEHi-x3Nyc
    Thanks in advance!
    Mani
    Edited by: user11263665 on Apr 25, 2012 10:38 PM

    We faced the same problem when migrating from 2007 to ATG 10.0.3. The reason this error comes up is because the Search depends on a local customization adapter /atg/searchadmin/adapter/customization/LocalCustomizationDataAdapter which adds English as a language in the text processing options.
    After the migration you need to import the initial ATG search related data into your Search schema. These instructions have been mentioned in the ATG install guide. Here is the extract from the docs.
    Note: The import scripts import data using startSQLRepository. Make sure your JTDataSource and
    FakeXADatasource are configured to permit this in home/localconfig. JTDataSource should automatically
    point to FakeXADataSource. FakeXADataSource should point to the administration database, and
    FaxeXADataSource_production should point to the production database. Note that some product
    installation processes, including Oracle ATG Web Knowledge Manager Self Service, need FakeXADataSource
    pointed at the production database, so you may need to change the FakeXADataSource between installations.
    once you are done with the configurations above, import only the searchadmindata xml into search schema as this imports the LocalCustomizationDataAdapter config information into your search schema. Once this is done, you should be good to index.
    <ATG10dir>\home\bin\startSQLRepository.bat|sh -m SearchAdmin.AdminUI
    -repository /atg/searchadmin/SearchAdminRepository -import
    <ATG10dir>\Search10.1\SearchAdmin\common\data\initial\searchadmindata.
    xml

  • Issue while creating a new web part page (Safeunit.aspx) within a folder located under a Document Library.

    Hi, I am facing an issue while creating a new web part page (Safeunit.aspx) within a folder (Safematic Seal Support Systems) located under a Document Library (Product Information Documents).
    The path I am explaining:
    Going to the Document Library (Product Information Documents) --> now inside that, clicking on a folder (Wet Seal Support
    Systems) --> now inside the folder clicking on another sub-folder (Safematic Seal Support Systems) --> Here I want the web page Safeunit.aspx
    Issue is that when I reach to the required destination, and want to create the web page by clicking on 'Site Action' --> 'Create' --> 'Web Part Page', now while selecting the Document Library name from the drop-down list, I do use 'Product
    Information Documents' since the folder is inside this library only; but that create the page directly under the 'Product Information Documents' library, not under the sub-folder (Safematic Seal
    Support Systems).
    FYI, it is SP2007 version.
    Kindly assist in this. Thanks in advance.

    I see that you have the namespaces reference in your code.
    I think you have changed the NameSpace name of your code to CreateSPFolder, change the reference in all your manifest, and other files to point to the current namespace name. It should help.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Issue while creating PO

    Hi Folks,
    I have an issue while creating a purchase order for some inventory items (not all items).
    System is populating a Note "**A new part number already exists**".
    Of course, it is not stopping to save and approve the PO, but still this note is interrupting the users a lot, when they are in rush to create no of PO's.
    So, could any expert help me in this issue that how to avoid this note, please?
    Thanks in advance.

    I bet you have a customization/personalization on the po screen that looks at the item, checks if it is obsolete/superceded and displays a message to the user.
    Hope this helps
    Sandeep Gandhi

  • WHAT ALL MESSAGE'S ISSUED WHILE CREATING PO

    Sir,
    ply let me know after saving the po i want to know what all messages were issued while creating the po.
    Like "warning" or "information" message
    where  can i see this
    regards
    amey

    Hi,
    PAth- Spro-MM-Purchasing-Environment Data-Define Attributes of System Messages...
    Here are few message type:
    Contract has different purchasing organization &     W
    Validity period of contract does not start until &     W
    Validity period of contract expired on &     W
    Target value of contract & exceeded by & &     W
    Net price for item & taken from conditions     W
    Purchase requisition & item & already deleted     W
    Scheduled quantity & & greater than target quantity & &     W
    Quantity smaller than invoiced quantity &     W
    Target quantity exceeded by  & &     W
    Not possible to determine a consumption account     W
    Release date lies in the past     W
    Base unit of measure & adopted from material master record
    Release date: next workday is &     W
    Contract target value & reached     W
    Please only use plants with company code &
    Order unit copied from material master record     W
    Hope it helps.
    Utsav..

Maybe you are looking for

  • Closing a connection in "finally {...}"

    Hello! I have a connection pool constantly growing in an OC4J in an Oracle 9iAS. My question is kind of "basic", but I need to find the "leak": In the Handler-classes I close the resultsets, statements and connections in a finally-block, but return-v

  • Unable to display the ClobDomain value in adf table

    Hi , I have a database table whose column is Clob. Accordingly the Entity Attribute and VO attribute are of type. oracle.jbo.domain.ClobDomain Now this VO is wired as a ADF Table in jsff page. I am setting the value programmatically inside the AM by

  • Advanced find - Case modified older than 4 hours

    Hi there, For CRM 2011 on premise I'd like to have an advanced find date option that says "Older that x hours" as i'd like to find cases that have not been modified for 4 hours.  (there already is an older than x months option). Or if there was a way

  • Report Painter - Display Report

    Dear Friends, While displaying/changing Z reports from GRR3 transaction, we are getting short dump. The dump does not occur for standard transactions. The error occuring is: The current application program detected a situation which really should not

  • Configuration steps to Trigger IDOC from R/3 to XI

    Hi All, I have read several forums , and i am in confusion to follow which one of them. Let me describe the process of configuration steps in r/3 and XI in step by step and correct me when i am wrong. Steps in R/3 1)  Goto SALE.    Basic settings->Lo