Issue with Java Class based DataControls.

Hi,
I'm actually working with JDev 11.1.1.3.0.
And we got a requirement to build a search page which should create a dynamic query. And we are not using ADF BC in this project.
Instead, writing some ServiceDelegates(Java Classes) which internally calls EJB services to do CRUD operations.
Finally, created DataControls using these Service Delegates to design UI.
Now one thing is clear that .... we are using java class based service delegates.
*Issues
=======
1. I have a table with 4 columns, in which 2 columns are of type selectOneChoice.
2. Now, based on first selectOneChoice selection ... second selectOneChoice should display corresponding values. It is something like this. First select one choice contains all KEYS. Based on the KEY selection second select OneChoice should display VALUES corresponding to the KEY.
3. I have around 20 KEYS in the first selectOneChoice.
4. User can add rows to the table as many as they want.
5. For each row, the first selectOneChoice is same(contains same keys).
The issue is, For the first time(when user logs into the screen ....) the table will be displayed with one row which contains 2 selectOnechoices and 2 inputText boxes and a ADD button at the end of each row.
1. User selected a KEY from first selectOneChoice. Hence, second selectOneChoice populates values corressponding to KEY. And user clicked on ADD button.
2. Now the first row was like that only. And a new Row got added to the table.
3. In the second row ... Now user selected a different KEY in first selectOneChoice. And the second selctOneChoice displayed values corresponding to KEY selected.
4. This is also fine. But now, when user tried to click on ADD button to add THIRD ROW ... the table got added with a new row.
5. Here is the problem.... From here onwards, whenever any new row get added to the table ... the first row's second selectOneChoice values are setting with values of second row's secondSelectOneChoice.
6. Finally ... what i'm trying to do is, the second selectOneChoice should not get affected/refreshed because of adding a new row.
If it is not clear ... please share your email address. I can share the sample code with you.
This is an high priority task given to me.
Please let me know your comments ASAP.
Thanks & Regards,
Kiran Konjeti

You could try the following to see where the class was loaded from.
System.out.println(ResourcesAndRatesForm.class.getProtectionDomain().getCodeSource());

