When does a bean get initialised?

Hi,
I am a bit confused at the moment, and the more I think about it, the more confused I get! Here is the scenario....
Some details - it is a JSF application using JSPs and JSF Components. I am using JDeveloper 1.3.2 and Oracle 10g DB.
I have a page (login.jsp) that calls a method in the LoginBean when the user clicks the Login button. This then goes off to the DB and retrieves the user's data (if he/she exists). If successful, the user is navigated to the welcome page. At this point I wish to display the user's details (EmployeeBean) - which are stored in another table, and so will require a query to the find the user's details based on their user_id (retrieved when logging in).
My question is - when/how can I populate the Employee bean. Do I need to explicitly create the Employee bean (with new EmployeeBean()) or does the faces-config.xml sort this out. How can I 'tell' the application that when the welcome.jsp page is loaded I want/want to have populate(d) the EmployeeBean with the relevent details.
If this requires further info, please tell me and I'll add to it!
Thank you.

Hi,
You can use a session bean (the LoginBean or an other) that retrieves an EmployeeBean entity bean from the database if the id is given. You should call this method from the welcome page and display the data of the retrieved entity bean.
Regards,
Kati

Similar Messages

  • When does an AP gets to Air-Monitor mode?

    Q: When does an AP gets to Air-Monitor mode?
    A: In a Mobility-controller AP deployment there are just 3 conditions that an AP can go into an Air-Monitor(AM) Mode:
    1. If the am-mode is configured in the "rf dot11a-radio-profile" or "rf dot11g-radio-profile"
    To see if it is configured in the radio profile please use this filter in the show running-config command
    Example:
    (Aruba) #show running-config | begin "rf dot11a-radio-profile"
    Building Configuration...
    rf dot11a-radio-profile "default"
     mode am-mode  ------------------------------------------------------------- Indicates that the Airmonitor is Enabled
    2. If Mode Aware ARM is turned on in the  ARM profile then th ap turns to AM mode when it sees excess power from the neighbor AP
    To see if mode aware arm is enabled in the arm profile please use this filter in the show running-config command
    (Aruba) #show running-config | begin "rf arm-profile"
    Building Configuration...
    rf arm-profile "default"
       mode-aware                 ------------------------------------------------- Indicates that the mode aware arm is enabled                           
    3. During the Regulatory mismatch or un-supported
    a.    When there is no channel available for the AP’s operation for the country defined on the controller.
    Use the following command to verify the allowed channels for an AP
    (Aruba-7240) #show ap allowed-channels ap-name <name-of-ap>
    b.    When AP’s has a different country with the controller’s Country.
    Compare the country defined on the controller "(Aruba) #show country" to the country defined in the "(Aruba) #show ap regulatory-domain-profile <profile-name>". The ap regulatory-domain-profile will be mapped in the ap-group to which the ap is provisioned to.

    Hi Marc,
    I have a shop system comprised of two web applications where one is for
    maintaining the shop and the other for using the shop. When I do changes
    to the shop from the one webapp they do not show up in the second, unless
    I call refresh. Also, I have to switch off the cache, it seems and do a
    flush on the changed objects. There are some questions now:
    a) when I call refresh, is the complete state reread regardless whether
    there have been changes or not or does it know, when the state has not
    changed in the DB ? it is a performance question, I guess.
    b) can I use transactional reads to do the refresh automatically ?
    c) I noticed that refresh does not do a deep refresh of all the objects
    referenced by the one to be refreshed. Is there a way to do this or do I
    have to go thru all the objects ?
    I asked some questions some time ago in another thread, which might refer
    to. I am sorry, if I am not clear enough.
    Best regards
    Wolfgang
    Marc Prud'hommeaux wrote:
    Wolfgang-
    I take the question to mean that you are wondering how you can refresh
    the state of a persistent instance to reflect changes in the data store.
    If that is the case, then you can just call
    PersistenceManager.refresh(ob) on the object, and the newer values will
    be obtained.
    If that doesn't help, can you clarify the question a little?
    In article <cj7ris$mhr$[email protected]>, Wolfgang Kundrus wrote:
    Do I have to use transactional reads for an object to get the changes done
    by another web application ?
    Thanks
    Wolfgang
    Marc Prud'hommeaux
    SolarMetric Inc.

  • When does the horizontalScrollBar get created on a List?

    When does the horizontalScrollBar get created on a List?
    The scroller is created, but the scrollbar isn't created yet and I get an error:
    I have a spark List:
    <s:List id="list" creationComplete="creationCompleteHandler(event)">
            <s:layout>
                <s:HorizontalLayout  />
            </s:layout>
    </s:List>
    private function creationCompleteHandler(event:FlexEvent):void {
         (event.currentTarget as List).scroller.addEventListener( FlexEvent.UPDATE_COMPLETE, onScrollerComplete );
    // these don't trigger anything!
    //    (event.currentTarget as List).scroller.addEventListener(FlexEvent.CREATION_COMPLETE , onScrollerComplete );
    //    (event.currentTarget as List).scroller.addEventListener(Event.ADDED_TO_STAGE , onScrollerComplete );
    private function onScrollerComplete(event:Event):void {
         // horizontalScrollBar still null at this point - how can I use it?   
         // I want to set the style, but it's not created yet!
         // event.currentTarget.scroller.horizontalScrollBar.setStyle("repeatInterval", 600);

    I just realized that
    this.setIconImage(new ImageIcon("image.jpg").getImage())
    did not create the icon for my saved files.
    So what did create it? I did not program it!
    However, I happen to have an icon file Ananya.ico where I have my java project. I use if for my installation file. Did Java use this icon?
    Please help! Thanks!

  • When doing catalog backup get message " your system is low on disk space, and elements organizer can

    When doing catalog backup get message " your system is low on disk space, and elements organizer cannot perform the operation.  If create a catalog with 20 pictures backup works OK.  backing up to a 1TB external drive.  Have 16705 pictures in catalog.  Total disk space for pictures is 192 MB.  Why am I getting message?

    kdrozzen a écrit:
    Total disk space for pictures is 192 MB. 
    Do you really mean MB (megabytes) or GB (gigabytes) ?
    Even if its GB, the free space may be enough, depending on your files size, especially with videos or raw files.
    When you start the backup process, it first shows you the total size of the catalog.

  • When does the JSP get regenerated!!

    Hi,
    Can anyone please tell me When does the JSP get regenerated!!
    Thanks in advance
    SP
    [att1.html]

    Answered on interest.jsp
    (please don't cross post)
    mbg
    =============================================================
    "SP" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    Can anyone please tell me When does the JSP get regenerated!!
    Thanks in advance
    SP

  • When does Mac Mini get i7 processor?

    I really like the Mac Mini design. but when does this product line get updated with i7 processor?

    sharpxia wrote:
    but when does this product line get updated with i7 processor?
    when Apple deems the time is ripe.

  • When does an object gets refreshed, if its state has changed in the cache?

    Do I have to use transactional reads for an object to get the changes done
    by another web application ?
    Thanks
    Wolfgang

    Hi Marc,
    I have a shop system comprised of two web applications where one is for
    maintaining the shop and the other for using the shop. When I do changes
    to the shop from the one webapp they do not show up in the second, unless
    I call refresh. Also, I have to switch off the cache, it seems and do a
    flush on the changed objects. There are some questions now:
    a) when I call refresh, is the complete state reread regardless whether
    there have been changes or not or does it know, when the state has not
    changed in the DB ? it is a performance question, I guess.
    b) can I use transactional reads to do the refresh automatically ?
    c) I noticed that refresh does not do a deep refresh of all the objects
    referenced by the one to be refreshed. Is there a way to do this or do I
    have to go thru all the objects ?
    I asked some questions some time ago in another thread, which might refer
    to. I am sorry, if I am not clear enough.
    Best regards
    Wolfgang
    Marc Prud'hommeaux wrote:
    Wolfgang-
    I take the question to mean that you are wondering how you can refresh
    the state of a persistent instance to reflect changes in the data store.
    If that is the case, then you can just call
    PersistenceManager.refresh(ob) on the object, and the newer values will
    be obtained.
    If that doesn't help, can you clarify the question a little?
    In article <cj7ris$mhr$[email protected]>, Wolfgang Kundrus wrote:
    Do I have to use transactional reads for an object to get the changes done
    by another web application ?
    Thanks
    Wolfgang
    Marc Prud'hommeaux
    SolarMetric Inc.

  • Outputting an error message in MV50AFZ1 when doing a VL01N - getting update

    Hello. I am getting an "update terminate" message due to using a MESSAGE statement in user-exit USEREXIT_SAVE_DOCUMENT_PREPARE . We need to be able to stop a delivery from getting created and alert the user under certain circumstances (if a field is not filled in on a separate screen). I have seen under Note 415716 that we cannot use the MESSAGE statement. Is there any way to stop a delivery from being created while informing the user that they have not filled out the required field? (This field is on another tab that they may not see when creating into the delivery). I have tried various uses of the MESSAGE statment, tried perform message_handling, etc., but still no luck. Thanks for any help!
    Regards,
    Vince

    Hi Vince,
    I am not too sure but could you please check below subroutine of SAPMV50A-
            PERFORM message_handling USING
                                           <item#>
                                           <number>
                                           <type>
                                           <id>
                                           <msgv1>
                                           <msgv2>
                                           <msgv3>
                                           <msgv4>.
    Thanks
    Mohit

  • When does new user get new minutes from ATT

    I bought the iPhone a few weeks ago... on Feb 8. It is March 1st today. Shouldn't I be getting a fresh set of 450 minuets? I checked my minutes (clicked the "show my minutes" button in Settings-->Phone--> ATT Services) and it shows 332... which is about right (I don't use it that much obviously.)
    When do I get my new minutes? Not the first of the month?
    Thanks,
    Al1776

    If you don't yet have an online account with AT&T you can set one up very easily on their website in a couple minutes. Just put in your mobile number and it will prompt you to complete some information and then your good to go. Since you signed up on the 8th your billing cycle will fall some where around that date each month. Your first month will be pro-rated for partial service you receive, as well as the activation fee, and the entire bill for the next full month.
    I signed up on the 5th of a month and my cycle is on the 5th of each month. From AT&T you can also pay your bill online, the only thing you can't do is manage your account features for the iphone plan. You have to have AT&T do that for you, they tell me you can do from itunes but I have not looked very hard to see how to do it.

  • Moving home - when does current address get discon...

    I am moving home so i will be doing the moving home thing to move our connection over.
    It says our current address will be disconnected but it doesn't state when? It also asks time at our address for a new credit check, what address it doesn't state either?

    It will be disconnected on the date that you want it disconnected and the address will be your present address not your new address.

  • Where and when does requisition id gets created when creating from MSS?

    My requirement is to have a custom logic on how to assign recruiters to a new requisition which is beeing created from MSS.  Once i fill out the form and send the form i get a ref nr for process. What i need is the requisition id as i want to create those recruiters in table HRP5131.
    So my question is: when and where is the requisition id beeing created?
    Any help will be appreciated.
    Thanks

    Hi Nahman,
    Check the following nodes
    SPRO--> Integration with other my sap.com components --> Business packages / Functional packages --> MSS (my SAP ERP) --> recruitement --> Define attributes for request scenario
    Select the recruiter logic type. You have an option to use custom logic also using a BADI. other than this there are 3 more options provided by standard sap.
    Hope this info helps. Let me know if u require further help on this
    Thanks
    G Raj

  • When does the configuration get locked for changes in sales order?

    Hi Experts,
    I will really appreciate your help me in resolving this issue.
    Our client had sales order having BOM item with several sub items.
    Here we found that the user was not able to make changes to the Characterstic Value of one of the variant.
    The issue was the place where we change the characterstic  in sales order was greyed out, it was probably locked. Now even if they were unfrezing and trying to change the characteristic value the system did not allowed means greyed out.
    Can you please help me in understanding when do system locks the variants for a material in sales order, in what stage?
    Like maybe after the delivery document is created or PGI or some things else.
    since i see that the user here did delivered one of the item in the BOM subitem.
    Thanks
    Kaushik
    <Text removed by Moderator, please don't share your personal details on SCN post>
    Message was edited by: Jyoti Prakash

    Yes the characterstics were maintained for the main item.
    and the delivered item was a subitem for this main item.
    So characterstic were maintained for Item 10(Main item) but delivery was done for some of its sub item was item 100 / 120
    Also can i know where is this setting or configuration where we configure this to block the configuration if any of the subitem is delivered.
    Thanks
    Kaushik.

  • When does the uk get iTunes Radio?

    Does the UK have a date for iTunes Radio?

    Music industry still trying to carve the world up into discrete territories despite the fact that the internet is global.  If you want iTunes Radio now just create a US ID.  It's simple and works. 

  • When does bdg_procedure PercolateSeverity gets triggered?

    Hi:
    I have a 3.6 SunOne B2B Integration Server instance installed and I have noticed from my Oracle logs that this particular stored procedure "bdg_procedure.PercolateSeverity" is run very frequently (ie. about 1.5 million times in a day!). This in turn will cause the Oracle archive logs to be generated very frequently.
    So I'm wondering what can possibly be the cause of this problem?
    I have a Partner Agent Client configured to receive and submit files to ECXpert on a per minute basis.
    Any help will be appreciated.
    Thanks,
    Terence

    Hi Terence,
    PercolateSeverity is called in several places,
    1) In the Dispatcher at the end of each ServiceList Execution ( irrespective of failure / success).
    2) In the Gateway when delivery is Scheduled / Poll for each tracking Id.
    3) In the TCP/IP Connector is there is an error.
    4) In the Error Notification services.
    The culprit is either 1) or 2) above (assuming there are no errors ).
    You mention that, you have a Partner Agent Client configured to receive and submit files to ECX on a per minute basis.
    Partner Agent Client uses Poll to receive documents, so if you are approximately receiving "n" files / minute in a day we
    have percolate severity called ( 60*24*n) times in case (2).
    With case (1) above, we would have percolate severity called "60*24*n" times.
    So for receiving "n" files / minute percolate severity is called : 2( 60*24*n) times.
    If you are sending "m" files per minute then percolate severity is called 60*24*m times.
    Totally percolate severity will be called "x" times :
    where x= 60*24(2n + m ) ,
    assuming x = 1500000 and m=n ( number of documents sent = number received ) then,
    60*24*3n = 1500000
    -> n ~ 348
    Do you have this kind of a load ? i.e submitting / receiving ~ 348 files / minute ( I think not as this is too high a number / minute
    for ECX to process / minute as( send + recv) / per minute = 348*2 = 696 / minute).
    The number of times that percolate severity is called is ~ 4320*n . What kind of load do you have ?
    Note: By "file"submitted I mean a work unit which would have its own unique tracking Id.
    There is no configurable option to turn off the tracing in oracle. There is no bug in the stored procedure.
    Hope this helps.
    ~ Nikita

  • When does this gets trigerred CRM_MKTTG_SEG_MEM_EX

    Hi All,
        I want to check when does the BADI gets triggered CRM_MKTTG_SEG_MEM_EX , i have implemented this BADI and put up a break point but didnt actually start when i did Right click on target group -> target group follow up proc. ->  Export in File.
       Any one worked on the similar lines?
    Thanks in Advance
    Regards,
    Kishore Yerra.

    Kishore,
    Perhaps the SAP help is wrong.  The underlying function module to export a target group is:
    CRM_MKTTGGRP_SEND_TO_CHANNEL.  If you see this BADI called in this function module then you can use it, otherwise try using the other BADI that I have mentioned before.
    I don't know know what to tell you at this point.  The cod for this looks pretty simple. the method IF_EX_CRM_MKTTG_SEG_MEMBER_EX~GET_TG_MEMBER_STRUCTURE .
    looks like:
       check flt_val eq '05'.
       ev_members_structure = 'ZSMS_MKT_BUPA'.
       ev_members_field_guid = 'PARTNER'.
    As far as the other method SELECT_TG_MEMBER_DETAILS I just coded routines to fill in the data into the field for the structure.
    Good luck,
    Stephen

