Can somebody explain me this?

Hi,
In my recent project using the JavaServer Faces i discovered a problem with my project that i don't quite seem to understand.
My bean function is called twice and i thought it would only be called once. Let me explain my problem. I created a small and simple example so anybody can explain me why this is happening.
I have 2 .jsf files:
- The first one (myJSFSelection.jsp) allows the user to select from a menu which information he will want to see. (Which this information is represented in a bean - MyFirstBeanSelection.java)
- The second one (myJSF.jsp) sees which of the options the user has selected and presents in the UI the information regarding the selection (Represented by another bean - MyFirstBean.java)
My FirstBeanSelection holds the value selected by the user and MyFirstBean has a function (getInfo()) that will check which is the value from the MyFirstBeanSelection and it will return the value associated to the selection.
In my faces-config.xml i have defined the following:
<managed-bean>
          <managed-bean-name>myFirstBeanSelection</managed-bean-name>
          <managed-bean-class>
               bpr.userPortal.beans.MyFirstBeanSelection
          </managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>     <managed-bean-name>myFirstBean</managed-bean-name>
          <managed-bean-class>
               bpr.userPortal.beans.MyFirstBean
          </managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
          <managed-property>
               <property-name>bean</property-name>
            <property-class>bpr.userPortal.beans.MyFirstBeanSelection</property-class>
            <value>#{myFirstBeanSelection}</value>
          </managed-property>
     </managed-bean>I am sure that the function getInfo() is being called. It is called two times. I am sure i have done something wrong here. Can anybody help? Thanks in advance.

Hello!
If you think your method is called more then one time, i would implement a Logging-System (i.e. log4j) or a console-output in your method.
Then you can check, if your method ist called correct.

