JSP PageType does not work in JDev 10.1.3 or 10.1.3.1

Am attempting to create tags for use with JSP pages using the SimpleTagSupport class (am using JDev 10.1.3). Can create the desired class and it shows up in its tld file. However, when attempt to register the tag into the Component Pallet using the following directions, as per JDev Help,
Adding Pages and JSP Tags to the Component Palette
You can add pages to the Component Palette in JDeveloper to include the tags from a custom JSP tag library you created or one you have imported. You can create a new page for each tag library you want to include on the Palette; if the tag library is large, you may want to include several new pages on which to organize the additional tags.
Tip: Follow the steps in Registering a Custom Tag Library in JDeveloper to register the library if you do not want to add the library and tags to the Palette.
To add pages and JSP tags to the Component Palette:
1.     Choose Tools Configure Palette to open the Configure Component Palette dialog.
2.     Click Add under the Pages list to open the New Palette Page dialog.
3.     Enter a Page Name and select JSP as the Page Type, then click OK.
The only available Page Types are the following
css
java
oxd_usc
snippet
JSP is NOT an available option?
I am having the same issue with JDv 10.1.3.1. If I use JDev 10.1.2 - Adding Pages and JSP Tags to the Component Palette - there is no problem and the JSP Page Type does show up.
How does the one create a JSP tag in JDev 10.1.3 using SimpleTagSupport?????
Thanks - Ken

Steff - the tutorial was really quite helpful - for a variety of reasons.
However, even though it gave enough information to circumvent the JDev problem, it does not fix the problem of JDev in not being able to display JSP as a Page Type.
Would really like to find out how to use the JSP Page Type which seems to be broken? I do not like telling a customer - well JDev has a problem with specifying a JSP Page Type and even though the Help says you can do it - you really cann't.
Again - THANKS for the great reference - Casey

