Am I right? could anyone give a better explanation?

i have in my faces-config.xml:
<managed-bean>
    <description>
      Cria    um Resgate
   </description>
    <managed-bean-name>exemplo</managed-bean-name>
    <managed-bean-class>pacote.Resgate</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>
  <managed-bean>So what i understood is :
I can access o object of Exemplo class through a bean with a :
exemplo() put in a method of a bean.Is it right?
and i can put a object bean exemplo as in a faces-config.xml with this piece of code, when i call this bean method:
context()
            .getExternalContext()
            .getSessionMap()
            .put("exemplo", object);are all this right ? can anyone give a better clarifying?
Thanks!!

Yes! The jsf managed beans facility stores the bean in the session map. However its better to use ValueBinding:
context.getApplication().createValueBinding("#{exemplo}");

Similar Messages

  • Suddenly all of my Office-programs have stopped working and will not launch on my MacBook. Could anyone give an amateur from Norway a hint of what may cause the problem? And I can not find the installation-disc for Office...Super! :)

    Suddenly all of my Office-programs have stopped working and will not launch on my MacBook. They were all already installed when I bought the computer. Could anyone give an amateur from Norway a hint of what may cause the problem? (And I can not find the installation-disc for the Office Programs...Super!)

    Have you contacted Microsoft support - http://www.microsoft.com/mac/support ? 

  • A java midi player for my JFrame - Could anyone give me a link

    Could anyone give me a link to a java.sun page about it, because i couldn't find one, otherwise, could someone make a small app that would play a midi.
    Thanks

    http://java.sun.com/javase/6/docs/api/javax/sound/midi/package-frame.html

  • Could anyone give me a list of all Macbook model and its fan capacity?

    Im using macbook pro 13' mid 2009 at the moment. Im getting sick of its one fan that make it getting hot easy. I am planning to buy a new macbook which has 2 fans and long battery span. Appreciate if anyone give me a list of all Macbook model that comes in with fans capacity. Full specification is accepted
    Thanks in advance.

    Look to the right of your post at the column, "More Like This." Other folks have had the same issues answered.

  • Could anyone give me some pointers for my macbook hardware upgrade path?

    I have a few questions concerning my Macbook Pro 5,1. Firstly, I'd like to purchase a solid state drive to replace my existing 7200 rpm disk, and I'm not sure what interface I should purchase. System profiler lists my SATA controller as a MCP79 AHCI, with a 3 Gigabit link speed. What SATA standard does this correspond to?
    Secondly, what is the maximum amount of RAM that my motherboard can work with? I've seen reports of 8gb and of 6gb, so I'm not sure what to think.
    Finally, I would like to purchase an Optibay cradle for my existing hard drive, so I could have two disks in my computer at once. Would Apple provide me with service if I request them to install it for me?

    MacBook Pros have a SATA interface and use 2.5" notebook drives. Your model can support up to 8 GBs of RAM: 204-pin PC3-8500 (1066 MHz) DDR3 SO-DIMM.
    Apple will not install third-party hardware. You can purchase a DIY kit complete with tools from OWC that allows you to install an SSD in place of the optical drive. They are also an excellent source for RAM and hard drives.

  • Could anyone give an validator example?

    <af:inputText label="name" validator="#{localTest.validateName}" id="message"/>
    <af:message for="message"/>
    <af:commandButton action="home" text="submit"/>
    public void validateName(FacesContext facesContext, UIComponent uIComponent,
    Object object) {
    // Add event code here...
    facesContext.addMessage("message", new FacesMessage(FacesMessage.SEVERITY_ERROR,"str1","str2"));
    what i want is if validation failed, action for commandButton submit should not be executed, but it does.
    so how to use validator properly? how did managed bean know whether validation succeed or failed, cause no boolean return from validation method.
    JDev: 11g
    Thanks.
    Kevin.

    Hi Kevin,
    You can use following code:
    public void validateName(FacesContext facesContext, UIComponent uIComponent, Object object) {
        // Add event code here...
        FacesMessage mess = new FacesMessage();
        mess.setSummary("Validation summary message");
        mess.setDetail("Validation detail message");
        mess.setSeverity(FacesMessage.SEVERITY_ERROR);
        throw new ValidatorException(mess);
    }Tomek

  • VISA -107380733​8 can anyone give me a better definition of what causes this error, other than the descriptio​n provided in LabVIEW help?

    I have been seeing a recurring instance of this error recently, that I am not completely understanding. Can anyone better explain what may be occurring when this type of error occurs.
    Feel feel to speculate, but I was hoping maybe a designer might chime in on this.

    Well, if I were the designer of the error code, I think I could probably give an idea of what kinds of circumstances might cause this error to occur, regardless of the application.
    However, if it helps, here is the problem. I have an ATE program that performs thermal cycling for a UUT using VISA calls to a GPIB controller which communication with 3 different instruments. The test itself runs fine for long periods of time, and then I start to see this error occur. However, the program appears to continue to run after I press 'OK' from the pop-up dialog ackowledging that the error has occurred. There appears to be no evidence of a memory leak that could possibly be contributing to the problem, or at least none that I have detected, and the error description itself is very vague. So basically what I am looking for is a better understanding of what MIGHT be causing this type of error. I would not expect a specific cause for my particular application, because as Bob was so kind to point out, I hadn't offered much information in my original post. What I was really looking for was a better understanding of the error itself, from a 30kft point of view.
    Thanks Bob_Schor for pointing out the deficiencies of my original question, it's posts like yours that make this discussion board a wonderful place to have a professional discussion. 

  • Did anyone ever do wedding invitations in pages if so could you give me some info on how to do this

    did anyone ever do wedding invitations in pages if so could you give me some info on how to do this

    Why did you pay for Pages 5? Nearly everyone gets it for free and if you have iWork '09 you can upgrade for free, all 3 apps.
    For the layout of a Wedding Invitation, either buy a set of templates from the Mac App Store or places like Jumsoft, or look for a Word template you like from the Internet and open that in Pages.
    A wedding invitation just consists of text and some graphics on a specified sheet of paper. Usually quality paper you can buy precut and which may be folded to purpose. Just position the text and the graphics where you want on the page, do a few test prints to see if you like it and everything is OK, then reproduce.
    If you want to merge names and addresses from either Contacts or a Numbers spreadsheet, I repeat you can not do this in Pages 5.
    You need Pages '09. You can buy iWork '09 which has Pages, Numbers and Keynote '09 in it for US$26.99 from Amazon.
    Or do it with LibreOffice [free].
    Peter

  • I already update my os to ios7 but the panorama wallpaper is not working, i try to use before the ios7 beta, the panorama is working. Why in this ios7 is not working. Could anyone help me????? Thanks

    I already update my os to ios7 but the panorama wallpaper is not working, i try to use before the ios7 beta, the panorama is working. Why in this ios7 is not working. Could anyone help me????? Thanks

    That's odd.
    Try this: Unplug your Time Capsule and your router. On your MBP, click the Wi-Fi icon and select "Open Network Preferences".
    Click the lock icon to authenticate, then click the "gear" and select "set service order". Wherever AirPort (or Wi-Fi - I forget what Snow Leopard calls it) appears, drag it elsewhere in the list. Click OK, then Apply, then power up your router and TC.
    If that doesn't result in any change, repeat the above but try making the service(s) you do not need "inactive".
    The purpose of this is to reset or at least change your Network Preferences, which somehow got confused upon upgrading to SL.

  • Can anyone give a good contact number for someone in the upper level of customer service

    can anyone give a good contact number for someone in the upper level of customer care i have talked to two of the worst people from customer service, the "supervisor" who was very appropriate did give me a address to mail a complaint which i will but being a disabled veteran of the Iraq war and a member of the wounded warrior project i get upset at certain people who show no respect for the average person and even worse of an attitude to those injured serving their country. I'm in no way saying I'm better its just that i expect a grain of respect as a person, a fellow American working everyday just to get by. my issue was not an impossible issue to resolve but i was told by one rep that it was not possible after my call being "dropped" i called back and talked to another. Luke from call center Washington state told me it was possible but that the phone i ordered two days prior (that rep failed to finish the order)was no longer available and i could pick a different phone not on back order.......i mentioned my confusion to the lack of service and being told two separate things. i asked why this was when i was not the one who made the mistake he told me it was not there fault and pushed the blame to me....he then called me dude and started to speak over me. when i asked to speak to a supervisor he asked why i told him i was no longer interested in talking to him he said why, i asked to be transferred again he kept refusing saying listen man I'm trying to help you what do you want. i asked to speak to his supervisor at least three more times he refused. i asked for his employee information so i could call back to report his rude behavior he refused to give me anything except at the end he finally told me his name.. there is more but my hand is tired is there anyone who can help me? if i find an answer as i will be posting this to many sites i will post it here.

        Hello hazzard0011, I want to first and foremost say we truly appreciate your hard work and dedication to our country. It is our commitment to provide a top notch customer experience. My apologies that this hasn't been the case in your recent interactions. We can definitely submit feedback to our upper leadership regarding the matter. Can you please send us a direct message so that we can further investigate? Also, please share details regarding the initial issue. Here's steps to send a direct message: http://vz.to/1b8XnPy
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • Can anyone give me an example for crm_svy_..._pai?

    Hi all, I have a survey, there are several questions. After I input the answers, I click the 'CHECK' button, I will check the answers. There will be different response to my answers. If the answer is not correct, I will post an error message.
    And I also need to retrieve data from tables to fill the blank.
    I am a beginner for CRM survey, can anyone help me? I create a FM:crm_svy_..._pai, and code in it right? But how can I do it?
    Can anyone give me an example for crm_svy_..._pai to do what I need?
    Many many thanks in advance!! 
    Heare is an example, but I don't its function and how does it work..
      read table lt_all_values into ls_value
                               with key answer_id = 'get_value'.
      if sy-subrc = 0.
        data: lt_values type crm_svy_api_string_t.
        append ls_value-value to lt_values.
        call method ir_survey_values->values_set
          exporting
            i_question_id = 'set_value'
            i_answer_id   = 'set_value'
            it_values     = lt_values.
      endif.

    Hi Yu,
    Could you tell how you solved your issue?
    Regards and tx in advance,
    Mon

  • Documenting process sequence - anyone got a better way?

    Hi
    I am using OWB v9.2.0.2.8
    I am trying to document my process flows and the sequence the various activities run in. Unfortunately I can't find anywhere where the sequence of the activities is stored.
    I have been trying to guess my way around the system tables/views but no luck. I got hopeful when I found ALL_IV_PROCESS_TRANSITIONS.TRANSITION_ORDER but all contain zero so it was no help.
    The best method I have found is to edit the activity descriptions in the process flow and insert a sequence number, then the following SQL will give me the listing I want:
    Select
    L.PROJECT_NAME ,
    A.PROCESS_NAME,
    A.ACTIVITY_NAME ,
    A.UPDATED_ON,
    A.ACTIVITY_TYPE ,
    A.BOUND_OBJECT_NAME ,
    A.DESCRIPTION
    from
    ALL_IV_PROCESS_ACTIVITIES A,
    ALL_IV_PROCESSES P,
    ALL_IV_PACKAGES K,
    ALL_IV_MODULES M,
    ALL_IV_LOCATIONS L
    WHERE A.PROCESS_ID = P.PROCESS_ID
    AND P.PACKAGE_ID = K.PACKAGE_ID
    AND K.SCHEMA_ID = M.SCHEMA_ID
    AND M.LOCATION_ID = L.LOCATION_ID
    ORDER BY L.PROJECT_NAME ,
    A.PROCESS_NAME ,
    A.DESCRIPTION,
    A.ACTIVITY_NAME
    Unfortunately this is a pain as I need to edit every activity in every workflow (to limit work in the future I have done the old BASIC trick of numbering each items in 10's)
    Has anyone got any better ideas on how to document these?
    (the standard GUI printout is a pain as it does not show the full activity name)
    Sandra

    Hi. To clarify my role is basically to set up this in a organization so If I fully had it my way I would stick with FCP Green Screen Tools. The reason Im using boris is because the user who will be editing on the machine really does not earn the title of "editor". So ive had to set them up with really easy, really fast ways to get this done.
    To sum it up they are used to using 'Visual Communicator"
    Go here to check it out----http://www.realnetworks.com/products/visualcommunicator/index.htm
    Thankyou for your helpful advice though. I will check the realtime settings.
    All of my sequence and capture setting look right though?
    DV NTSC 48kHz?
    DV NTSC 48kHz?
    I mean I know they are right I guess Do you think I can change them to a worse quality or something because utmitly it will end up on the web?
    Thankyou for you help.

  • Could anyone tell me what is the minium requirement to run a java program.

    I am new to java. Could anyone tell me what is the minium requirement to run a java program. Thanks in advance.

    Lara1983 wrote:
    Could anybody give me a direct answer? I think the minium requirement to run a java program is JVM and Java API. Is this right?What does Google tell you?
    BTW in order to get a direct answer, one must ask a direct unambiguous question. Are you asking for the minimum software or hardware requirements to run an application developed in Java or to develop an application in Java. What environment? Details are important and again Google is an interactive search engine, try it!
    Mel

  • HI, could anyone please tell me how you can delete more than 1 photo at a time or ipad or ipod touch?

    HI there, could anyone please tell me how you can delete more than 1 photo at a time on ipad and ipod touch??

    Delete multiple pictures at 1 go.
    1. Click the box with arrow on top right of Album.
    2. Select pictures to delete
    3. Tap Delete
    http://i1224.photobucket.com/albums/ee374/Diavonex/86e1a2c37a805bca2ccacc66c95ce 934.jpg

  • ReadString problem!! could anyone help me take a look

    hi... i am doing a music Cd list program. there are two operation i need to do 1) insertion and 2) deletion. i have implemented my own sortList to do it... i work fine when i do the insertion to the list but it can`t perform well on deletion.. However, i am sure that my list deletion algoritm is totally correct... i perform two test as following to ensure my deletion is correct..but i think the problem is on my readString fucntoon ...could anyone help me take a look!!
    public class SortedListTesting
         SortedList musicCdList = new SortedList();
         ReadOperation theRo = new ReadOperation();
         //ErrorCheckingOperation theEco = new ErrorCheckingOperation();
         MusicCd temp;
         public void insertCdWithReadStringFunction()
              String musicCdsTitle;
              //try to prompt the user `s cd `s title for insertion to our List
              musicCdsTitle = theRo.readString("Please enter your CD`s title : ");
              musicCdList.insert(new MusicCd(musicCdsTitle));
              System.out.println("Number of items in the list: "
                                         + musicCdList.getNumberOfItems() + "\n" + musicCdList.toString() );
         public void deleteCdWithReadStringFunction()
              try
                   //try to prompt the user `s delected cd `s title
                   String keyword = theRo.readString("Please enter CD `s title to be delected from SMOA : ") ;
                   // System.out.println("The CD that you just deleted is " + keyword);
                   temp = musicCdList.delete(keyword);
                   System.out.println("Number of items in the list: "
                                  + musicCdList.getNumberOfItems() + "\n" + temp );
              catch ( InvalidDataException errorMsg )
                   System.out.println( errorMsg.getMessage() + "\n" );
                   System.out.println("Now, We have " + musicCdList.getNumberOfItems() + " items in the list, and the items as following  :\n" + musicCdList.toString() );
         public void insertCd()
              String musicCdsTitle;
              //try to input the string directly to our list
              musicCdsTitle = "ann";//theRo.readString("Please enter your CD`s title : ");
              musicCdList.insert(new MusicCd(musicCdsTitle));
              System.out.println("Now, the number of items in the list: "
                               + musicCdList.getNumberOfItems() + "\n" + musicCdList.toString() );
         public void deleteCd()
                            try
                              //try to input the String directly
                              String keyword = "ann"; //theRo.readString("Please enter CD `s title to be delected from SMOA : ") ;
                              System.out.println("The CD that you just deleted is " + keyword);
                              temp = musicCdList.delete(keyword);
                                 //System.out.println("Number of items in the list: "
                                 //                     + musicCdList.getNumberOfItems() + "\n" + temp );
                         catch ( InvalidDataException errorMsg )
                              System.out.println( errorMsg.getMessage() + "\n" );
                        System.out.println("Now, We have " + musicCdList.getNumberOfItems() + " items in the list, and the items as following  :\n" + musicCdList.toString() );
         public static void main(String[] args)
              SortedListTesting st = new SortedListTesting();
              //These two testing i am trying to show that my list is working fine for inseting and deleting
              //i try to input the cd `s title name " ivan " by my readString function, it work fine for insertion
              //but it is fail in delete fuction..it shows that "ivan not found: cannot be deleted" ...At first,
              //i think it is my delete function problem..but it is not my delete function problem...cos it work fine if
              //input the string directly from the function...i think the issues works on my readString fucntion
              //i try a milllion of time but i still got the same problem ...pls help....
              System.out.println("\t...Testing for input from readString fuction...\t");
              st.insertCdWithReadStringFunction();
              st.deleteCdWithReadStringFunction();
              //it work fine for input the string directly in the function, it show as following...
              System.out.println("\t...Testing for input the string directly ...\t");
              st.insertCd();
              st.deleteCd();
    javac SortedListTesting.java
    Exit code: 0
    java SortedListTesting     ...Testing for input from readString fuction...     
    Please enter your CD`s title : ivan   <<-inserting the cd`s title to our list
    Number of items in the list: 1     <<- sucessfully insert to our list
    Title: ivan 
    Please enter CD `s title to be delected from SMOA : ivan  <<- try to delete from our list, i type "ivan" here
    ivan not found: cannot be deleted    <<- problem occur , it should be fine in there
    Now, We have 1 items in the list, and the items as following  :
    Title: ivan         <<- it should not be shown
         ...Testing for input the string directly ...     
    Now, the number of items in the list: 2
    Title: ann   <<- i pass "ann" String directly to insertion function
    Title: ivan   <<- it is the left over from the preivous process
    The CD that you just deleted is ann   <<- i pass " ann" String directly to my deletion
    Now, We have 1 items in the list, and the items as following  : <<- it successfully delete .... it prove that my deletion function is working properly....i think it is on readString problem..
    Title: ivan
    Exit code: 0*/
    //it seems that the readString function read the string
    //at the first time does not match the second time
    //reading, it makes it can`t find the stuff from the list ..
    import java.util.*;
    public class ReadOperation{
         //pls help check here....thx
         public String readString(String userInstruction)
              String aString = null;
              try
                         Scanner scan = new Scanner(System.in);
                   System.out.print(userInstruction);
                   aString = scan.nextLine();
              catch (NoSuchElementException e)
                   //if no line was found
                   System.out.println("\nNoSuchElementException error occurred (no line was found) " + e);
              catch (IllegalStateException e)
                   // if this scanner is closed
                   System.out.println("\nIllegalStateException error occurred (scanner is closed)" + e);
              return aString;
         public char readTheFirstChar(String userInstruction)
              char aChar = ' ';
              String strSelection = null;
              try
                   //char charSelection;
                         Scanner scan = new Scanner(System.in);
                   System.out.print(userInstruction);
                   strSelection = scan.next();
                   aChar =  strSelection.charAt(0);
              catch (NoSuchElementException e)
                   //if no line was found
                   System.out.println("\nNoSuchElementException error occurred (no line was found) " + e);
              catch (IllegalStateException e)
                   // if this scanner is closed
                   System.out.println("\nIllegalStateException error occurred (scanner is closed)" + e);
              return aChar;
         public int readInt(String userInstruction) {
              int aInt = 0;
              try {
                   Scanner scan = new Scanner(System.in);
                   System.out.print(userInstruction);
                   aInt = scan.nextInt();
              } catch (InputMismatchException e) {
                   System.out.println("\nInputMismatchException error occurred (the next token does not match the Integer regular expression, or is out of range) " + e);
              } catch (NoSuchElementException e) {
                   System.out.println("\nNoSuchElementException error occurred (input is exhausted)" + e);
              } catch (IllegalStateException e) {
                   System.out.println("\nIllegalStateException error occurred (scanner is closed)" + e);
              return aInt;
    public class SortedList extends ShellSortedList implements SortedListInterface<MusicCd>
         public SortedList()
              super();
         public void insert( MusicCd aCd )
              MusicCdNode cdNode = new MusicCdNode( aCd );
              cdNode.setNext( head );
              head = cdNode;
              numberOfItems++;
         public MusicCd delete(String aCdsTitle)
                                                throws InvalidDataException
              MusicCdNode current = head;
              MusicCdNode previous = null;
              while( current != null
                    && current.getMusicCd().getCdTitle() != aCdsTitle)
                   previous = current;
                   current = current.getNext();
              if (current == null ) //not found
                   throw new InvalidDataException(aCdsTitle
                                 + " not found: cannot be deleted" );
              else
                   if( current == head )
                        head = head.getNext(); //delete head
                   else
                        previous.setNext( current.getNext() );
                   numberOfItems--;
                   return current.getMusicCd();
         public MusicCd modify(String anExistedCdsTitle, String aModifyCdsTitle)
                                   throws InvalidDataException
              MusicCdNode current = head;
              while( current != null
                    && current.getMusicCd().getCdTitle() !=  anExistedCdsTitle)
                   current = current.getNext();
              if ( current == null )
                   throw new InvalidDataException( anExistedCdsTitle
                                 + " not found: cannot be deleted" );
              else
                   MusicCd tempCd = new MusicCd();
                   tempCd.setCdTitle(aModifyCdsTitle);
                   current.setMusicCd(tempCd);
                   return current.getMusicCd();
    }//for better understand of my program
    public interface SortedListInterface<T>
         //public SortedList();
         public void insert( T anElement );
         public T delete(String searchKey)
                                         throws InvalidDataException;
         public T modify(String searchKey, String aModifyTitle)
                             throws InvalidDataException;
    public abstract class ShellSortedList
         protected MusicCdNode head;
         protected int numberOfItems;
         public ShellSortedList()
              head = null;
              numberOfItems = 0;
         public int getNumberOfItems()
              return numberOfItems;
         public boolean isEmpty()
              return( numberOfItems == 0 );
         public boolean isDuplicate(String newCD)
                boolean found = false;
                MusicCdNode current = head;
                for( int i=0; i < numberOfItems; i++)
                   if(current.getMusicCd().getCdTitle().equals(newCD))
                   System.out.println("Duplicate Cd is found !!");
                            found = true;
                   current = current.getNext();
                    return found;
         public String toString()
              String listString = " ";
              MusicCdNode current = head;
              for( int i=0; i < numberOfItems; i++)
                   listString += current.getMusicCd().toString() + "\n";
                   current = current.getNext();
              return listString;
    public class MusicCdNode
         private MusicCd cd;
         private MusicCdNode next;
         // Default constructor
         public MusicCdNode()
         // Description: Initialize the reference for the cd object and the value of next to null.
         // Postcondition: cd = null; next = null;
              cd = null;
              next = null;
         // Parameterized constructor
         public MusicCdNode(MusicCd aCd)
         // Description: Set the reference for the cd object according to the parameters and value of next to null.
         // Postcondition: cd = aCd; next = null;
              cd = aCd;
              next = null;
           public MusicCd getMusicCd()
              return new MusicCd(cd.getCdTitle());
         public MusicCdNode getNext()
              return next;
         public void setMusicCd(MusicCd aCd)
              cd = new MusicCd(aCd.getCdTitle());
         public void setNext(MusicCdNode aCd)
              next = aCd;
    // File: MusicCd.java
    // Author: Chi Lun To (Ivan To)
    // Created on: June 5, 2007
    // Class Description
    // The MusicCd class defines a music cd object that contain the CD`s title, CD`s artist/GroupName,
    //  CD`s yearOfRelease , Cd`s music genre, and any comment of the Cd`s. This class provides functions
    //  to access the musicCdsTitle, artistOrGroupName, yearOfRelease, musicGenre, and aComment variable.
    //  Class Invariant: All MusicCd objects have a  string musicCdsTitle, string artistOrGroupName, integer yearOfRelease
    //  String musicGenre, and String aComment. A string type musicCdsTitle,artistOrGroupName, musicGenre,or aComment of "None"
    //  indicates no real name specified yet. A integer yearOfRelease of 1000 indicates no real years specific yet.
    public class MusicCd
         String theCdTitle;// the CD`s Title
         // Default constructor
         public MusicCd()
         // Description: Initialize theCdTitle to empty string
         // Postcondition: theCdTitle = " ";
              theCdTitle = " ";
         }//end constructor
         // Parameterized constructor
         public MusicCd(String aCdTitle)
         // Description: Set theCdTitle according to the parameters
         // Postcondition: theCdTitle = aCdTitle;
              theCdTitle = aCdTitle;
         } // end constructor
         // Accessor function : getCdTitle( ) function
         public String getCdTitle()
         // Description: Method to return the theCdTitle
         // Postcondition: the value of theCdTitle is returned
              return theCdTitle;
         }// end  getCdTitle( ) function
         // Mutator function: setCdTitle( ) function
         public void setCdTitle(String aCdTitle)
         // Description: Method to set theCdTitle according to the parameter
         // Postcondition: theCdTitle = aCdTitle;
              theCdTitle = aCdTitle;
         }// end setCdTitle( ) function
         // toString( ) function
         public String toString()
         // Description: Method to return the theCdTitle
         // Postcondition: the value of theCdTitle is returned as String
                   return("Title: " + theCdTitle );
         }// end  toString( ) function
    // File: InvalidDataException.java
    // Author: Chi Lun To (Ivan To)
    // Created on: June 5, 2007
    // Class Description
    // The InvalidDataException class is a self- defined exception class which handles
    // the issues that may arise with return value of the deleted and modify function.
    // For example,  the issue will occurs if the user try to delete the music cd from a empty list
    // or deleting a music cd that does not exist on the list. it would return null to the user. But, the user
    // expected to return an obeject reference of the music cd.Therefore, we instantiate InvalidDataException
    // class to handle this issue.
    //  Class Invariant:
    //  InvalidDataException class is a self-defining exceptional class which
    //  inherits the existing functionality of the Exception class.
    public class InvalidDataException extends Exception
         //Parameterized constructor
         public InvalidDataException( String s )
              super( s ); //inherits the existing functionality of the Exception class.
    }Message was edited by:
    Ivan1238
    Message was edited by:
    Ivan1238

    thx for your suggestion ..but i did try to skip my code..but i am sure if u guy understand what i am trying to ask ..so i try to show my all program for u guy better undrstand my problem ...the first three paragraph of code i hope u guy could focus on it ....i try ask the user to input the cd`s title to our insert list by using a function call readString( ) and i use this method to ask the user what cd they want to be delete from the list ...but it doesn`t work when i try to perform the delete cd funtion. At first, i think it should be my deleteCd( ) problem ..but i do some testing on it..it works fine if i pass a String directly to my function instead of using readString() function to perform ...therefore, i am sure my delete function working fine....i am thinking if it is my readString() problem make my deletion does not perform well...thx for u guy help