Maybe you are looking for

  • Multiple Apple TVs, one iTunes source...

    Before I jump in and buy a couple of these for my house, I wanted to make sure that I can set up two rooms with Apple TVs and have one computer elsewhere feeding both. From the website, it is not clear if there is a one-to-one relationship between an

  • Managed System Configuration step Assign Diagnostics Agent

    Dear Experts, We've newly instaled solution manager system 7.0 Ehp1 via latest sp stack 25 on aix 6.1, we've completed initial and basic configuraiton successfully via solman_setup, and instaled wily introscpe on same host with solution manager syste

  • Error 4261 when attempting to burn disc

    I was able to burn discs just fine but then suddenly I get this error 4261. The disc willl begin to burn and then I get a message saying cancelling disc burn and the disc ejects and I get a message ending with 4261. Have lowered the recording speed,

  • Audigy SE not working...NEED HELP BAD!

    I have been really frustrated over the past week trying to fix this "no sound" problem. There is no sound coming from speakers and yes, I already checked if it was my speakers and they work perfectly fine. For some reason whenever I play a music file

  • Table  invoices without output messages

    Hi All! I know that in NAST table I can see the output messages for invoices and from VBRK table I can get all the invoices. But I don't know if there is a table / a field table which tells me if the invoice has not any output message. I have to crea