JDeveloper Toplink + JSF Editable datatable

Hi to all,
is it possible to make and aditable datatable (from database) using Toplink + JSF JSP pages?
is there a valid tutorial tha explain it?
Thanks to all
Emanuele

what part are you "not getting" exactly? How to react to a button press? How to save something in the database?

Similar Messages

  • JDeveloper, Toplink, and ADF advice.

    We have application that was completely developed JDeveloper 10.1.3/4 with Toplink, JSF, ADF, and Session Facade; extremely similar to the SRDemo.
    I am want to upgrade to JDeveloper 11g; however, the ADF Faces JSF will be migrated to Apache MyFaces Trinidad.
    1. Why would this be better than migrating to ADF Faces 11g? Pros and cons?
    2. Is Apache MyFaces Trinidad the future of Oracle's ADF?
    3. What would be the best approach for upgrade to Toplink and ADF 11g?
    Thank you.

    1. Why would this be better than migrating to ADF Faces 11g? Pros and cons?It won't be better than using ADF Faces 11g - it is just more feasible for automatic conversion - we can't do automatic conversion from ADF FAces 10.1.3 to ADF Faces 11g since the UI capabilities are so drastically different. We migrate to Trinidad to allow you to combine Trinidad and ADF Faces 11g in the same application. (You can't use ADF Faces 10.1.3 and 11g in the same application).
    2. Is Apache MyFaces Trinidad the future of Oracle's ADF?No. ADF Faces Rich Client is the present and future. Those are based on Trinidad.
    3. What would be the best approach for upgrade to Toplink and ADF 11g?The basic thing to do is open the application in JDeveloper 11g - things should work after the migration.
    Then you can start leveraging new capabilities such as the new ADF Faces 11g UI in new parts of the application.
    You might want to ask on the TopLink forum if they have any specific migration tips.

  • Editable datatable field validation when using datascroller pagination

    Hi,
    Im using tomahawk-1.1.8 and myfaces-api-1.2.6 I have an editable datatable with each rows having the following set of fields
    selectBooleanCheckBox , three selectOneMenus , three outputTexts, three inputTexts
    There will be close to 200 rows in the table so im using t:dataScroller to paginate the datatable.
    The following are my requirements
    1     All elements of the form except the selectBooleanCheckbox must be disabled on load of the page.
    2     On clicking on the boolean check box the corresponding rows must be enabled.
    3     I should be able to extract only the selected row in the bean side to perform some action and finally save it in the database.
    4     On submit of the page I should validate the following.
    a. at least one check box is selected
    b. Whether all the three intputTexts in the row have values and must also verify if they have valid values.
    c. Rows which are not selected (using check box) need not be considered for validation
    d. if any invalid data is found appropriate error message must be thrown and that particular element should be given the focus
    On seeing the requirement I felt it’s better to use Javascript to enable/disable controls and to validate data. Everything works fine if I have all the controls in a single page. But since I have server side pagenation enabled (using datascroller) I’m able to access only the current page form elements from javascript. In shot I’m able to access only the elements which are in the page from where I click on submit.But the user may change data in several pages and finally submit.
         This leads me to a situation where validation can be done using JSF only. I’m ok to do validations in JSF using a custom validator .But certain things like enabling or disabling controls on the form and the onLoad behavior can be coded using javascript only. This is because if I set the values such as disabled=”true” on the jsf inputText tag itself it is taking effect every time I move out and come back to the same page.
    I’m new to JSF . Can someone assist me in this. It’s pretty URGENT….
    Thanks,
    Swami

    Hi,
    Thanks for your quick response. I tried setting the disabled attribued based on you suggestion . But the enabling/disabling will not be immediate. I will have to go to some other page and come back to the first page to see the change in state.
    For eg:
    a. I defaulted the 'selected' attribute of bean to 'false' .So all rows loaded in disabled state as expected.
    b. Now if i check the check box other dependant fields will not be enabled immediately . I will have to move do different page and come back to current page for seeing the controls in enabled status.
    To overcome this problem i wrote some javascript function to set the selected rows elements' disabled property to false. I wrote something like the following for every element in the data row . After this the fields got enabled immediately on selecting check box
    document.getElementById("<form name>:<data table name>:"+rowIndex+":<element name1>").disabled=false;
    document.getElementById("<form name>:<data table name>:"+rowIndex+":<element nameN>").disabled=false;
    But now there is one more problem
    1. The page loads with all elements disabled.
    2. I click on the select box and javascript enables the controls on the row (in page 1)
    3. I change a value in a text box in the enabled row and move to page 2.
    4. Come back to page 1 and see the new value of text box not being retained.
    5. I change the value in the same text box again and move to page 2 .
    6. Come back to page 1 and see the new value getting retained.
    After some initial analysis i found that the the change in value of a form element (text box in this example) which is in disabled status will not be updated in the backing bean on page submit i.e the setter methods will not be called for these elements .Though i enabled it using javascript its actuallly still disabled accoring to the bean attributes.
    So in step 3 of the above example the setter methods are not getting called since the field is disabled according to bean. On the contrary , in step 5 the setter methods are getting called when moving to page 2 since the state is enabled according to bean.
    Problem  2
    I have a column containg two elements out of which one can be present based on the value of another selectOneBox in the same row.In the below example based on value of 'type' ,either 'station' or 'period' should be displayed.
    I have set display style as none in station assuming that zone should be displayed on page load.
    style="display:none" This is causing problem when i navigate accross pages. When i go to a different page and come back then the zone is getting displayed irrespective of the value of type. This is because the page is rendered again with the default values.
    <t:column>
    <f:facet name="header">
    <t:outputText value="type" />
    </f:facet>
    <h:selectOneMenu
    id="type"
    value="#{row.typeIndex}"
    onchange="fnHideControls('#{rowIndex}'); return false;"  disabled="#{!(row.selected)}">
    <f:selectItems
    value="#{bean.lstType}" />
    </h:selectOneMenu>
    </t:column>     
    <t:column>
    <f:facet name="header">
    <t:outputText value="Station/Period" />
    </f:facet>
    <h:selectOneMenu
    id="Station"
    value="#{row.stationIndex}"
    style="display:none" disabled="#{!(row.selected)}">
    <f:selectItems
    value="#{bean.lstStation}"  />
    </h:selectOneMenu>
    <h:selectOneMenu
    id="period"
    value="#{row.periodIndex}"
    disabled="#{!(row.selected)}" >
    <f:selectItems
    value="#{bean.lstPeriod}" />
    </h:selectOneMenu>
    </t:column>Can you help me out with both these problems.
    Thanks,
    Swami.

  • Editable Datatable within Datatable

    Hi,
    I am trying to implement a master detail edit screen, all on one page.
    What that means, is that I have an datatable (dt1) with 4 columns, 3 of which are text fields, the fourth is a dataTable (dt2).
    Both the dataFields are linked to ArrayLists.
    dataTable dt2 has two text fields.
    When I populate the page, everything works fine, and the data stored is displayed, the master as well as the detail rows are displayed. But when I try to make any changes to the text field in dt2, they are not saved back.
    Does the JSF framework prohibit an editable dataTable being within another datatable (in the of the columns of the outter dataTable)?
    Thanks for any help on this!
    Haroon

    Nope, no limitations. Make sure the subcomponents
    in dt2 (OutputTextN) are bound properly.
    Check the value property on each.
    If all looks good and still have problems, you can
    check the jsp source to see if the value binding
    expressions are correct.
    John
    JSC QA

  • SelectOneListbox in an editable dataTable

    Hello,
    I am trying to put a listBox in every row of an editable dataTable.
    I am doing the following:
    <h:form>
    <h:dataTable binding="#{myRequestBean.dataTable}" value="#{myRequestBean.dataList}" var="dataItem">
    <h:column>
    <f:facet name="header">
    <h:outputText value="ID" />
    </f:facet>
    <h:commandLink value="#{dataItem.id}" action="#{myRequestBean.editDataItem}" />
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Comp ID" />
    </f:facet>
    <h:selectOneListbox binding="#{myLists.listbox}"/>
    </h:column>
    </h:form>
    package mymodel;
    import javax.faces.component.html.HtmlSelectOneListbox;
    import java.util.Collection;
    import java.util.ArrayList;
    import javax.faces.model.SelectItem;
    import javax.faces.component.UISelectItems;
    public class MyLists
    private HtmlSelectOneListbox listbox;
    public HtmlSelectOneListbox getListbox() {
    listbox = new HtmlSelectOneListbox();
    Collection collection = new ArrayList();
    collection.add(new SelectItem("11"));
    collection.add(new SelectItem("22"));
    collection.add(new SelectItem("33"));
    UISelectItems listaMenu = new UISelectItems();
    listaMenu.setValue(collection);
    listbox.getChildren().add(listaMenu);
    return listbox;
    }I get the following exception: '#{myLists.listbox}' Target Unreachable, identifier 'myLists' resolved to null
    What am I doing wrong?
    Thank you

    danal wrote:
    > <h:selectOneListbox binding="#{myLists.listbox}"/>I get the following exception: '#{myLists.listbox}' Target Unreachable, identifier 'myLists' resolved to nullYou haven't declared any 'myLists' managed bean in faces-config.xml.

  • JSF, recalls datatable on POST

    Hi,
    Here is the test codes:
    This is my simple managed bean:
    public class Sample {
      public String getText() {
        System.out.println("this is text");
        return "this is text";
      public String[] getData() {
        System.out.println("this is data");
        return new String[] {
          "deneme1",
          "deneme2"
      public String SampleAction() {
        return "sample";
    This is web page:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>JSP Page</title>
      </head>
      <body>
        <h:dataTable var="d" border="1" value="#{sample.data}">
          <h:column>
            <h:outputText value="#{d}" />
          </h:column>
        </h:dataTable>
        <h:form>
          <h:outputText value="#{sample.text}" />
          <h:commandButton action="#{sample.SampleAction}" value="click" />
        </h:form>
      </body>
    </html>----------------------------------
    and this is faces config:
      <navigation-rule>
        <navigation-case>
          <from-outcome>sample</from-outcome>
          <to-view-id>sample.jsf</to-view-id>
        </navigation-case>
      </navigation-rule>
      <managed-bean>
        <managed-bean-name>sample</managed-bean-name>
        <managed-bean-class>Sample</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>----------------------------------
    When we call http://localhost:8080/index.jsf. The server output is:
    this is text
    this is data
    Another word JSF calls datatable #{sample.data} and #{sample.text}.this normal.
    But when we click the button. The Server output is:
    this is data
    is this a possible bug? How may i avoid of reloading datatable content.

    A Response from MyFaces List:
    hi,
    that's a given behaviour. generally spoken: you don't know how often a component invokes your getter methods. you will find a lot of possible solutions.
    e.g. there is a myfaces sub-project which provides a solution (the view-controller provided by orchestra [1]).
    (or you use javax.faces.event.PreRenderViewEvent of jsf 2.0)
    regards,
    gerhard
    [1] http://myfaces.apache.org/orchestra/myfaces-orchestra-core15/ViewControllerAnnotations.html
    Gerhard Petracek

  • Deploying jdeveloper's jsf toplink ejb application to jboss4.0.4

    hi java/j2ee developers,
    we developed a application using jdeveloper ide using jsf,toplink and ejb technologies, when we deploying this application to jboss4.0.4 application server we are getting the following exception
    org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: expected one local-home tag)
    at org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:749)
    at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:356)
    if anybody knows how to solv e this one, please give us the reply as soon as possible,Thanks In Advance.we are waiting for your kind information.Thank you once again.

    Basically I started to develop this system inside Oracle AS and then when it came time to passing a request to a new page, it crapped out on me on the App. Server. So instead of trying to fix the problem there and then I continued to develop outside Portal and inside Jdeveloper. After a week or two once all my stuff worked perfectly I try and take it back into Portal but only the first JSP of all my Portlets would show up, because as soon as I would submit a form and the action directed me to a new page and Portal would be lost/confused. Obviously I shouldn't have done it that way but none the less...
    So now I'm reading through the documentation you pointed me towards and it seems I have to qualify my parameters and then "attach" them to the url which the form will pass to the actioned page. I'm importing numerous classes (...urlUtils, etc) in order to qualify the parameters and then build this url without affecting any parameters currently present that my portlet does not own.
    What I'm rambling towards here is all this separation of logic and presentation and the whole nine, implies different people can develop different parts of a 'system' mostly independant of one another...so in my situation I shouldn't in huge trouble yet, since underlying everything is a working system. My issue is with oracle and the App Server. If I take my code which works great outside of the App. Server and I fully qualify parameters and make sure my form actions are constructed using the UrlUtils in order to fully qualify them as well, and then I make sure page parameters are mapped to the proper portlet parameter values....should my system work on the App Server (assuming everything is done properly)....or am I still missing something.

  • StackOverflowError when creating a new column in jdev TopLink JSF

    Hello everybody,
    Please if you know, share your knowledge about the below aspect from JSF Toplink.
    I created tables in db. Table is called DCF. In that table there are many columns, so many that by accident I forgot to put one. So I created Application in jdeveloper, then
    1)     I created projects Datamodel and UserInterface
    2)     In DataModel I created “java objects from tables”
    3)     Then I created session bean “PublicFacadeBean.java”
    4)     From that I created Data Control
    5)     Than I created DCF.jspx page and dragged all the info from Data Control to the jspx page.
    6)     Than I realized that I need one column which is not in DB, so I went to DB and created that column, and committed all the changes.
    7)     I went to jdeveloper again, in the Application Navigator in the DataModel project under realopt.oracle package I double clicked the DCF.java and created instance variable that I need, added set and get methods manually.
    8) then again i went to PublicFacadeBean.java and created again DataControl, I saw the column i need,
    Made compilation and no errors were found. But when running the page in the explorer, I got error :
    Fatal error: Cannot find class java/lang/StackOverflowError
    Process exited with exit code -1.
    I restarted the computer again, but still could not view the page. Do you have any idea how I can solve this problem?
    I’m very grateful in advance.

    Hi Satish,
    you can't add a column to a system matrix using UIAPI - the only way is to add a userdefined field
    And check this thread..
    New column in Standard Report
    Hope it helps,
    Vasu Natari.
    Edited by: vasu natari on Jul 22, 2009 7:38 AM

  • BUG JSF h:dataTable with JDBC ResultSet - only last column is updated

    I tried to create updatable h:dataTable tag with three h:inputText columns with JDBC ResultSet as data source. But what ever I did I have seceded to update only the last column in h:dataTable tag.
    My JSF page is:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1250"/>
    <title>Stevan</title>
    </head>
    <body><h:form>
    <p>
    <h:messages/>
    </p>
    <p>
    <h:dataTable value="#{tabela.people}" var = "record">
    <h:column>
    <f:facet name="header">
    <h:outputText value="PIN"/>
    </f:facet>
    <h:inputText value="#{record.PIN}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Surname"/>
    </f:facet>
    <h:inputText value="#{record.SURNAME}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:inputText value="#{record.NAME}"/>
    </h:column>
    </h:dataTable>
    </p>
    <h:commandButton value="Submit"/>
    </h:form></body>
    </html>
    </f:view>
    My java been is:
    package com.steva;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class tabela {
    private Connection conn;
    private ResultSet resultSet;
    public tabela() throws SQLException, ClassNotFoundException {
    Statement stmt;
    Class.forName("oracle.jdbc.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "hr", "hr");
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    resultSet = stmt.executeQuery("SELECT PIN, SURNAME, NAME FROM PERSON");
    public ResultSet getPeople() {
    return resultSet;
    I have instaled “Oracle Database 10g Express Edition Release 10.2.0.1.0” – product on my PC localy. I have enabled HR schema and I have instaled and pupulated with sample data folloving table:
    CREATE TABLE "PERSON"
    (     "PIN" VARCHAR2(20) NOT NULL ENABLE,
         "SURNAME" VARCHAR2(30),
         "NAME" VARCHAR2(30),
         CONSTRAINT "PERSON_PK" PRIMARY KEY ("PIN") ENABLE
    I have:
    Windows XP SP2
    Oracle JDeveloper Studio Edition Version 10.1.3.1.0.3894
    I am not shure why this works in that way, but I think that this is a BUG
    Thanks in advance.

    Hi,
    I am sorry because of formatting but while I am entering text looks fine but in preview it is all scrambled. I was looking on the Web for similar problems and I did not find anything similar. Its very simple sample and I could not believe that the problem is in SUN JSF library. I was thinking that problem is in some ResultSet parameter or in some specific Oracle implementation of JDBC thin driver. I did not try this sample on any other platform, database or programming tool. I am new in Java and JSF and I have some experience only with JDeveloper.
    Java been(session scope):
    package com.steva;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class tabela {
    private Connection conn;
    private ResultSet resultSet;
    public tabela() throws SQLException, ClassNotFoundException {
    Statement stmt;
    Class.forName("oracle.jdbc.OracleDriver");
    conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@localhost:1521:xe", "hr", "hr");
    stmt = conn.createStatement
    (ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    resultSet = stmt.executeQuery("SELECT PIN, SURNAME, NAME FROM PERSON");
    public ResultSet getZaposleni() {
    return resultSet;
    JSF Page:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1250"/>
    <title>Stevan</title>
    </head>
    <body><h:form>
    <p>
    <h:messages/>
    </p>
    <p>
    <h:dataTable value="#{tabela.zaposleni}" var = "record">
    <h:column>
    <f:facet name="header">
    <h:outputText value="PIN"/>
    </f:facet>
    <h:inputText value="#{record.PIN}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Surname"/>
    </f:facet>
    <h:inputText value="#{record.SURNAME}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:inputText value="#{record.NAME}"/>
    </h:column>
    </h:dataTable>
    </p>
    <h:commandButton value="Submit"/>
    </h:form></body>
    </html>
    </f:view>

  • Problems in JSF t:dataTable /t:dataTable

    hi
    i am using <t:dataTable> to create jsf table.In the datatable each column has one <h:commandLink>.i had action methods to each and every column.At the same Jsf page,i am having some textfields using <h:inputText>.
    My problem is when i click the datatable colume link,it goes to the same jsf page,but there is no textfields at the same page.i am not expected to same jsf page.i wants to navigate to some other jsf pages.i had one solution i.e,i used binding method for each and every Link.The problem was solved temporarly.eventhough i am having solution using binding method.it is not applicable for huge data as i have large data.so what should i do to have exact solution .At the same time,i don't need binding methods.
    Advance thanks
    rgds
    OasisDeserts

    Hi.
    J solve the problem partly and here is the problem and solution:
    Problem - JDeveloper 10.1.3 have problem in showing table when code look like this:
    <h:dataTable width="350" value="#{infoBean.popular}" var="popular_">
    <h:column>
    <f:facet name="header">
    <h:panelGroup>
    <h:commandLink action="POPULAR">
    <h:outputText value="Najpopularnije"/>
    </h:commandLink>
    </h:panelGroup>
    </f:facet>
    <h:commandLink>
    <h:outputText value="#{popular_}" converter="ProductTitle"/>
    </h:commandLink>
    </h:column>
    </h:dataTable>
    Solution - When J change code to this 'Design' tab shows the table but not the text in 'outputText'(here #{popular_}):
    <h:outputText value="#{popular_}">
    <f:converter converterId="ProductTitle"/>
    </h:outputText>
    Please try this!

  • How could I make a connection to XE using Jdeveloper and JSF?

    Hello, I want to develop an application that must interact with a Oracle Database Express Edition. How could I make a connection to it and display, for example, a table from the database in a JSP using JSF in Jdeveloper.

    Hi ,
    I have installed Jdeveloper 10.1.3.1.0 and Oracle database Express edition 10g on the same machine.I want to connect to the database from Jdeveloper but i get the message "The Network Adapter could not establish the connection" , when i test the connection. The listener is running and am able to connect to database using SQL Plus.
    I have tried various methods like giving the ipaddress and giving the URL, looking at the JDBC configuration wizard given in the documentation , but of no use .. can anyone please suggest me how to connect??

  • HOW TO USE STORED PROCEDURE IN JDEVELOPER - TOPLINK

    -- I really have problem try to do that!!!..
    I put the code of adf guide for toplink but have two errors:
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("CHECK_VALID_POSTAL_CODE");
    call.addNamedArgument("POSTAL_CODE");
    call.addNamedArgumentValue("L5J1H5");
    ValueReadQuery query = new ValueReadQuery();
    query.setCall(call);
    Number isValid = (Number) session.executeQuery(query);
    error:
    - call.addNamedArgumentValue("L5J1H5"); is not accepted
    - session.executeQuery(query); there is no session var defined
    Can someone tell me the correct form to call store procedure using a method for commandbutton??
    Message was edited by:
    user572789

    Hi Amol,
    Are you able to execute your stored procedure from oracle?.
    - If "Yes" then use  the Crystal Report XIR2 Designer to create the report.
    - Import this report in the Crystal Report For Eclipse Workbench.
    - The latest version for Crystal Report For Eclipse is SP1.
    Please let me know the results.
    Thanks,
    Neeraj

  • ADF Faces Application without using JDeveloper/TopLink/BC4J

    Hi,
    I want to make a small database driven application using ADF Faces Components without any hlp of JDeveloper, BC4J or Toplink.
    I could not see any document/ sample application which demonstrates creating J2EE application with ADF Faces by avoiding OC4J, JDeveloper IDE & TOPLINK.

    Hi, any luck trying to use adf faces in another IDE besides Jdeveloper?? Please let me know ;)
    thanx.
    T.

  • JDeveloper 11g Errors Editing BPEL Database Adapter

    I am encountering problems editing Database Adapters in a BPEL based Service Composite Application in JDeveloper. Specifically,
    * double-clicking an existing Database Adapter component to view/edit it generates an uncaught exception in the GUI
    * clicking Next through the wizard proceeds to the next step but the view showing the
    SQL select criteria and input parameters doesn't return the original values set when the
    adapter was first created -- a second NPE is logged at that time
    Here are the specifics of what's running:
    * host for JDeveloper is a Windows7 Home Premium 64-bit (version 61. build 7601 SP 1) PC with 8GB RAM
    * JDeveloper 11.1.1.5 (the SOA / WebCenter version)
    * the c:\OracleMW directory has JDK 6.0.24 installed
    * the Windows machine does have Java EE JDK 7 installed but JDeveloper uses the JDK inside c:\OracleMW
    * while running, JDeveloper is using around 274M of memory
    * database hosting the SOA meta data store and the desired DB of the adapter is 11g (11.2.0.1.0)
    * database is up, reachable and healthy while attempting to edit the Adapter component
    Here is the exact error encountered and the stack trace:
    GUI popup = An unexpected error has occurred in JDeveloper. The program may be unstable, which could result in data loss. Decide how you want to proceed and click OK.
    Details = Uncaught exception
    java.lang.NullPointerException
    o.tip.tools.ide.adapters.designtime.adapter.xr.util.SQLRefresher.run(SQLRefresher.java:118)
    j.lang.Thread.run(Thread.java:662)
    If you click on ignore / continue and proceed through the steps of the Wizard, when the Define Selection Criteria step appears, the original criteria and input parameters defined when the adapter was first built are not displayed and the "Feedback - Log" tab in the log windows registers another entry of:
    Previously reported error [NPE in o.tip.tools.ide.adapters.designtime.adapter.xr.util.SQLRefresher:118]
    Also, if you go through the motions of adding a new parameter variable in the top section of the dialog, after clicking OK, the dialog DOES suddenly display the original variables defined as input parameters.
    Thinking this is a symptom of JDeveloper trying to run in too little memory, I have attempted to increase the max memory setting of JDeveloper to 1024M by adding this line
    AddVMOption -Xmx1024M
    in
    c:\OracleMW\JDeveloper\jdev\bin\jdev.conf
    I've also tried adjusting that same setting in the config file for the IDE itself at
    c:\OracleMW\JDeveloper\ide\bin\ide.conf
    and get the same result. (Subsequent review of properties in About JDeveloper shows that JDeveloper uses the jdev.conf file, not the ide.conf file FWIW.) Memory really shouldn't be a problem because I'm still new to SOA style development and the "application" involved is a very simple "HelloSOA" type service that just sets a couple of BPEL variables, transforms some input variables into variables passed to this Database Adapter, does a few more Transform operations for the DB result values to the reply values and sends the reply.
    However, one other sign that memory utilization could be contributing to this is that periodically, switching to the "Source" view of the composite.xml file or the BPEL process file will lock the GUI up for about 35 seconds with nothing happening. An obvious sign of garbage collection gettng triggered.
    Any suggestions?

    Oracle has identified a fix added to newer versions of JDeveloper which corrected these NullPointerException errors encountered using the 11.1.1.5 version of JDeveloper. That fix had not be propagated back to the 11.1.1.5 version but subsequently HAS been ported back. The fix is associated with patch ID 12670305 which can be downloaded from http://support.oracle.com by searching for that bug ID then downloading the associated ZIP file. I've applied the patch to JDeveloper 11.1.1.5 running on Windows7, Vista 32-bit and LINUX 64-bit and it works like a champ on all three platforms.

  • Best way to create an editable datatable to interface with a db??

    What is the best way to do this in JSP? The table should have some cells that are editable text fields and some cells that allow the user to change a drop-down list. The table should have many rows (~200), be scalable, and ease of programming/code simplicity are needed to pass the code to novice programmers. Any good tutorials or methods would be great!
    Thanks!
    Edited by: shoreshocked on Jun 30, 2008 1:01 PM

    The table should have many rows (~200), be scalable, and ease of programming/code simplicity are needed to pass the code to novice programmersIt's definitely doable, but can get complex with the basic set of tools offered by plain JSP. JSF may be apt for your requirement. There are plenty of JSF implementations that may suit your editable table requirement.

Maybe you are looking for