Maybe you are looking for

  • Tipo de condição ICM2 - Tipo de condição NAVS

    Caros, boa tarde! Estou com um problema na configuração do cenário de Consignação. Acontece que a empresa utiliza uma contabilização diferente da comumente utilizada no processo standard. A configuração necessária precisa que o ICMS não seja contabil

  • ECATT abends during recording when lead selection is set to 0 on web dynpro

    We have a web dynpro application that works ok when running by itself.   When we tried to record ECATT testing on it, it abended after we click on a selection from a list of values.    The error on the browser indicated an error on the "lead select".

  • Query plan changes when query is used in CREATE TABLE AS

    We've puzzled by the fact that EXPLAIN PLAN gives a much different output for a SELECT statement than it does when the same statement is used for CREATE TABLE . . . AS SELECT. The bad part is that the CREATE TABLE version performs very badly, and tha

  • Email delievery Issues with scheduled advanced reports XLS and PDF format

    Has anyone experienced problems with not recieving XLS, PDF formatted advanced reports via email? Is anyone using the TAW/WEB-INF/web.xml parameter: <context-param> <param-name>scheduledReportUrl</param-name> <param-value>http://reportservers.mydomai

  • Buffalo NAS

    hello all- i have the first gen single 1.8- i have the original hardrive(160GB)- i am in the market for more space and I am considering a Buffalo NAS prolink 250gb system- I have a PC networked with G5- anyone have experience with Buffalo pro link NA