Deprecated Method's Replacement in NW7.3

hi,
In version 7.3 of NW, following methods seem to be deprecated. Please suggest their replacements.
mappingOfOnAction().addParameter
wdComponentAPI.getWindowManager().createConfirmationWindow
com.sap.tc.webdynpro.services.session.api.IWDConfirmationDialog
wdComponentAPI.getMessageManager().reportMessage
wdComponentAPI.getMessageManager().reportException(
       e.getLocalizedMessage(), true);
WDWebResource.getWebResource
Thanks !
seventyros
[Learn SAP Online|http://learnsaponline.blogspot.com]

move your mouse over it. i think it will give some idea
or ctrl+click, check the api doc

Similar Messages

  • FInding the Replacements for deprecated methods

    I am new to using the Java environment, having been mostly a VB/VB .NET and web developer...so please forgive me if this is a dumb question:
    I inherited some java code that is an extension to a 3rd party app. It was originally written under JDK 1.2.2 (I think), and I am now trying to recompile under JDK 1.4.2, using the Borland JBuilder X IDE.
    Everything seems to be OK, except that I get two warning messages about deprecated methods:
    getFormComponent().setFormProperties()
    getFormComponent().getAllFormProperties()
    I probably should have checked more, but these names would appear to be standard java classes. What methods should I be using instead? And more importantly, how do I go about looking up the current methods?
    Thanks in advance.

    I was coming to that conclusion as well...unfortunately, the 3rd party SW vendor does not appear to have updated their supplied documentation - all of the code examples still use the deprecated methods, and their HTML help doesn't return anything when I search for the method names.
    Looks like a call to their technical support line...
    THANKS for the prompt reply.

  • Deprecated methods in 10.1.3

    Many methods in 10.1.3 are marked as deprecated.
    For example, class oracle.toplink.publicinterface.Descriptor is replaced by ClassDescriptor and RelationalDescriptor where getQueryManager() is deprecated with no replacement method.
    Another example, in oracle.toplink.sessions.Session interface, method containsObjectInIdentityMap is deprecated and no replacement is specified.
    I understand those deprecated methods will probably be removed in the future TopLink release. My question is: will TopLink provide the functions currently implemented in those methods, i.e. replacement methods?
    Thanks.
    Haiwei

    Haiwei,
    Yes the work done in 10.1.3 to add formal support for non-relational mapping (Object-XML and EIS/JCA) did require some refactoring of the descriptor class. In the end the previous Descriptor class was deprecated in place of a new ClassDescriptor hierarchy. This work is backwards compatible but some of the deprecated methods were not properly Java Doc'd with their new replacement.
    getQueryManager() -> getDescriptorQueryManager() - New method on ClassDescriptor
    All of the cache access methods have been refactored into a new IdentityMapAccessor class. This is available from any session using getIdentityMapAccessor().
    Doug

  • Removing deprecated methods from legacy source?

    What does one do about deprecated methods in legacy code?
    As new versions of the compiler seem to keep supporting the deprecated methods (just offering warnings), there is no reason to invest the resources to update the source? I don't mean methods such as:
    java.lang.Thread stop(),
    I am thinking of methods such as:
    java.awt.Window show();
    Will there ever be tangible consequences to not stopping using deprecated methods? Will code with deprecated methods eventually break?
    Edited by: dpxqb on May 7, 2010 9:50 PM

    There's often an "if it ain't broke, don't fix it" mentality around deprecated methods and classes. Whether that's appropriate or not depends on the individual case. Any deprecated method/class may be removed in any future release, but you have to balance the risk of that happening against the cost of replacing it. Some methods/classes will probably never go away--like Vector, for instance. So there's not much benefit to doing a search/replace on a large codebase.
    It depends on your analysis of the various risks and rewards in your particular situation.

  • Which method can replace parseQueryString()

    Hi,
    javax.servlet.http.HttpUtils.parseQueryString(java.lang.String s) which is used to parse a query string passed from the client to the server and builds a HashTable object with key-value pairs has already been deprecated. I got the warning when I compiled the code. What's the method can replace parseQueryString() which can provide me the same functionality ?
    many thanks.

    From the API Docs for HttpUtils
    Class HttpUtils
    java.lang.Object
    |
    +-javax.servlet.http.HttpUtils
    Deprecated. As of Java(tm) Servlet API 2.3. These methods were only useful with the default encoding and have been moved to the request interfaces.
    This means that you will need to use the HttpServletRequest interface methods.

  • After changing deprecated methods in Thread Class

    I have changed the deprecated methods suspend() and stop() with JDK1.2.2 methods wait() and thread = null respectively. I wanted to know the affects after changing when I actually run the application.

    For one thing, "thread = null" won't stop the thread. In fact it will have no effect on the thread at all.

  • Deprecated methods in Interfaces

    Hi all,
    I'm implementing an interface containing some deprecated methods. These deprecated methods have to be implemented, of course. If I compile my implementation I get deprecation warnings for these implemented methods. Does anyone know how I can get rid of these warnings? I've added @deprecated flags to my implementation of these methods, but that didn't solve these warnings. I'm using JDK 1.3.1.
    Thanks
    Daniel.

    Technically it's a feature. :p
    but seriously, the whole deprecated thing is a feature, it's too bad that in this case you have to live with it, but there's no way around it.
    besides it doesn't matter if you call a depreciated method as it is still going to work. It just means that some point in the future it will not be supported. And judgeing by sun's past actions, I would say that it's more of a way to encourage people not to use old methods, but I don't think that they will ever remove the depreciated methods from the api.
    The only methods you have to watch out for are the few like those the Thread which are just not implemented at all. Like thread.destroy()

  • How I make deprecated method in JB4

    Hi, i make deprecated method like this:
    * @deprecated
    public String fillCharsToLimit(String value, int limit, char chr, boolean fromFirst) {
    value = value.trim();
    if (value == null || (value.length() == 0 && limit <= 0))
    ;//do st
    (in project properties i enable Show deprecations)
    I except that compiler say me warning.
    Its ignore deprecation in my code, but when I use deprecated method from JDK all is OK, only my method no why?
    Thanks DK

    You don't get a deprecation warning if the deprecated class or method and the code that uses the deprecated class or method are compiled at the same time. See Bug 4216683 http://developer.java.sun.com/developer/bugParade/bugs/4216683.html for details.

  • File handling deprecated method - which one?

    I have this code, it should basically use the lines of text in a file and use them to construct nodes in a JTree. The compilation error is that the class uses a deprecated method - so does anybody know what method is the problem and what I should use?
    private void createNodes(DefaultMutableTreeNode top)
       DefaultMutableTreeNode anode = null; 
       File theFile = new File("categories.txt");
    try
    DataInputStream din1 = new DataInputStream(new FileInputStream(theFile));     
        //while (din1.available() !=0)
        while (true)
           String topic = din1.readLine().trim();
           //set the string as a tree node
           anode = new DefaultMutableTreeNode(topic);
           top.add(anode);
         din1.close();//close the file handle
         catch (Exception e)
              System.err.println("File input error");
    }//end of method

    If you compile with deprecation it will tell you specifically.
    I think it is:
    javac -deprecation ...
    The only method from below that I think it could be is readLine() in DataInputStream...
    If you are reading text...try:
    BufferedReader br = new BufferedReader(new FileReader(theFile));
    String topic;
    while ((topic=br.readLine())!=null)
        anode = new DefaultMutableTreeNode(topic);
        top.add(anode);
    br.close();

  • DocCheck comments on deprecated methods

    I am using the DocCheck utility to check the comments in my java packages, classes and methods. Methods that are deprecated have a @deprecated tag in the method comment, but DocCheck then complains about missing @params, etc. Is there any way that I can suppress the checking of deprecated methods?

    was just giving the way old doccheck tool a try - found it to be really useful
    and I ran into the problem mentioned here, I wished, doccheck wouldn't check deprecated methods ...
    so, what has happened to
    ericArmstrong wrote:
    I'll add it to the list of desired features, and give it
    a high priority.;-)
    Anyone still using doccheck? Are there any other tools, I mean, maybe doccheck will fail on some javadoc features introduced with Java 5 or 6 or ... 11 ;-)
    I like it! E.g., it gave me hints, to add @see in my getter and setter methods ... cool stuff!
    Merten

  • 1.4 deprecated methods

    Are there any methods that have been deprecated as of JDK 1.3 that have been removed in JDK 1.4 / 1.4.2? I can't find a list anywhere. Generally, do we need to worry about Sun completely removing deprecated methods?

    Woohoo! I wonder how long before the move to 1.5 happens.<thinks about how wonderful moving data structures
    consisting of 6 nested hashtables into generics will be/>
    *splort*
    Exactly! I've already thought about that. But, probably no worries--the contract has ended. What is supposed to be the last release is supposed to happen in a couple of days (once they fix a problem with a data file the subcontractor gave us). Our code to parse their text file (one time thing as part of a build) didn't have much error checking, so the error wasn't found until the testers tried to run something else. Then, the first person debugging it tried to find a latent bug in our code (spend a few days on it). They called me up today (I'm on another project now) to see if I could find anything, because the other guy was out for two days. As soon as I saw where the error occurred, I looked at the data files and quickly found that they were corrupted. Our code is still fragile, but if the data file is fixed, that should be sufficient (might as well keep this part fragile, especially if the contract is over--everything else in the code is fragile, too).

  • Deprecated Methods and NoClassDefFoundError

    Hi,
    I wonder if using deprecated methods in a Java program could cause java.lang.NoClassDefFoundError?
    I have a Java program with a few deprecated methods. The program worked well when I last ran it about half a year ago. But it shows java.lang.NoClassDefFoundError (Exception in thread "main"
    ) every time I try to run it recently.
    p/s: I use netBeans to run my program.

    Hi,
    I wonder if using deprecated methods in a Java
    program could cause java.lang.NoClassDefFoundError?
    I have a Java program with a few deprecated methods.
    The program worked well when I last ran it about half
    a year ago. But it shows
    java.lang.NoClassDefFoundError (Exception in thread
    "main"
    ) every time I try to run it recently.
    p/s: I use netBeans to run my program.Hi,
    No, the problems seems to be your classpath, and not the fact that you are using deprecated methods.
    Kaj

  • RE: deprecated method - replacement

    I am having a problem converting the -deprecated event handler.
    HELP <ME> PLEASE!
    Does anyone know the best way to convert the mouseDrag method so
    that it can still inherit values from the class.
    ::EXAMPLE BELOW::
    public class GRABandDRAG extends Applet
    implements Runnable {
    public boolean mouseDrag(Event event, int i, int j) {
    mouseX = i;
    mouseY = j;
    dragged = true;
    int k = (j - oldy) / dragPixels;
    int l = (i - oldx) / dragPixels;
    if(l != zoneW && W != 1) {
    panRight(l - zoneW);
    zoneW = l;
    return true;
    }

    Have your Applet class implement java.awt.event.MouseMotionListener and then add yourself to the MouseMotionEvents list via
    // in the applet Constructor
    this.addMouseMotionListener( this );
    Then in your mouseDragged function, use the code you've got. You'll have to get the x and y cordinates from the MouseEvent that is passed in instead of the x / y that would normally used via mouseDrag.

  • Deprecated methods

    The following method has been deprecated. Does anyone know what it is replaced with? Also, is there a list of what has been deprecated and what the replacement method is and how to implement the replacement method?
    •     Warning(1886,24): setSelectedItemToStringConverter(oracle.bali.inspector.editor.ToStringConverter) in oracle.bali.inspector.PropertyEditorFactory2 has been deprecated
    Thanks

    Hi,
    such documentation should be part of the JavaDoc unless the developer deprecating the method forgot to mention it. There is no other documentation than that to provide the information. The JavaDocs say:
    * @deprecated use {@link #setEditorComponentInfo(EditorComponentInfo)} instead.
    So its in the same class
    Frank
    ps.: Hope you know what you do because I am not sure bali classes are open for public consumption

  • Deprecated method in Environment class

    Weblogic recommends the following method calls to open a secure connection to a
    server, however the setSSLClientCertificateFromServer method has been removed
    since 4.5. What is the replacement, and if there is none, what is the work around?
    thanks,
    Bob
    Environment e = new Environment();
    e.setProviderUrl("t3s://server2.weblogic.com:443");
    e.setSSLClientCertificateFromServer();
    e.setSSLServerName("server2.weblogic.com");
    e.setSSLRootCAFingerprints("ac45e2d1ce492252acc27ee5c345ef26");
    e.setInitialContextFactory("weblogic.jndi.WLInitialContextFactory");
    Context ctx = new InitialContext(e.getProperties())

    Did you try whacking your subject into google? You should. The thrid result was:
    http://java.sun.com/j2se/1.5.0/docs/api/deprecated-list.html

Maybe you are looking for

  • Any roadmap to have to Lync client for Blackberry 10?

    ...with full feature support of course (phone, video, presence,...). I know there are still some challenges like at current time with BB10 OS (like you must keep you app in an active frame), but these limitations will soon go away with the new OS ver

  • Network connection timeout

    I recently installed the Iphone update 4 and lost all of my music because of it - it was not backed up. I need to try and get it back. So I right clicked on purchased and went to available downloads and then I got an error message saying "could not c

  • IPhone 3G randomly plays song list, can't stop it

    My iPhone 3G has recently stopped playing albums or playlists sequentially. It goes into a random shuffle mode, though there isn't any apparent icon that states it's in random mode. How do I stop this so I can listen an album straight through?

  • Mouse pointer jumps to corner of secondary screen

    We just upgraded to a new server running the latest Solaris with Sun VDI 3.1 which includes Sun Ray Server Software 4.2. I have multihead enabled and have 3 stations with dual-monitors/Sun Rays. On the second monitor, especially when dragging or scro

  • All I get is a grey screen with no drives when I hit option right after the chime.

    I installed windows 7 on my MacBook Pro through bootcamp. Each OS boots up fine if direct it from the bootcamp control panel... however, if I use the option button right after the chime, all that shows up is a grey screen. Info: I just installed wind