Similar Messages

  • Steve Muenchs file upload sample (No. 69) does not work with JDev 10.1.3.1

    Hi,
    I installed and started Steves sample about uploading and storing OrdImage types (http://otn.oracle.com/products/jdev/tips/muench/jsfordimage/JSFOrdImageExample.zip).
    When I try to upload a file I get an exception:
    java.io.EOFException: Per-request disk space limits exceeded.
         at oracle.adfinternal.view.faces.webapp.UploadedFileImpl.loadFile(UploadedFileImpl.java:187)
         at oracle.adfinternal.view.faces.webapp.UploadedFileProcessorImpl.processFile(UploadedFileProcessorImpl.java:96)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doUploadFile(AdfFacesFilterImpl.java:247)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:163)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:106)I have found other postings concerning uploading a file with JDev10.1.3.1 (af:inputFile bug JDev10131 production ignores Per-request disk space limit
    Is it a bug with JDev 10.1.3.1? Any workaround available?
    I'm using JDev 10.1.3.1 on WinXP.
    Thanks,
    Markus

    I managed to correct this problem.
    The situation is the following:
    A CRUD page (Example: userList.jsp and userForm.jsp).
    The first page there is a af:table with tableSelectOne and a Edit button. (theres also other components, like af:menuBar and af:form, html, body and head)
    On submit, the backing bean(requestScope) gets the selected object (table.getSelectedRowData()), copy the values to the form fields and send (redirect=false) to the form page.
    When i try to update, the fileupload does not work and ignores the valueChangeListener. All the other fields are updated correctly.
    The form page is used to do Inserts and the upload works correctly.
    The problem is, when you redirect (redirect=false) from userList.jsp (usesFileUpload="false")
    to the other page, that uses the upload, the form page does not get the enctype="multipart/form-data"
    To solve it, put usesUpload="true" in both page , and you will get enctype="multipart/form-data", and upload to work.
    Changing components, the af:menuBar has a similar problem.
    I got a menubar with 2 goMenuItem.
    On each page the corresponding goMenuItem has selected="true".
    On redirect, from list page to form page, the selected goMenuItem is the one on the ListaPage, and not the form page! It only changes if I click on the tab I want!

  • Jsp:include does not work in 8.1 SP3?

    Hi all,
              I need to include a local file (external to the app) in jsp code. The external file includes an image map which changes very so often. So in order to avoid doing a build everytime, I thought about keeping the image map in a file which can be "included" in the jsp file, making it very dynamic to a change.
              So I have a servlet which will read this file and output the contents to response.getWriter(), which will be included in calling jsp code.
              But the jsp file does not seem to call the servlet at all.
              Here is the code in the jsp file:
              <%
              String sFileUrl = "/Prj/RenderReport?file=OrgChart.html";
              %>
              <jsp:include page="<%=sFileUrl%>" />
              What am I doing wrong? Is this not possible at all?
              Thank you all in advance.

    hi pjoshi,
              <jsp:include page="hello.jsp" /> tag is working fine in weblogic 8.1 sp3.
              I think it might be syntax error in your jsp page.
              This is the syntax to including dynamic files in jsp using <jsp:include page="" />tag as given below.
              <jsp:include page="{relativeURL | <%= expression %>}" flush="true" />
              go through the below link and you will find exact information how to include dynamic files in jsp using <jsp:include page=""/>
              http://java.sun.com/products/jsp/syntax/1.1/syntaxref1112.html
              --Anilkumar kari                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How come the form in the JSP page does not work if user hits "ENTER"

    When I use the following code for loginpage.jsp
    If the user hits ENTER on the keyboard it just displays the same form with nothing in the username box.
    It works if the user clicks the button.
    <HTML>
    <BODY>
    <%
    String submit = request.getParameter("submit");
    if(submit == null){
    %>
    <FORM METHOD=POST ACTION=loginpage.jsp>
    Please enter your username: <INPUT TYPE=TEXT NAME=username SIZE=20>
    <INPUT TYPE=SUBMIT NAME=submit VALUE='Go!'>
    </FORM>
    <%
    else {
    String user = request.getParameter("username");
    if(user == null) {
    // display same page
    } else {
    // foward to next page
    %>
    </BODY>
    </HTML>

    I adjusted my code but it still does nto work when hitting the ENTER keyboard button.
    <HTML>
    <BODY onload="document.form1.left.focus();">
    <%
    String submit = request.getParameter("submit");
    if(submit == null){
    %>
    <FORM METHOD=POST ACTION=loginpage.jsp>
    Please enter your username: <INPUT TYPE=TEXT NAME=username SIZE=20>
    <INPUT TYPE="button" name="left" value="LEFT" onlick="alert(this.name)">
    <INPUT TYPE="button" NAME="right" VALUE="RIGHT" onclick="alert(this.name)">
    </FORM>
    <%
    else {
    String user = request.getParameter("username");
    if(user == null) {
    // display same page
    } else {
    // foward to next page
    %>
    </BODY>
    </HTML>
    If I do this
    <FORM METHOD=POST ACTION=nextpage.jsp>
    And use ENTER keyboard button it works, but not when I have ACTION to teh same page.
    Why is that?
    Is this JSP related or HTML? I thought JSP had something to do with it since it's JSP file.

  • Dvt:exportPivotTableData Does not work in JDev 12.1.2

    Hi All,
    I've been trying to get the export data from a Pivot Table to work using the dvt:exportPivotTableData tag. It does not. in my application I get a 404 error in a Google Chrome browser and an error dialog in IE10 when I press the button in the following source code snippet:
    [code]
    <af:button text="Export Pivot" id="b1">
         <dvt:exportPivotTableData filename="FeatureScores.xls" type="excelHTML"
              title="Feature Support Scores" exportedId="pt2"/>
    </af:button>
    <dvt:pivotTable id="pt2" value="#{bindings.ProductFeatureScoreROView1.pivotTableModel}"
                                                    var="cellData" varStatus="cellStatus" splitMode="enabled"
                                                    summary="#{viewcontrollerBundle.VENDOR_FEATURE_SCORES}" sizing="auto"
                                                    statusBarRendered="true" styleClass="AFStretchWidth">
    </dvt:pivotTable>
    [/code]
    I downloaded the ADF Rich Component WAR File (Version 12.1.1, or whatever the latest version is) and installed it in the JDev IDE to test the example sample. However, the dvt:exportPivotTableData doesn't work in the sample demo either. I don't get an error message from the sample, the page just refreshes and no data is exported.
    Any ideas?
    Best regards,
    Nigel

    Thank you, that solves the problem.
    Best regards,
    Nigel

  • JSP Code completion DOES NOT WORK in JDev 9.0.3.1

    Does anyone know when the next release of JDev will be? We are seriously considering dropping the use of JDev due to the bugs it has. In particular, the code completion for JSP authoring simply FAILS! This is a very very VERY nasty bug, and we are pleading!!!
    Thanks,
    -Sean

    Works for me.
    What OS/JDK etc are you using?

  • ClassSpy ESDK sample does not work in JDev 11g. Works fine in 10g.

    I downloaded and unzipped JDev 11g.
    downloaded the ESDK samples via check updates.
    Installed samples and deployed them.
    When I UI debug classSpy sample , selecting jdev/bin/jdev.conf as a default run target , I get the following error.
    java.lang.IllegalStateException: Unable to create an InitialContext.
    The complete log of the UI debug window is as below.
    D:\Official\JDEV11G\jdk\bin\javaw.exe -client -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=2174 -Dhttp.proxyHost=emeacache.uk.oracle.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=null -Dhttps.proxyHost=emeacache.uk.oracle.com -Dhttps.proxyPort=80 -Dhttps.nonProxyHosts=null -Xmx512M -Xverify:none -XX:JavaPriority10_To_OSPriority=10 -XX:JavaPriority9_To_OSPriority=9 -XX:MaxPermSize=160M -Xbootclasspath/p:../lib/lwawt.jar -Dide.config_pathname=D:\Official\JDEV11G\jdev\bin\jdev.conf -Djava.class.path=..\..\ide\lib\ide-boot.jar;D:\Official\JDEV11G\jdev\lib\jdev-remote.jar -Dlaunched.from.jdev=true oracle.jdevimpl.runner.uidebug.debuggee.Debuggee -silent oracle.ide.boot.Launcher
    Listening for transport dt_socket at address: 2174
    Debugger connected to local process.
    Processing 276 classes that have already been prepared...
    Finished processing prepared classes.
    Exception breakpoint occurred at line 145 of EventDispatchThread.java.
    java.lang.IllegalStateException: Unable to create an InitialContext.

    As this is a preview release, not all extension have been updated to support 11g.
    Regards,
    Ric

  • ClassSpy extension SDK sample does not work with JDev 11g

    I downloaded and unzipped JDev 11g.
    downloaded the ESDK samples via check updates.
    Installed samples and deployed them.
    When I UI debug classSpy sample , selecting jdev/bin/jdev.conf as a default run target , I get the following error.
    java.lang.IllegalStateException: Unable to create an InitialContext.
    The complete log of the UI debug window is as below.
    D:\Official\JDEV11G\jdk\bin\javaw.exe -client -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=2174 -Dhttp.proxyHost=emeacache.uk.oracle.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=null -Dhttps.proxyHost=emeacache.uk.oracle.com -Dhttps.proxyPort=80 -Dhttps.nonProxyHosts=null -Xmx512M -Xverify:none -XX:JavaPriority10_To_OSPriority=10 -XX:JavaPriority9_To_OSPriority=9 -XX:MaxPermSize=160M -Xbootclasspath/p:../lib/lwawt.jar -Dide.config_pathname=D:\Official\JDEV11G\jdev\bin\jdev.conf -Djava.class.path=..\..\ide\lib\ide-boot.jar;D:\Official\JDEV11G\jdev\lib\jdev-remote.jar -Dlaunched.from.jdev=true oracle.jdevimpl.runner.uidebug.debuggee.Debuggee -silent oracle.ide.boot.Launcher
    Listening for transport dt_socket at address: 2174
    Debugger connected to local process.
    Processing 276 classes that have already been prepared...
    Finished processing prepared classes.
    Exception breakpoint occurred at line 145 of EventDispatchThread.java.
    java.lang.IllegalStateException: Unable to create an InitialContext.

    You better try JDeveloper and OC4J 11g Technology Preview
    Timo

  • JCLoginDialog does not work correctly in JDev 10

    Have anyone got the JCLoginDialog to work with JDev 10g and JDBC?
    I have a JCLoginDialog generated by JDeveloper 10g, and have made the appropriate changes as described in the JDeveloper help. (Removing password and deployPassword entries in bc4j.xcfg and made the described changes in the getInfo method.)
    When I am starting the application, I am repeatedly getting prompted for username and password, although I enters the correct values).
    Below is some trace from my getInfo-method:
    Debugger connected to local process.
    getInfo --> user = xyz
    getInfo --> password = null
    getInfo <-- user = student
    getInfo <-- password = student
    getInfo --> user = xyz
    getInfo --> password = null
    getInfo <-- user = student
    getInfo <-- password = student
    getInfo --> user = student
    getInfo --> password = student
    getInfo <-- user = student
    getInfo <-- password = student
    getInfo --> user = xyz
    getInfo --> password = null
    getInfo <-- user = student
    getInfo <-- password = student
    student/student is the correct database username and password, and xyz is the value for username in bc4j.xcfg.
    Another interesting thing is that the runtime exception checked for in the beginning of the getInfo-method:
    RuntimeException exc = ((RuntimeException)((Hashtable)connEnvironment).get(DefaultConnectionStrategy.LAST_EXCEPTION));
    is always null, even if I tries to enter an incorrect password.
    I need a quick solution for this, since we must be able to use different database users in our application.
    Thanks in advance.

    Has anyone succeded in doing this?
    This is a very very basic functionality, and it does not work in JDev10g Production. Either it is a bug in ADF, or a bug in the documentation of how to implement this.
    Oracle Support, where are you? I have not got any answers for this, neither in this forum, nor in Metalink.

  • Why this does not works??? (I use jsp: include. to contain two jsp files)

    I have a main.jsp, and in this main.jsp, I have two part, leftButton.jsp and view.jsp, I want to include the leftButton.jsp and view.jsp to main.jsp.
    The code of main.jsp is like follows:
    <%@ page language="java" contentType="text/html" %>
    <html>
    <head>
    <title>JSP include element test</title>
    </head>
    <body>
    <table>
    <tr>
    <td><jsp: include page="leftButton.jsp" flush="true"></jsp: include></td>
                             <td>     <jsp: include page="view.jsp" flush="true"></jsp: include></td>
                        </tr>
         </table>
    </body>
    </html>
    Why the include does not works? by the way, I embeded a flash.swf file in view.jsp.

    Hi Mellon,
    You might be better off using a JSPF segment for leftButton.jsp & view.jsp and the <%@ include file="relativeURL" %>.
    Be careful that the included file does not contain <html>, </html>, <body>, or </body> tags. Because the entire content of the included file is added to the including JSP page, these tags would conflict with the same tags in the including JSP page, causing an error.
    Note: It is conventional to put JSP segements under the WEB-INF/jspf/ folder so the file cannot be accessed directly by a URL
    Note: JSPF files end with .jspf, so your files would be leftButton.jspf and view.jspf.

  • Af:inputRangeSlider is not working in JDEV 11.1.1.6.0

    Hi,
    af:inputRangeSlider is not working in JDEV 11.1.1.6.0
    tried dragging and droping it on to a test jspx page.
    page stays in loading mode forever and sometimes page loads,but i am not able to change values of af:inputRangeSlider.
    This seems to be a bug
    on doing inspect element in the browser, i am getting following error
    Uncaught ReferenceError: TrRangeValidator is not defined
    please help me on this
    Regards,
    Shakir

    Hi, just to clear things out, this issue occur in JSFF only, but in jspx, hot code is fine...
    Here is my sample code where the issue occurs.
    HelloWorldTaskFlow.xml
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="HelloWorldTaskFlow">
        <default-activity id="__1">viewHelloWorld</default-activity>
        <view id="viewHelloWorld">
          <page>/viewHelloWorld.jsff</page>
        </view>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>
    viewHelloWorld.jsff
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core">
      <af:panelBorderLayout id="pbl1">
        <f:facet name="start"/>
        <f:facet name="bottom"/>
        <f:facet name="end"/>
        <f:facet name="top"/>
        <af:panelBox text="PanelBox1" id="pb1">
          <f:facet name="toolbar"/>
          <af:outputText value="Hello World Nakurato!" id="ot1"
                         inlineStyle="font-size:x-large;"/>
        </af:panelBox>
      </af:panelBorderLayout>
    </jsp:root>
    TestPage.jspx
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:form id="f1">
            <af:region value="#{bindings.HelloWorldTaskFlow1.regionModel}" id="r1"/>
            <af:inputText value="Hello"/>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>Any change in the jsff file does not take effect immediately when refresh. but in jspx, it works.
    Any thoughts???

  • Logout does not work in OIM after enabling OAM SSO

    We have installed a webgate to protect xlWebApp in OIM. Once the SSO is enabled, the logout does not work in the OIM user interface. How to solve this issue?
    Metalink has a solution where we need to add document.location="http://host:port/access/oblix/lang/en-us/logout.html"; in xlWebApp\tiles\tjspLogoffTiles.jsp. This is the logout URL of OAM. Is there any other way so we can have a logout page in the OIM application/server itself?
    Thanks.

    Kevin,
    I did what you suggested and initially it looked like it is working but there is slight issue. When I click Logout, it redirects to the logout screen. After logging out when I try to access xlWebApp it prompts for the login (i am using basic authentication). If I cancel it and again try to access xlWebApp, it lets me in without any prompt. This issue is in IE only but not in Firefox. Not sure what's the issue.
    Btw, to make the logout screen work, I had to unprotect the following with None Authentication:
    - /xlWebApp/pages/logout.html      (logout page)
    - /xlWebApp/images
    - /xlWebApp/css/Xellerate.css
    - /xlWebApp/css/style.css
    Thanks.
    Edited by: user504421 on Mar 16, 2009 9:52 AM
    Edited by: user504421 on Mar 16, 2009 10:00 AM
    Edited by: user504421 on Mar 16, 2009 10:01 AM

  • Sprinboard screen does not work on android device

    Hi experts,
    I have a mobile application that i coded on JDEV 11.1.2.4. And i deploy via sdk android-4.3 version. I set DefaultSpringboard on adfmf-application.xml file.
    When i deploy on AndroVM or another Android VM either SDK Emulator, i can see springboard screen properly. But deploy on real devices (tried with Android 4.1.1 Tablet, Android 4.1.2 Sony experia phone, Android 2.3.5 HTC phone) could not see anything, just seen black screen with header(written as applicationName) AdfmfContainerUtilities.showNavigationBar(); does not work also.
    How can i resolve this?
    Also i tried to create completely new adf mobile application that contains only 2 feature and applied the scenerio, it fails on real device too. I think that the problem is on loading featureList. Because when i created an amx page and set as CustomSpringboard. It works
    Please help me..
    brgds
    I m adding my adfmf-application.xml file content, essentially i tried almost all different setting in it.
    <?xml version="1.0" encoding="UTF-8" ?>
    <adfmf:application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:adfmf="http://xmlns.oracle.com/adf/mf" name="MLMobilKatalog"
                       id="com.accmee.MLMobileCatalogue"
                       appControllerFolder="ApplicationController" listener-class="com.accmee.application.LifeCycleListenerImpl">
      <adfmf:featureReference id="com.accmee.Login" showOnSpringboard="false" showOnNavigationBar="false"/>
      <adfmf:featureReference id="com.accmee.productList"/>
      <adfmf:featureReference id="com.accmee.productDefinition"/>
      <adfmf:featureReference id="com.accmee.favourites"/>
      <adfmf:featureReference id="com.accmee.messages"/>
      <adfmf:featureReference id="com.accmee.categoryDef"/>
      <adfmf:featureReference id="com.accmee.exit"/>
      <adfmf:featureReference id="com.accmee.menu" showOnNavigationBar="false" showOnSpringboard="false"/>
      <adfmf:featureReference id="com.accmee.menuList" showOnNavigationBar="false" showOnSpringboard="false"/>
      <adfmf:preferences>
        <adfmf:preferenceGroup id="application">
        </adfmf:preferenceGroup>
      </adfmf:preferences>
      <adfmf:navigation>
        <adfmf:navigationBar enabled="false" displayHideShowNavigationBarControl="false"/>
        <adfmf:springboard enabled="true" showSpringboardAtStartup="false" displayGotoSpringboardControl="false" animation="none"/>
      </adfmf:navigation>
    </adfmf:application>

    Per the release notes, Wallaby only supports Chrome and Safari at this time.
    And yes, it only works with Adobe Flash Professional CS5 files. To use older Adobe Flash Professional files you can resave them in CS5 and then run them through Wallaby. This is a technology preview (not a product) and therefore has certain limitations that might not exist in a shipping product.
    You mention this doesn't work on an itouch G3. You mean an iPod touch G3, yes? What version of iOS do you have installed on your iPod touch? This may be related to incorrect serving of SVG content (if you are using apache) and so you may need to update your .htaccess file in apache per the Wallaby technical tips page.
    Michael O'Rourke
    Adobe Wallaby Team

  • Tecra M10-10z - 3G does not work after Win 7 installation

    Tecra M10-10z I have installed Windows 7 pro 64bit
    Everything is configured correctly, but connection 3G does not work: the message is " no network"
    with Windows XP is ok.
    I did not find firmware updates or similar.
    Is there someone who can help me?
    tks

    Hi
    In order to use the 3G you should firstly check if the 3G ericsson module was properly installed.
    In case there is an yellow exclamation mark visible in the device manager, the 3G driver should be reinstalled.
    I found on the Toshiba EU driver page:
    [Ericsson 3G Win 7 driver|http://www.toshiba.eu/innovation/download_driver_details.jsp?service=EU&selCategory =2&selFamily=5&selSeries=148&selProduct=813&selSho rtMod=null&language=13&selOS=30&selType=295&yearup load=&monthupload=&dayupload=&useDate=null&mode=al lMachines&search=&action=search&macId=&country=all &selectedLanguage=13&type=295&page=1&ID=71930&OSID =-1&driverLanguage=42]
    Furthermore ensure that the 3G RF Power Control Utility has been installed properly.
    The 3G RF Power Control Utility" activates your 3G on startup.
    This tool can be found here:
    [3G RF Power Control Utility for Win 7 64bit|http://www.toshiba.eu/innovation/download_driver_details.jsp?service=EU&selCategory =2&selFamily=5&selSeries=148&selProduct=813&selSho rtMod=null&language=13&selOS=30&selType=322&yearup load=&monthupload=&dayupload=&useDate=null&mode=al lMachines&search=&action=search&macId=&country=all &selectedLanguage=13&type=322&page=1&ID=73658&OSID =-1&driverLanguage=42]
    Hope the 3G network would functions after the reinstallation of both tools.

  • The edit JSP page does not appear...

    Hi!
    I make a simple JSF application, I would like to show a DB table in a h:dataTable component and edit a given row after click, but the edit JSP page does not appear. I click the on link in the table, but the list is loaded again and not the edit page...:(
    (no exception in application server console)
    Please help me!
    my code:
    **************************************** listmydata.jsp***************************
                   <h:dataTable
                             value="#{myBean.myDataList}"
                             var="myDataItem"
                             binding="#{myBean.myDataTable}"
                   >
                        <h:column>
                             <f:facet name="header">
                                  <h:outputText value="Ajdi"/>
                             </f:facet>
                             <h:commandLink action="#{myBean.editMyData}">
                                  <h:outputText value="#{myDataItem.id}"/>
                             </h:commandLink>
                        </h:column>
    ********************************* MyBean.java *******************************
    package bean;
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.component.html.HtmlDataTable;
    import javax.faces.context.FacesContext;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    import wrapper.MyData;
    public class MyBean {
         private List myDataList;
         private HtmlDataTable myDataTable;
         private MyData myDataItem;
         protected Connection Conn;
         // *********************** actions ***********************
         public String editMyData() {
              myDataItem = (MyData)getMyDataTable().getRowData();
              return "editmydata";
         public String saveMyData() {
              try {
                   updateDataInDB();
              catch (SQLException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              catch (NamingException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              return "listmydata";
         // *********************** setter ***********************
         public void setMyDataList(List myDataList) {
              this.myDataList = myDataList;
         public void setMyDataTable(HtmlDataTable myDataTable) {
              this.myDataTable = myDataTable;
         public void setMyDataItem(MyData myDataItem) {
              this.myDataItem = myDataItem;
         // *********************** getter ***********************
         public List getMyDataList() {
              if (myDataList == null || FacesContext.getCurrentInstance().getRenderResponse()) {
                   loadMyDataList();
              return myDataList;
         public HtmlDataTable getMyDataTable() {
              return myDataTable;
         public MyData getMyDataItem() {
              return myDataItem;
         // *********************** others ***********************
         public void loadMyDataList() {
              try {
                   getDataFromDB();
              catch (NamingException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              catch (SQLException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
         void getDataFromDB() throws NamingException, SQLException {
              myDataList = new ArrayList();
              java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement("SELECT id, name, value FROM BEA_JSF_SAMPLE");
              PreStat.execute();
              java.sql.ResultSet Rs = PreStat.getResultSet();
              while(Rs.next()) {
                   MyData OneRecord = new MyData();
                   OneRecord.setId(Rs.getLong(1));
                   OneRecord.setName(Rs.getString(2));
                   OneRecord.setValue(Rs.getString(3));
                   myDataList.add(OneRecord);
         void updateDataInDB() throws SQLException, NamingException {
              String sql = new String("UPDATE BEA_JSF_SAMPLE SET name=?,value=? WHERE id=?");
              java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement(sql);
              PreStat.setString(1,myDataItem.getName());
              PreStat.setString(2,myDataItem.getValue());
              PreStat.setLong(3,myDataItem.getId().longValue());
              PreStat.execute();
              ownGetConnection().commit();
         Connection ownGetConnection() throws SQLException, NamingException {
              if (Conn == null) {
                   InitialContext IniCtx = new InitialContext();
                   DataSource Ds = (DataSource)IniCtx.lookup("JDBCConnectToLocalhost_CRS");
                   Conn = Ds.getConnection();
              return Conn;
    ******************************* editmydata.jsp *****************************
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <html>
    <body>
    <f:view>
    <h:form>
         <h:panelGrid columns="2">
              <h:outputText value="Name"/>
              <h:inputText id="name" value="#{myBean.myDataItem.name}"/>
              <h:outputText value="Value"/>
              <h:inputText id="value" value="#{myBean.myDataItem.value}"/>
         </h:panelGrid>
         <h:commandButton action="#{myBean.saveMyData}" value="Save"/>
    </h:form>
    </f:view>
    </body>
    </html>

    I have put his lines in the faces-config.xml and now it works:
         <navigation-rule>
              <from-view-id>*</from-view-id>
              <navigation-case>
                   <from-outcome>editmydata</from-outcome>
                   <to-view-id>editmydata.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>*</from-view-id>
              <navigation-case>
                   <from-outcome>listmydata</from-outcome>
                   <to-view-id>listmydata.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    I don't understand, that I define the next JSP page in the bean java file, which must be shown, but I must define this in the faces-config.xml as well.
    for example:
         public String editMyData() {
              myDataItem = (MyData)getMyDataTable().getRowData();
              return "editmydata";
    is it right or Do I make a mistake somewhere?

Maybe you are looking for

  • MRS: PRT Tool Resource does not appear in Planning Board

    Hi Experts, I am trying to perform tool assignment but somehow the tool resource does not appear in the planning board.  I have the following set up: - Tool created as both material and Equipment (category P) - Equipment assigned to work center linke

  • Am I the ONLY one in the world with this problem!??

    before I downloaded twhirl, i upgraded to most current version of Adobe Air (1.5.1) from (1.5.0). It actually occcurred to me that i had never used adobe air before, eventhough i´ve had it installed for ages. i cannot run twhirl-0.9.air because the e

  • How do I bookmark to a specific page in a another document

    How do I bookmark to a specific page in another document

  • Compc ant task and external framework

    I'm writing an ant task to compile a couple of libraries into SWCs and then a shell app (that uses the libraries) into a SWF for deployment. If I compile the libraries by hand then run just the 'mxmlc' part of my ant script it compiles fine. However

  • Transfer data from MS Excel to Oracle table

    Hello, hope someone can help: What is the easiest way to transfer data from Excel sheet to a Oracle table and how ? An example of a row to transfer is given below Date Time Value 1 Value 2 2004-02-02     03:47:39     9,62     3,62      Thanks in adva