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.

Similar Messages

  • 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

  • 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.

  • Editable Datatable

    Hello,
    Has anyone ever tried to make an editable table using BC4J. And when I say editable I mean a view would be displayed in such a way that every row is comprised of editable fields. So basically it would end up being one big form in a table layout. Does anyone have a good suggestion on how to approach this problem?

    Has anyone ever tried to make an editable table using BC4J. And when I say editable I mean a view would be displayed in such a way that every row is comprised of editable fields. So basically it would end up being one big form in a table layout. Does anyone have a good suggestion on how to approach this problem? If you're using JClient/BC4J application, you can use JTable to display the whole rowset. You can setup the table so that it doesn't display lines, etc and set up your custom renderer for fields to make them look like textfields to give a big form kind of a look

  • 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?

  • How to create dynamic DataTable with dynamic header/column in JSF?

    Hello everyone,
    I am having problem of programmatically create multiple DataTables which have different number of column? In my JSF page, I should implement a navigation table and a data table. The navigation table displays the links of all tables in the database so that the data table will load the data when the user click any link in navigation table. I have gone through [BalusC's post|http://balusc.blogspot.com/2006/06/using-datatables.html#PopulateDynamicDatatable] and I found that the section "populate dynamic datatable" does show me some hints. In his code,
    // Iterate over columns.
            for (int i = 0; i < dynamicList.get(0).size(); i++) {
                // Create <h:column>.
                HtmlColumn column = new HtmlColumn();
                dynamicDataTable.getChildren().add(column);
                // Create <h:outputText value="dynamicHeaders"> for <f:facet name="header"> of column.
    HtmlOutputText header = new HtmlOutputText();
    header.setValue(dynamicHeaders[i]);
    column.setHeader(header);
    // Create <h:outputText value="#{dynamicItem[" + i + "]}"> for the body of column.
    HtmlOutputText output = new HtmlOutputText();
    output.setValueExpression("value",
    createValueExpression("#{dynamicItem[" + i + "]}", String.class));
    column.getChildren().add(output);
    public HtmlPanelGroup getDynamicDataTableGroup() {
    // This will be called once in the first RESTORE VIEW phase.
    if (dynamicDataTableGroup == null) {
    loadDynamicList(); // Preload dynamic list.
    populateDynamicDataTable(); // Populate editable datatable.
    return dynamicDataTableGroup;
    I suppose the Getter method is only called once when the JSF page is loaded for the first time. By calling this Getter, columns are dynamically added to the table. However in my particular case, the dynamic list is not known until the user choose to view a table. That means I can not call loadDynamicList() in the Getter method. Subsequently, I can not execute the for loop in method "populateDynamicDataTable()".
    So, how can I implement a real dynamic datatable with dynamic columns, or in other words, a dynamic table that can load data from different data tables (different number of columns) in the database at run-time?
    Many thanks for any help in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    flyeminent wrote:
    However in my particular case, the dynamic list is not known until the user choose to view a table. Then move the call from the getter to the bean's action method.

  • Editing large amounts of data

    Hi -
    I am helping to design a new application at my company. We're currently using JBoss 5 & JSF 1.2 and we happen to be using Richfaces 3.3.2. The application is to implement a web based solution to replace a very large spreadsheet that my users have been using to manage their work. The spreadsheet has a large number of columns, about 90. For better or worse, they have gotten used to working with their data in Excel, they love Excel and are all really good using it.
    I am trying to provide them with an efficient interface that allows them to quickly navigate through their data and view and update multiple rows & columns on one screen. I have too many columns to display on one screen. I can try to group them into tabs and create a series of editable datatables, but I think this seems like a klunky interface; they would need to navigate from page to page and from tab to tab - I think this will drive them crazy. I can also export their data to Excel, let them manipulate the data in Excel and import it back in. They would be able to quickly update their data, but this seems like a bit of a hack and a possible validation nightmare when I read the data back in.
    I've seen some ajax based spreadsheet type jsf components, but I don't have any experience with them.
    Has anyone had a similar situation with their JSF app? What was your approach? I'm basically trying to provide them with a JSF solution that's as close to Excel as possible. This may be impractical, I'm not sure.
    Any thoughts or feedback will be greatly appreciated. Thanks.

    Speaking out of experience: trying to move users that are used to one very specific system to a web interface is a big risk and possibly a dead end.
    I had the same problem when I had to create a replacement application for an old system built for Dos; the replacement was a web application with web forms and whatever - all very simple and it functioned. The end-users couldn't work with it however because they were used to moving between fields with the cursor keys and such; using the mouse and the tab key was too confusing (it didn't help that all these people were seniors...). I could get close with some insane javascript hacking, but the entire project was basically a big cash drain because the user interface was exactly the opposite of what the users were used to.
    Now my story takes place before Ajax was even known, so perhaps with some Ajax magic and prebuilt rich components you could hack something together that works for the users. But I see only one way to get there: mock ups. Don't start creating the full system until you have something mocked up that the users feel they can comfortably work with.
    I know I didn't answer your question directly because you still don't know WHAT to put in your first mock up, but I hope my previous experiences can guard you from some future troubles.

  • DataTable in PL27

    Hi all,
    I have a grid on which I display a set of data and grouping is applied there.Previously(Before installing this PL 27 patch),I was able to edit datatable cell values that is bind to this grid,without removing this grouping on this grid.But however after installation of PL27 , when I does this I get error msg that "Function not supported in current SBO version-Upgrade is required".When I try the editing with grd.collapselevel=0,it worked,after made grd.collapselevel=2.Why this happens? Is this a bug in PL27?This is a critical issue regarding my work.Anybody have any idea to solve or fix?
    Thanks,
    Deepesh

    Hi, i have the same problem, but i have other that i think is related.
    When i try to use GetDataTableRowIndex method o get a invalid value (i only have 6 rows e datatable but this function retuns me 8 ????).
    Do you have the same problem??
    Nelson Soares

  • Another problem about datatable

    Hi ,
    I found that default value of seletItem is not selected in dataTable.
    Here is a example:
    <h:dataTable value="#{users}" var="user1">
       <h:column>
            <h:selectOneListbox value="1"
               <f:selectItem itemValue="1" itemLabel="c1"/>
               <f:selectItem itemValue="2" itemLabel="c2"/>
               <f:selectItem itemValue="3" itemLabel="c3"/>
          </h:selectOneListbox>
      </h:column>
    </h:dataTable>
    The default value c1 should be selected, but it isn't .
    Could someone kindly tell me why and how should I do?
    Many thanks in advance.
    Michael

    try:
    <h:dataTable value="#{users}" var="user1">
       <h:column>
            <h:selectOneListbox value="c1"
               ><f:selectItem itemValue="1" itemLabel="c1"/>
               <f:selectItem itemValue="2" itemLabel="c2"/>
               <f:selectItem itemValue="3" itemLabel="c3"/>
          </h:selectOneListbox>
      </h:column>
    </h:dataTable>

  • Slava Gorshkov

    Hi,
    I am trying to update an Oracle table using dataTableModel. The table does not have any foreign keys. I can correctly display the table. I display it by pages, 10 rows per page. I display four read-only columns of the PK and two Varchar2 updatable columns. The "Update Database" button has the text I grabbed from the "Java Studio Creator Field Guide":
    try {
    dataTable1Model.commit();
    dataTable1Model.execute();
    info("Update Successful");
    } catch (SQLException e) {
    log("Safeguard Prod Bom Update: " + e);
    error("Safeguard Prod Bom Update: " + e);
    return null;
    When I press the button I get the following error:
    [Sun][Oracle JDBC Driver]Unable to determine the type of the specified object.
    Any help would be greatly appreciated!
    Thanks
    Slava

    Hi Slava,
    Does your datatable have any null values? If so that could cause problems... this is a known issue w/editable datatables. The next update should fix that particular problem.
    hth,
    v

  • In search of a 'special' number range of validator

    Hi,
    I am developing a JSF based web page with a text field that can hold numbers.
    I want to add number range to this text field so that user does not enter more than a allowed range of numbers.
    I am aware of multiple options JSF and its various flavors provide and below is the option I am considering -
    Add a validator which will be called upon typing the numbers and the validators returns with an error message shown on the UI.
    However, I was wondering if there was any validation any of the JSF flavors provide that can validate number range on typing and automatically truncate the number to the range provided.
    As an example, if the range is 0.0 to 99.00, as soon as the user types 100, the validation truncates the value to 10 by removing the leading 0. A error message would be even great but not mandatory. Similarly,upon typing 99.999, the leading 9 would be truncated making the value 99.99.
    The reason I am looking for such a feature is because I have a editable datatable with the date split into multiple pages with a richfaces scroller in between.
    I am using a doublerangevalidator facelet which does validation and shows error message alright. But I want the error message to persist even after going to the next page in the scroller, which is not happening right now.
    The idea is to have the user see all text fields that violate the number range as a comprehensive list of errors on the page.
    Since I am not able to achieve this using any of the validators provided by JSF RI or Richfaces, I am looking to atleast prevent the user from typing invalid data.
    Thanks for the help.

    anand_sridhar wrote:
    As an example, if the range is 0.0 to 99.00, as soon as the user types 100, the validation truncates the value to 10 by removing the leading 0. A error message would be even great but not mandatory. Similarly,upon typing 99.999, the leading 9 would be truncated making the value 99.99. Sounds like you need a converter instead of a validator. A validator is meant to validate the data, not to change the data.
    Have you looked in the converters corner anyway? Implementing one yourself isn't that hard.

  • Class cannot access its superinterface

    We're migrating an application from jDeveloper 9 to jDeveloper 10g (10.1.3.5), and have got almost everything working on the new server.
    However, one thing is not working: whenever a DataTable is set up with an edittarget (to edit a row in a new webpage, and where state is maintained via a cookie),
    I get an error message in the resulting webpage.
    Here is an example of such an editable DataTable:
    <jbo:DataTable datasource="dsPrisliste" edittarget="ApPristilbudView_Edit.jsp" /> The "intermediate" file, ApPristilbudView_Edit.jsp, essentially does the following:
    <%@ page language="java" import="oracle.jbo.html.*, oracle.jbo.http.*" errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252" %>
    <%@ taglib  uri="/webapp/DataTags.tld"  prefix="jbo" %>
    <html>
    <head>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    </head>
    <body>
    %>
    <jbo:ApplicationModule id="am" configname="myApp.bc.BcModSalgsRapp.BcModSalgsRappLocal" releasemode="Reserved" />
    <%
      session.setAttribute("ApPristilbud_am", am);
    %>
    <jbo:DataSource id="ds" appid="am" viewobject="ApPristilbudView" />
    <h4>Pristilbud</h4>
    <jbo:DataEdit datasource="ds" relativeUrlPath="DataEditApPristilbudComp.jsp" />
    <jbo:ReleasePageResources />
    </body>
    </html> which results in the error message:
    <font size="3">
    Error Message: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
    </font>
    <font size="3" color="blue">
    <tt>
    Pristilbud
    Application Error
    Error Message: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
    Ugyldig klasse: oracle.jbo.http.HttpSessionCookieImpl Laster: approd.web.aptest:0.0.0
    Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/applications/approd/aptest/WEB-INF/lib/bc4jhtml.jar Konfigurasjon: WEB-INF/lib/ directory in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\applications\approd\aptest\WEB-INF\lib
    Avhengig klasse: DataEditApPristilbudComp Laster: approd.web.aptest.jsp32124385:0.0.0 Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4Japprod/application-deployments/approd/aptest/persistence/_pages/
    Konfigurasjon: *.jsp in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\application-deployments\approd\aptest\persistence\_pages
    javax.servlet.jsp.JspTagException: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
         Ugyldig klasse: oracle.jbo.http.HttpSessionCookieImpl
         Laster: approd.web.aptest:0.0.0
         Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/applications/approd/aptest/WEB-INF/lib/bc4jhtml.jar
         Konfigurasjon: WEB-INF/lib/ directory in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\applications\approd\aptest\WEB-INF\lib
         Avhengig klasse: _DataEditApPristilbudComp
         Laster: approd.web.aptest.jsp32124385:0.0.0
         Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/application-deployments/approd/aptest/persistence/_pages/
         Konfigurasjon: *.jsp in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\application-deployments\approd\aptest\persistence\_pages
         at oracle.jbo.html.jsp.datatags.ComponentTag.doStartTag(ComponentTag.java:70)
         at ApPristilbudView_Edit._jspService(_ApPristilbudView__Edit.java:119)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    </tt></font>
    Unfortunately, parts of that is in Norwegian:
    Laster = Loading
    Ugyldig klasse = invalid class
    Avhengig klasse = invalid class
    Kodekilde: Code source
    What can I try, to fix this problem? Obviously, this is a run-time error (I get no warnings or errors during compilation), so perhaps something is incorrectly configured on the server container instance ("OC4J_approd")?
    I should also mention that this (i.e., editing data) works perfectly when I run the application on the local server (from within JDeveloper)...
    - j
    Edited by: joakim00 on Dec 7, 2012 1:04 AM

    We're migrating an application from jDeveloper 9 to jDeveloper 10g (10.1.3.5), and have got almost everything working on the new server.
    However, one thing is not working: whenever a DataTable is set up with an edittarget (to edit a row in a new webpage, and where state is maintained via a cookie),
    I get an error message in the resulting webpage.
    Here is an example of such an editable DataTable:
    <jbo:DataTable datasource="dsPrisliste" edittarget="ApPristilbudView_Edit.jsp" /> The "intermediate" file, ApPristilbudView_Edit.jsp, essentially does the following:
    <%@ page language="java" import="oracle.jbo.html.*, oracle.jbo.http.*" errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252" %>
    <%@ taglib  uri="/webapp/DataTags.tld"  prefix="jbo" %>
    <html>
    <head>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    </head>
    <body>
    %>
    <jbo:ApplicationModule id="am" configname="myApp.bc.BcModSalgsRapp.BcModSalgsRappLocal" releasemode="Reserved" />
    <%
      session.setAttribute("ApPristilbud_am", am);
    %>
    <jbo:DataSource id="ds" appid="am" viewobject="ApPristilbudView" />
    <h4>Pristilbud</h4>
    <jbo:DataEdit datasource="ds" relativeUrlPath="DataEditApPristilbudComp.jsp" />
    <jbo:ReleasePageResources />
    </body>
    </html> which results in the error message:
    <font size="3">
    Error Message: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
    </font>
    <font size="3" color="blue">
    <tt>
    Pristilbud
    Application Error
    Error Message: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
    Ugyldig klasse: oracle.jbo.http.HttpSessionCookieImpl Laster: approd.web.aptest:0.0.0
    Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/applications/approd/aptest/WEB-INF/lib/bc4jhtml.jar Konfigurasjon: WEB-INF/lib/ directory in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\applications\approd\aptest\WEB-INF\lib
    Avhengig klasse: DataEditApPristilbudComp Laster: approd.web.aptest.jsp32124385:0.0.0 Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4Japprod/application-deployments/approd/aptest/persistence/_pages/
    Konfigurasjon: *.jsp in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\application-deployments\approd\aptest\persistence\_pages
    javax.servlet.jsp.JspTagException: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
         Ugyldig klasse: oracle.jbo.http.HttpSessionCookieImpl
         Laster: approd.web.aptest:0.0.0
         Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/applications/approd/aptest/WEB-INF/lib/bc4jhtml.jar
         Konfigurasjon: WEB-INF/lib/ directory in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\applications\approd\aptest\WEB-INF\lib
         Avhengig klasse: _DataEditApPristilbudComp
         Laster: approd.web.aptest.jsp32124385:0.0.0
         Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/application-deployments/approd/aptest/persistence/_pages/
         Konfigurasjon: *.jsp in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\application-deployments\approd\aptest\persistence\_pages
         at oracle.jbo.html.jsp.datatags.ComponentTag.doStartTag(ComponentTag.java:70)
         at ApPristilbudView_Edit._jspService(_ApPristilbudView__Edit.java:119)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    </tt></font>
    Unfortunately, parts of that is in Norwegian:
    Laster = Loading
    Ugyldig klasse = invalid class
    Avhengig klasse = invalid class
    Kodekilde: Code source
    What can I try, to fix this problem? Obviously, this is a run-time error (I get no warnings or errors during compilation), so perhaps something is incorrectly configured on the server container instance ("OC4J_approd")?
    I should also mention that this (i.e., editing data) works perfectly when I run the application on the local server (from within JDeveloper)...
    - j
    Edited by: joakim00 on Dec 7, 2012 1:04 AM

  • Making creator apps container - independent

    Hi,
    I'm in the process of porting my app to run on Tomcat 5.5.9.
    I'm having a problem setting up the DataSource. I've read a few posts hinting that Creator generates the database code to use "Data Direct" driver classes and that these are not free. Does anybody know the truth behind this?
    Has anybody moved a database-heavy creator app to an appserver other than SunOne8?
    At the minute I cannot even find which .jar com.sun.sql.datasource.DriverAdapter lives in. Does anyone know?
    WHY IS THERE NO TUTORIAL ON PORTING CREATOR APPS TO OTHER CONTAINERS? (seeing as they don't run as-is).
    john

    Hi John,
    Sorry but I don't know wnything about the inet drivers- if they work, that would be fabulous - please do pass that info back on the forum. Yes I have heard the Data Direct drivers are expensive... people also talk about things they have found on http://sourceforge.net/index.php (like the jTDS drivers) but I don't recall anything oracle specific.
    A good test is to deploy an application with an editable datatable on it... this is the most complicated component that needs the metadata the most. Verify you can change the data in a row and commit it.
    Please be SURE to find out if the oracle 10G driver supports metadata (and parameter metadata, specifically).... my understanding last time I checked is that it does not...
    An additional complication with the standards is that the certification suite doesn't necessarily test everything in the spec.... so a vendor can "pass the certification" but still not fully implement to the spec.... I think this is the issue w/meta data. I asked if we could get this added into the spec's test suite, but apparently many vendors on the committee wouldn't support this (because of course that could mean additional work for them to pass the test....). So I guess what I'm saying is I think Oracle may pass the test and claim compliance but still not fully implement the spec - so please double check :(
    I understand your concern about using MySql if your standard is oracle - while I know we have tested the mysql solution and it works adequately with Creator , I do not know how it compares w/Oracle. You might want to ask around on that a bit... we don't get any kickbacks from them either ;)
    If you do decide to move to mysql, you will want to make sure your create table scripts etc use the same schema name and datatypes as in oracle to minimize the pain of switching... we should talk more about that if you choose that option. I think mysql might be case sensitive whereas oracle's default is not case sensitive... things like that can also come up.
    You do have one other option to add to your list.... use one of the servers which comes with the data direct licenses... although I'm not sure if that would be more difficult for you to sell than the mysql configuration.... but at least that would still be j2ee/oracle....
    hth,
    Val

  • Can h:dataTable be used for editable tables?

    I am trying to use a dataTable to manage an editable list of named "parts". I have declared a
    request-scope managed bean called "myForm" in faces-config.xml, and my dataTable declaration looks as follows:
    <h:dataTable value="#{myForm.parts}" var="part">
        <h:column>
          <f:facet name="header">
            <h:outputText value="Name"/>
          </f:facet>
          <h:inputText value="Header"/>
        </h:column>
        <h:column id="actionColumn">
          <f:facet name="header">
            <h:outputText value="Action"/>
          </f:facet>
          <h:commandButton id="delete" immediate="true"
                       action="#{myForm.deletePart}"
                        value="Delete"/>
        </h:column>
      </h:dataTable>
    [!code]
    The problem I am having is that when I click any of the Delete buttons in the table, something fairly early
    on in the JSF lifecycle decides that there is a problem with the submitted content, and simply redisplays
    the page without my "deletePart" method being called. I put some debug statements in my myForm bean,
    and I noticed that a new  myForm instance is constructed, but there is no call to its setParts method, to
    initialize the parts list within the newly-created instance with the content of the inputText boxes.
    I can't decide whether this just doesn't work, or whether I have missed something. Any help would be
    appreciated.

    Thanks for your quick reply, but unfortunately your suggestion did not fix my problem.
    I have been doing some hacking (which, sadly, is often the only way to fix problems in JSF) and what I have discovered is that if I add code to the MyForm constructor to initialize its "parts" member variable to an array of empty "part" objects, then everything works and the deletePart method is called on the MyForm instance as I would have expected.
    For example, I tried this hack:
    public class MyForm { 
      Part[] _parts; 
      public MyForm() {   
        _parts = new Part[1]; // kludge here, because there is only one item in the list for my test case   
        _parts[0] = new Part(); 
      public Part[]getParts() {   
        return _parts;
      public void setParts(Part[] parts) { 
        _parts = parts; 
    }I figure that either the JSF code is not finding the method it is expecting to create the array, or that funtionality is simply missing. I would like to figure out which is the case.
    Note that this hack requires me to figure out how many parts there were in the last list I displayed, which may be tricky.
    The interesting part is that the JSF code updates the empty parts with the content the user provides in the input boxes, but just doesn't seem to want to create the array itself.
    If I can't get top the bottom of this, I may need to switch over to the MyFaces JSF implementation, because at least then I could look at the source and figure out what is going on.
    Any further insights would be appreciated.

Maybe you are looking for

  • Stock still shown as schedule to be delivered

    Hi, Our business process would require consignment process. But for certain cases, the stock seems not delivered although PGI have been done. The D.O still prompted in MD04 and the stock is hold as scheduled to be delivery. Example: During Consignmen

  • LDB_PROCESS for PNP

    Hi all, I am trying to use LDB_PROCESS function module for logical database PNP but am not sucessful in it. I am pasting my code below: Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of co

  • DI installation on NW04S

    Dear Gurus, i have installed Central system on NW04S with components 1. Engine - AS ABAP and AS JAVA 2. PI(XI) 3. EP(PortalKMGuided Procedure-CAF+Visual Composer ) 4. BI(Business Intelligence) 5. BI Java Components Server is running fine. But i dont

  • When trying to authenticate my copy of Windows 7 I get an error code 0x80070005 before it even begins to save temporary files.

    I have a mid 2010 iMac and have already had the driver problem as in http://support.apple.com/kb/TS3173 when trying to install windows 7. Now, the authentication period has expired because everytime I try to upgrade it and authenticate it, it gives m

  • How to update a Column with specific Serial ?

    I have serial in the first table on primary key from 1 to 4 , and I want to repeat this serial in the foreign key in the second table . that what I want to appear in the foreign key , I want the repeating take place till the end of the last record in