Similar Messages

  • Can somebody explain this store procedure

    Hi there
    can somebody explain me this Oracle store procedure, I am not able to figure it out anything from this SP :(
    CREATE OR REPLACE PROCEDURE MyDummySchema.MyDummyStoreProcedure
    (a_created_by_proc SomethingDummy.CREATED_BY_PROC%TYPE)
    as
    BEGIN
    /* Set up your global variables */
    XYZ_FORMAT.g_s_created_by_proc := a_created_by_proc;
    XYZ_FORMAT.g_d_current_time := sysdate;
    XYZ_GENERATEEODQUEUE.XYZ_GENERATEQUEUE;
    XYZ_PROCESSQUEUE.XYZ_PROCESSTRADES;
    XYZ_SYNC_SOMETHING(a_created_by_proc);
    END MyDummyStoreProcedure;

    Here
    XYZ_FORMAT, XYZ_GENERATEEODQUEUE, XYZ_PROCESSQUEUE
    are package names;
    XYZ_SYNC_SOMETHING is another PL/SQL procedure name; the procedure takes one parameter;
    XYZ_FORMAT.g_s_created_by_proc, XYZ_FORMAT.g_d_current_time are global variables defined in the package XYZ_FORMAT, in package definition part of it;
    XYZ_GENERATEEODQUEUE.XYZ_GENERATEQUEUE,
    XYZ_PROCESSQUEUE.XYZ_PROCESSTRADES are stored procedures w/o parameters definned in packages XYZ_GENERATEEODQUEUE and XYZ_PROCESSQUEUE respectively.
    But only the author [hopefully] knows what is the point of all this stuff :)

  • Can somebody explain how dunning & hold are linked toghter

    In the IMG, i can not find out How dunning are linked with academic hold in the student file and can somebody explain how dunning is linked with academic hold.
    I defined hold type in IMG but i can not find out how to link with hold type with dunnng ?.
    regards,
    jin dal

    Dear Song,
    Answers to your queries are given below:
    Sample function module:
    u2022 Is only used as a template for creating the standard function modules to be carried out
    u2022 Defines the interface that is binding for the standard function modules
    u2022 Describes in its documentation what the underlying event can be used for
    Standard function module:
    Name of application-specific standard function module that can be carried out at a given time.
    The standard function module interface corresponds to the sample function module, which it must match exactly.
    Active function module:
    Function module which is to be called for the specified event.
    If you don't want to take printout then use Functional module 340 as Event 0340 is called when all data is read for a dunning notice.
    You can use standard function module FMCA_DUNNING_READ_ITEMS_0340 for this purpose.
    Hope it will solve your query.
    Warm Regards
    Vinod Kumar

  • Can somebody explain how ABC analysis is done ?

    Hi Experts,
                         Can somebody explain how ABC analysis is done . If I use MC40 transaction there I have 4option but I can use either one of those . For second option , Usage value as number we can directly specify cost and accordingly system will classify materials In A, B and C category .
    I have question on 1st 3 rd and 4 th option . How system will classify materials if These option is used .
    Please explain with examples .
    Points will be rewarded .
    Thanks in advance !
    Neal

    Hi Sir ,
                     Thanks again , I would explain what I have understood .
    MC 40 . Option selected is Usage value with value put are 70 , 20 , and 10 .
    Suppose I have 3 mat in plant
                  Stock         Value
    1) X        100 kg      1000   ( for 1 kg from MM)
    2) Y          20 PC      2300 
    3) Z          30  lt      40000
    Now how would system classify these items ? Will it consider price or only consumption /qty ? or both ?
    Please explain with the same figures . Again the 90 days period you said , is it taken automatically ? because on this T code there is no option for entering time period .
    Neal

  • Can somebody explain what the Radix number is in Character

    I am looking for a good way of converting numbers to characters and I was reading up on the Character API, and they are using this term Radix, and I don't understand what that is all about. Can somebody explain what the radix is for?

    Wait a second I tried this code out and this is the output
    System.err.println(Character.digit('a', 10));and i get a -1, which means "not a valid digit in the specified radix.
    Then I tried other combinations like
    System.err.println(Character.digit('a', 11));
    System.err.println(Character.digit('b', 12));
    System.err.println(Character.digit('c', 13));and they all work, and but with only those sequential characters and numbers. So right now I am very confused as to what this radix, or this function serves. Can somebody explain?

  • Can somebody explain to me how I can detect that an internet connection exists (VB)?

    Can somebody explain to me how I can detect that an internet connection exists (VB)?
    Peter Goossens

    There is no reliable way. Better test whether you can go to where you want to go. And be prepared to support proxies, even the complex ones that require authentication. 
    System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable reports your local connectivity regardless of whether one of your connected networks has Internet access.
    Microsoft's Network Awareness API (the one used in control panel\network and sharing center) use a connection test to a web site setup by Microsoft. But your customers could be behind cooperative firewalls that make this test unusable even when Internet
    access is available though other means (e.g. via a local proxy server). If you want to connect to your own web site, then you can skip that and just connect to your web site instead. Even if you were able to connect to Microsoft's web site there is no guarantee
    your web site would be accessible in the same network.
    Visual C++ MVP

  • My ipod 60gb classic is showing as fully charged until I connect it to my pc when it comes up with the error message, 'please wait very low battery' and the little wheel goes round and nothing happens, can anyone explain why this is and what i can do?

    My ipod 60gb classic is showing as fully charged until I connect it to my pc when it comes up with the error message, 'please wait very low battery' and the little wheel goes round and nothing happens, can anyone explain why this is and what i can do?

    I have worked my way through the assistant and nothing works. I have tried connecting in disc mode but although the screen on the ipod is showing that the device is charged and that it is in disc mode as soon as I connect it to the computer it comes up with the error message 'please wait very low battery' and stays like that until I disconnect when it appears to be OK again. I have tried on both pc and mac.
    BTW the ipod is an ipod video not classic if that makes any difference.
    Thanks

  • When trying to sync my iphone in itunes i keep getting the error message "itunes cannot sync apps because the apps installed on the iphone could not be determined." can anyone explain what this means?

    when trying to sync my iphone in itunes i keep getting the error message "itunes cannot sync apps because the apps installed on the iphone could not be determined." can anyone explain what this means?

    I received the same error message after I had recently updated iTunes to 10.5.1 and I had wirelessly updated 13 apps.  I had to go into iTunes and select Apps, on the bottom right it said I needed to update 13 apps.  I updated the apps via iTunes and then synced again without an issue.
    iPhone 4S / OSX 10.6.8 / iTunes 10.5.1

  • Can somebody explain to me how java and xml are related?

    Hi guys
    im new to java and xml.Been reading a lot regarding java and don't seem to have a problem with it...
    the problem is the xml part...im doing a simple GUI project using swing(online store) and i have to convert it to xml
    I have absolutely NO IDEA why i must convert my java to xml and have no idea how to do that.I been reading on the net that xml is a exten~ markup language and it is better and useful.
    Can somebody explain to me in layman terms
    1)how is java and xml related in?
    2)why do ppl want to convert java to xml when they can just stick to java
    3)what is actually xml...
    4)Do i need a program to create xml like i need jcreater to create java application
    5)How do we actually convert?is there any links that you guys could tell me?
    thank you
    tomleo

    im new to java and xml.Been reading a lot regarding
    java and don't seem to have a problem with it...Okay.
    the problem is the xml part...im doing a simple GUI
    project using swing(online store) and i have to
    o convert it to xmlYou have to? So presumably somebody in a position of authority told you that?
    I have absolutely NO IDEA why i must convert my java
    to xml and have no idea how to do that.I been reading
    on the net that xml is a exten~ markup language and
    it is better and useful.I have no idea either (besides which, it doesn't make sense). But why ask us? Somebody told you to do that, ask them why.
    Sure, XML is useful. But it isn't a programming language so it can't be used as a substitute for Java.
    Can somebody explain to me in layman terms
    1)how is java and xml related in?They aren't related, except perhaps in that they are both used in computers.
    2)why do ppl want to convert java to xml when they
    can just stick to javaThey don't.
    3)what is actually xml...Start here for numerous definitions:
    http://www.google.ca/search?hl=en&lr=&oi=defmore&q=define:XML
    4)Do i need a program to create xml like i need
    jcreater to create java applicationNo, XML is just text. But then Java code is just text too.
    5)How do we actually convert?is there any links that
    you guys could tell me?You don't convert Java to XML. My guess is that because you don't know much about Java or XML, you have misinterpreted something that somebody told you.

  • I can't deauthorize all computers. It acts like it is doing it, but it never succeeds and no message returns saying why it didn't work. Can anyone explain why this is happening?

    I had to rebuild a computer. When I got iTunes installed and tried to sync my iPod it said that I had reached my limit of five computers. I logged into my iTunes account and went through the process for deauthorizing all computers. It comes up with a messaging asking if I am sure I want to deauthorize all computer and I select the "Deauthorize computers" button. It never comes back with a message one way or another whether it was successful. When I get out of that screen and come back in, it still shows that I have 5 authorized computers. I can't sync my iPod. The deauthorization is not working. Can anyone explain why this is happening?

    i guess no one helped? I'm having the same problem.
    When i press the button to deauthorize all computers, i get an error saying 'my account can't process this at this time. please try again later'

  • I recently installed Acrobat Pro X on my Mac. I initially accepted the terms of agreement, but then every few seconds the same prompted window for the terms of agreement keeps popping up. Can anyone explain why this is happening, and how to resolve?

    I recently installed Acrobat Pro X on my Mac. I initially accepted the terms of agreement, but then every few seconds the same prompted window for the terms of agreement keeps popping up. Can anyone explain why this is happening, and how to resolve?

    Have you tried reinstalling the original drive? Same symptoms with it?

  • Recently updated Numbers to Version 3.5.2 and now also seem to have Numbers Version 2.0 on my launchpad? Can anyone explain how this has happened - how do I get rid of it?

    Recently updated Numbers to Version 3.5.2 and now also seem to have Numbers Version 2.0 on my launchpad? Can anyone explain how this has happened - how do I get rid of it? Not able to move to Trash.

    What is strange however is that my iMac is only a few months old and they all were upgraded to V3.x just a few months ago - with all Apps for iWork removed at that time.
    Unless you did something specific to remove the old versions of the iWork apps (not advisable) then, as Wayne points out, they were not actually removed from your Mac, just moved into that subfolder within your main Applications folder.
    I originally downloaded Numbers 2.x from the App Store (i.e. didn't install from a disk). I still have it on my Mac.  But only Numbers 3.x appears in Launchpad.
    I don't know whether this will help, but in Mac App Store you might try clicking 'Account' under 'Quick Links' on the right, signing in with your password, and clicking the 'Reset' button to the right of 'Reset all warnings for buying and downloading'.  Sometimes the App Store gets a little confused. It's possible Launchpad may be taking its cue from the App Store in showing that old version of Numbers.
    By Launchpad I assume you really mean Launchpad, not the Dock.  I usually use the Dock. If that's what you're using too, then of course you can just drag the icon for the old Numbers off the Dock and it will vanish. (But the Numbers 2.3 application will still be there in that subfolder when you need it.)
    SG

  • HT1665 I am trying to connect my Samsung Bluetooth device with my new Iphone 4S.  Can anyone explain how this is done?

    I am trying to connect my Samsung Bluetooth device to my new Iphone 4s. Can anyone explain how this is don?

    Which Samsung Bluetooth device?
    Please note that the iPhone will not pair with other phones, tablets, etc for purposes of file transfer.

  • Can somebody help me this....

    Can someone explain me this.......
    why sometime we use to create a thread by putting an this argument
    Thread t = new Thread (this);
    what is the purpose of using that declaration? the (this) is mean for wat at here?

    Thread constructor takes a Runnable argument, the 'this' refers to the current class instance (i.e. the instance that the current method is being run on) which obviously needs to implement Runnable.

  • ESCAPE Option can somebody explain it ?

    ESCAPE Option can somebody explain it ?
    Thanks in anticipation
    SDG

    In first SELECT the underscore is intrepreted as any one single character. What if we wanted to search for an underscore specifically. The second example allows us to search specifically for underscore character with LIKE.
    SQL> select table_name from dba_tables where table_name like 'DBMS_%' ;
    TABLE_NAME
    DBMS_ALERT_INFO
    DBMS_LOCK_ALLOCATED
    DBMSALERTINFO
    3 rows selected.
    SQL> select table_name from dba_tables where table_name like 'DBMS\_%' ESCAPE '\' ;
    TABLE_NAME
    DBMS_ALERT_INFO
    DBMS_LOCK_ALLOCATED
    2 rows selected.
    SQL>Sorry Nicolas, your post was not visible at that time.
    Message was edited by:
    Kamal Kishore

Maybe you are looking for