Similar Messages

  • Our software vendor tells to use FF 3.5.1. because of some printer issues with their web based program. How safe is it to work with FF 3.5.1 in 2012?

    Our software vendor tells to use FF 3.5.1. because of some printer issues with their web based program. How safe is it to work with FF 3.5.1 in 2012?

    Thanks for the reply. I'll have a look at your solution.

  • I am  having  issues  with java

    OK well I finally got  the java update to full load and it stated that it was corrupt or something like that and now I can not get into my favorite chat room it says I need to get java ..   when I go to the link to  re get a update to java it says I am updated.. so I called apple and they sent me a patch or something and it did not help .. anyone have any ideas what is happening?
    my old chatroom I think I remember someone talking about java issues there and how you had to have a old java  or something like that ..  can somehelp please!

    golam wrote:
    I am having issues with java encoding in Gentoo Linux environment. I am using java 1.6. When I ran the following test application to print french accent with encoding type, all I get is wrong character. Please provide me with some pointers. When I try this in Windows, it works perfectly. Many Thanks in advance
    //test.txt file contains the following string
    àäèéêëîïôùûüÿ
    ///TEST CODE to find which encoding to use
                              System.out.println("encoding:"+encoding[i]+"line===>"+inputLine);
    This is the problem.
    Don't assume the console character set can display these characters,
    use a swing component.
    This is also why it happens to work in on some boxes and not on others.
    ///////////////OUTPUT after running the test app
    java Test encoding:Big5line===>???????
    encoding:Big5-HKSCSline===>???????
    encoding:EUC-JPline===>???????
    encoding:EUC-KRline===>???????
    encoding:GB18030line===>???????
    encoding:GB2312line===>???????
    encoding:GBKline===>???????

  • Does Safari have issues with Java?

    When I log into my IG Index financial spread betting account safari usually quits unexpectedly immediately after the dealing screen has loaded. This is causing me huge frustration. The site relys a lot on Java. I believe there were issue with Java in Mac OS 10.3.9 that may still exist on 10.4.X
    Any ideas?

    Do you have the latest versions of Java installed?
    Have you enabled Java in Safari's preferences?

  • Issue with JAVA Mail API

    Hi
    We have a requirement to create a custom e mail. For the same I am trying to use Java Mail API.I am facing an issue with the following code:
    session session1 = session.getInstance(properties, null);
    System gives an error Sourced file: inline evaluation of: ``Properties props = new Properties(); session session1 = session.getInstance(prop . . . '' : Typed variable declaration : Class: session not found in namespace
    Is there some specific API i need to import for session class. Kindly suggest.
    Regards
    Shobha

    Hi Shobha,
    I was also facing the same issue from last couple of weeks and just now i have achieved the working functionality.
    Please find below working code and replace values as per your serveru2019s configuration.
    import com.sap.odp.api.util.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    import java.io.File;
    import java.net.*;
    // SUBSTITUTE YOUR EMAIL ADDRESSES HERE!!!
    String to =<email address>;
    String from =<email address>;
    // SUBSTITUTE YOUR ISP'S MAIL SERVER HERE!!!
    String host = <smtp host name>;
    String user = <smtp user name>;
    // Create properties, get Session
    // Properties props = new Properties();
    Properties props = System.getProperties();
    props.put("mail.transport.protocol", "smtp");
    props.put("mail.smtp.host", host);
    props.put("mail.debug", "false");
    props.put("mail.smtp.auth", "false");
    props.put("mail.user",user);
    props.put("mail.from",from);
    Session d_session = Session.getInstance(props,null);//Authenticator object need to be set
    Message msg = new MimeMessage(d_session);
    msg.setFrom(new InternetAddress(from));
    InternetAddress[] address = {new InternetAddress(to)};
    msg.setRecipients(Message.RecipientType.TO, address);
    msg.setSubject("Test E-Mail through Java");
    msg.setSentDate(new Date());
    msg.setText("This is a test of sending a " +
    "plain text e-mail through Java.\n" +
    "Here is line 2.");
    Transport.send(msg);
    Deepak!!!

  • Issue with java

    hi, since i updated to version 10 of ff i have been getting an issue with a chat site that uses java, not sure if its an issue just with this site, or if its java related since updating to 10, maybe its just good timing with the update.
    anyway the issue i am having is i can use the actual chat site fine, when i go to any of my other tabs though, i.e facebook.. i then cannot click into sections where i can click my mouse and type, say in a chat window on facebook or the url bar, they all freeze, the page is useable apart from not being able to type in any box.
    what i found was if i try to click in a text box on facebook, nothing shows yet if i tab back to the chat site thats using java, what i tried to type on facebook is in the chat box on the java site.
    not sure if i have explained that well enough, i hope i have.
    does anyone know if this is an issue with ff or the chat site using java?
    the site is: http://www.ukchatterbox.co.uk/

    I also have this issue on 5.3. It is very difficult to do even a basic level of profiler analysis. The tool is ok at finding big watermelons (CPU cost or memory allocations), but when you want to drill in and see any more detail, it becomes quite painful. Best case is that I would be able to "swim" through the profile data, moving easily from method-to-method, and see the recorded sample counts in a base (samples in this method itself) and cumulative (samples in this method and all called methods) fashion. The indentation in the tree view can be painful. I would suggest a more simplified view as an option,
    PARENT (callers) methods, full names and cumulative sample counts (percentages would be nice as well)
    SELF (called) method, full name and cumulative sample counts (percentages would be nice as well)
    CHILD (calles) methods, full names and cumulative sample counts (percentages would be nice as well)
    Clicking on any row in the above immediately makes that method become the SELF in the view.
    Also, I should be able to enter the class/method name into some text box above this view and easily get into the data for the method. With the current tool, there is no way to quickly go to the data for a specific known method.

  • Issue with GregorianCalendar class

    Hi I'm having issues with the GregorianCalender class. I am trying to enable daylight savings time but it doesn't seem to be working properly for. As a test I have taken the difference of time (in milliseconds) between a date where daylight savings causes a shift in time (April 4, 2004 for example). The two sample dates I have chosen are April 5, 2004 and April 4, 2004, ideally the time difference should be 23 hrs (since one hour is lost due to daylight savings) but I am getting 24hrs. I have a sample program in C++ which gives me the correct answer so I know the result am I getting here is wrong. Anybody have any suggestions?
    String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000);
         if (ids.length == 0)
         System.exit(0);
         // create a Pacific Standard Time time zone
         SimpleTimeZone pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids[0]);
         // set up rules for daylight savings time
         pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 60 * 60 * 1000, true);
         pdt.setEndRule(Calendar.OCTOBER, 31, Calendar.SUNDAY, 60 * 60 * 1000, false);
         pdt.setDSTSavings( 60*60*1000 );
         GregorianCalendar cal = new GregorianCalendar(2004, 4, 4);
         GregorianCalendar cal1 = new GregorianCalendar(2007, 4, 5);
         cal1.setTimeZone ( pdt );
         cal.setTimeZone( pdt );
    //This values is incorrect
         long diff = cal1.getTimeInMillis() - cal.getTimeInMillis();     
    //I have also tried the following
    String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000);
         if (ids.length == 0)
         System.exit(0);
         // create a Pacific Standard Time time zone
         SimpleTimeZone pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids[0]);
         // set up rules for daylight savings time
         pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 60 * 60 * 1000, true);
         pdt.setEndRule(Calendar.OCTOBER, 31, Calendar.SUNDAY, 60 * 60 * 1000, false);
         pdt.setDSTSavings( 60*60*1000 );
         GregorianCalendar cal = new GregorianCalendar(pdt);
         GregorianCalendar cal1 = new GregorianCalendar(pdt);
         cal1.set(2004, 4, 5 );
         cal.set( 2004, 4, 4 );
    //This values is incorrect
         long diff = cal1.getTimeInMillis() - cal.getTimeInMillis();     
    Thanks

    There may be any of several issues:
    Daylight savings time moves from year to year. Maybe last year, it was not on the same week number.
    Daylight savings time officially occurs at 2am. Java date's default to midnight if explicitly initialized. So, try calculating from after 2-3 am, depending on which way time was shifted.- Saish
    "My karma ran over your dogma." - Anon

  • XSLT Mapping with Java class not working in Integration Repository

    Hi,
    I have an XSLT mapping program with Java enhancement and I was able to successfully tested it in Stylus Studio. However, when I imported the Java class and the xslt program in Enterprise Service Builder and tested it, my program does not compile.
    Here is the error message: "Transformer Configuration Exception occurred when loading XSLT mapping_temp.xsl; details: Could not compile stylesheet".
    My java program is in a zip file containing SOAPHeaderHandler.java and SOAPHeaderhandler.class. My Java has a package com.nga.xslt.
    Here is the declaration of my Java class in the XSLT: xmlns:javamap="java:com.nga.xslt.SOAPHeaderHandler"
    It seems that it could not read the java class. Can you please advice what is wrong?

    Hi ,
    select XMLTOOLKIT option in Operation mapping and execute it.
    I am not sure we can call java program in XSLT Program,but alternative is copy the code and use it in XSLT mapping it self,that means your XSLT program will become with JAVA extensions.
    then in Operation mapping level select SAPXMLTOOL kit option and execute it. i hope it will work. if it is not working then you have deploy some JAXP files on server,because the way execution of XSLT Mpaping program got changed,like when eve you executing XSLT with extnasions( if you are not using XMLTOOL kit option) then you have to use latest version of JAXP.JDK files.
    Regards,
    Raj

  • Is there a way to create a Java class based on what's defined in a schema?

    I have a set of schemas that define what messages I will get as an XML stream (sent as UDP packets). Is there a way to parse the schemas into a set of java classes that match the fields in the schema? If so, next think would be to feed a string or byte array to instances of these objects and have a method that parses it and fills all the fields. But is the first part possible? Somebody linked http://www.cafeconleche.org/books/xmljava/chapters/ in another thread, but that seems to be for regular XML, not schema, unless I'm confused which is entirely possible, I'm new to XML and using it in Java in this way.

    For future reference, [Java API for XML Binding|http://www.dummies.com/WileyCDA/DummiesArticle/Building-Custom-Code-with-Java-API-for-XML-Binding-JAXB-.id-1489,subcat-BUILDING.html] (JAXB) allows for [generation of Java classes|http://www.oracle.com/technology/pub/articles/marx-jse6.html] from XML Schema (or even DTD) using its xjc compiler.

  • Accessing MS Sql Server with Java classes - problem connecting to socket

    I found an example at this location which uses java classes to connected to MS Sql Server.
    http://search400.techtarget.com/tip/1,289483,sid3_gci1065992,00.html
    --bummer - it is a login location - so I will include the article
    Anyway, the example is using Websphere, but I am still on Jbuilder (will get wsad soon). So I planted the classes from the example in
    C:\Borland\JBuilder\jkd1.4\jre\lib\ext\...the classes
    Then I copied the code from the example to my jpx project and got an error that it could not connect to the socket. The only thing I changed in the code was the connection string:
    --original string from example:
    Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://1433", "");
    I was getting an error with the 2 argument version of DriverManager - and the second argument here was empty (properties argument). Here was my connection string:
    Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://Myserver:1433;User=sa;Password=");
    I am only using the 1 argument version of DriverManager. Note that the password=" is blank because my RnD workstation is standalone - no one accesses the sql server except me - so no password. I also left out the last semicolon I noticed. Any suggestions appreciated how I could fix this.
    Thanks
    source of article:
    http://search400.techtarget.com/tip/1,289483,sid3_gci1065992,00.html
    iSeries 400 Tips:
    TIPS & NEWSLETTERS TOPICS SUBMIT A TIP HALL OF FAME
    Search for: in All Tips All search400 Full TargetSearch with Google
    PROGRAMMER
    Sample code: Accessing MS SQL Server database from the iSeries
    Eitan Rosenberg
    09 Mar 2005
    Rating: --- (out of 5)
    Nowadays with the help of Java the iSeries can be integrated with other databases quite easy. This tip shows you how. The code included here uses the free Microsoft driver that can be downloaded from here. (SQL Server 2000 Driver for JDBC Service Pack 3)
    If your SQL server does not include the Northwind Sample Database you can find it here.
    http://www.microsoft.com/downloads/details.aspx?familyid=07287b11-0502-461a-b138-2aa54bfdc03a&displaylang=en
    The download contains the following files:
    msbase.jar
    mssqlserver.jar
    msutil.jar
    Those files needs to be copied to the iSeries directories (/home/r_eitan/ExternalJARs).
    Here's the directory structure (on the iSeries) for this sample:
    /home/r_eitan/ExternalJARs - Microsoft files (msbase.jar,mssqlserver.jar,msutil.jar)
    /home/r_eitan/JdbcTest02 - My code (Main.java,Main.class)
    The Java code
    import java.sql.*;
    import java.io.*;
    class Main {
    * Connect to Microsoft SQL server and download file northWind.products as tab
    * seperated file. (products.txt)
    public static void main(String args[]) {
    try {
    PrintStream outPut = new PrintStream(new BufferedOutputStream(new FileOutputStream("products.txt")));
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    //Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://1433", "");
    Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://Myserver:1433;User=sa;Password=");
    System.out.println("Connection Done");
    connection.setCatalog("northWind");
    String sqlCmdString = "select * from products";
    Statement statement = connection.createStatement();
    ResultSet resultSet = statement.executeQuery(sqlCmdString);
    ResultSetMetaData resultSetMetaData = resultSet.getMetaData();
    int columnCount = resultSetMetaData.getColumnCount();
    // Iterate throught the rows in resultSet and
    // output the columns for each row.
    while (resultSet.next()) {
    for (int index = 1; index <=columnCount; ++index)
    String value;
    switch(resultSetMetaData.getColumnType(index))
    case 2 :
    case 3 :
    value = resultSet.getString(index);
    break;
    default :
    value = """ + resultSet.getString(index) + """;
    break;
    outPut.print(value + (index < columnCount ? "t" : ""));
    outPut.println();
    outPut.close();
    resultSet.close();
    connection.close();
    System.out.println("Done");
    catch (SQLException exception)
    exception.printStackTrace();
    catch (Exception exception)
    exception.printStackTrace();
    --------------------------------------------------------------------------------------------------

    My guess is that the server's host name isn't right. It necessarily (or even usually) the "windows name" of the computer. Try with the numeric IP address instead (type "ipconfig" to see it).
    First aid check list for "connection refused":
    - Check host name in connect string.
    - Check port number in connect string.
    - Try numeric IP address of server host in connect string, in case name server is hosed.
    - Are there any firewalls between client and server blocking the port.
    - Check that the db server is running.
    - Check that the db server is listening to the port. On the server, try: "telnet localhost the-port-number". Or "netstat -an", there should be a listening entry for the port.
    - Try "telnet serverhost the-port-number" from the client, to see if firewalls are blocking it.
    - If "telnet" fails: try it with the numeric ip address.
    - If "telnet" fails: does it fail immediately or after an obvious timeout? How long is the timeout?
    - Does the server respond to "ping serverhost" or "telnet serverhost" or "ssh serverhost"?

  • BC-XI V3.0 Message Mapping with Java Class

    Hi all
    In the Integretion Builder Design i try to import a Java Class in order to convert a source to a target field. I have created an tested the class with the eclipse V3.0.
    If i import the source in a customized mapping function i always get the error:
    "OFFMANNONLINESHOP_ORDER2SAP_ORDERS05_MSGMAP01 hat keinen Quellkode."    (...message..has no source code)
    I have also imported the import classes in the "Imported Archives".
    This message always appear if the import line for the classes is filled.
    Do somebody knows this problem
    Message was edited by: Christoph Borst
    Message was edited by: Christoph Borst
    Message was edited by: Christoph Borst

    Hi ,
    select XMLTOOLKIT option in Operation mapping and execute it.
    I am not sure we can call java program in XSLT Program,but alternative is copy the code and use it in XSLT mapping it self,that means your XSLT program will become with JAVA extensions.
    then in Operation mapping level select SAPXMLTOOL kit option and execute it. i hope it will work. if it is not working then you have deploy some JAXP files on server,because the way execution of XSLT Mpaping program got changed,like when eve you executing XSLT with extnasions( if you are not using XMLTOOL kit option) then you have to use latest version of JAXP.JDK files.
    Regards,
    Raj

  • Issue with Java date when different timezone involved

    Hi
    I am facing a problem with java util and SQL date due to different time zones,
    We have a applet which displays data as gant chart( microsoft project type)
    We have our server in NY (EST) which reads data from database (in EST) and sends this data to applet using applet-servlet communication (seralize object)
    This applet gets this date from servlet, does some calculation for pixcels and paints it, but now i am having problem with this calculation, since the date coming is from EST and calendar object in applet is from CST.
    How do i resolve this
    Ashish

    How are you passing the date or doing the calculation?
    I guess you're not using java.util.Date because then would have no problems. The Date class already accounts for different timezones; an instance represents a single moment of time which can be rendered differently depending on the time zone.

  • Issue with Java applet

    I am having issues with an "inactive plug-in" message in Safari when I want to do something using a Java plug-in.  I searched the communities and sure enough, when I opened Java preferences the box next to "enable applet plug-in and Web Start applications" the box was unchecked so I checked it.   Unfortunately, when I go back into preferences, the box is once again unchecked.  I did find out that I had a Trojan in the user.jar file associated with java but despite taking care of that issue (which for all I know is not related), this issue persists.  All of my software is up to date and from what I gather uninstalling and reinstalling Java is not an option and should not need to be fone.  I'd very much appreciate any input!

    Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.
    Back up all data now. Before proceeding, you must be sure you can restore your system to its present state
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    chmod -R -N ~
    The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:
    sudo !!
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    Next, boot from your recovery partition by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the recovery desktop appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens. You’re not going to reset the password.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • Problem running with "java class"

    Hi:
    I developed an application in Forte. It works as expected within the IDE. I would like to run it outside the IDE with "java application.class". When I try this, it cannot find many modules. I realize I need to set the classpath, but don't know what to set it to.
    Please help.
    vjktm

    r u using windows?
    if so
    try this
    open up the dos
    then type the following command
    set classpath = drive:\directory\.
    drive - your working drive
    directory - where you put ur java source and class files
    make sure you have the . at the end of the cammand.

  • Problem with java classes

    i have made some java files in java project but when i compile the files
    it gives me error " error 300 : classes are not found "
    <<should the classes be created automatically or i have to create them>>
    i will post more info if necessary

    Are you using an IDE? Are you just starting with Java? If so, it's generally recommended to not start with IDEs because you tend to miss learning about some basic fundamentals.
    As for obvious problems.... I'm not sure these aren't just cuz you posted them here wrong, but I'm not going to assume that...
    If the file is driver.java, the class name has to be driver, not Driver. It's case sensitive. The public class name (I say public cuz you can define multiple classes in one java file) has to have the same name as the java file. So that could cause problems.
    The other thing is what you set up in the CLASSPATH system variable. If you don't know what this is, you should go here:
    http://java.sun.com/docs/books/tutorial/
    and start reading from the begining.

Maybe you are looking for