Same value in two or more different objects connected via session

I have to object class with get and set method configure in faces-config.xml as session
<managed-bean>
<managed-bean-name>user</managed-bean-name>
<managed-bean-class>com.dirsot.content.utility.RegisterUser</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>album</managed-bean-name>
<managed-bean-class>com.dirsot.content.tables.UserAlbum</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
in both objects, RegisterUser and UserAlbum i have two identical attribute called us_email as user email.
I need them to be in both object because I'm using hibernate to store them in the database.
my question is when I logged in, RegisterUser get the value and sets us_email value from the user.
what can I do that the stored value on RegisterUser to be also reflected on UserAlbum? Obviously I cannot create new object inside RegisterUser because that will not show in the session.
is there anyone that can give me some indication.
code examples are really really welcome. Thank you.

harddisk wrote:
what can I do that the stored value on RegisterUser to be also reflected on UserAlbum?Better inject the one bean in the other bean or just access the other bean through SessionMap.
You can find here useful code examples: [http://balusc.blogspot.com/2006/06/communication-in-jsf.html].

Similar Messages

  • HT204053 Is it possible to have two (or more) different icloud mail accounts (not alias) under the same apple id? If not what is you best advice for all family members to have their own e-mail and still share the purchases under the same apple id. Thanks

    Is it possible to have two (or more) different icloud mail accounts (not alias) under the same apple id? If not what is you best advice for all family members to have their own e-mail and still share the purchases under the same apple id. Thanks

    mannyace wrote:
    Thanks for the response.
    So I basically won't run into any trouble? I
    There should be no issues. Its designed to work like that.  You don't change Apple IDs just because you get a new device.
    mannyace wrote:
    Thanks for the response.
    Is there any chance that the phones can fall out of sync?
    Unlikely. But nothing is impossible.   Though I don;t see how that would happen. As long as both are signed into the Same Apple ID / iCloud Account they will be N'Sync. (Bad Joke)
    mannyace wrote:
    Thanks for the response.
    If I get a message or buy an app or take a photo on the iPhone 5, how do I get those things onto the iPhone 6?
    If you buy an App, you have 2 ways to get it to the iPhone6: If Automatic Downloads is enabled in Settings->iTunes & App Store, it will automatically download to the iPhone 6 when you buy it on the 5 and vice versa if you buy it on the 6, it will download to the 5.
    Alternatively, you can simply go to the App Store App->Updates->Purchased and look for the App there and download it. Purchased Apps will not require payment again. i.e They'll be free to download to the iPhone 6 once purchased.
    SMS Messages will sync over using Continuity as long as they are on the same Wifi network. Otherwise, restoring the iPhone 5 backup to the iPhone 6 will transfer all messages received up until the backup was made onto the iPhone 6.
    Images, can be transferred either through Photo Stream
    My Photo Stream FAQ - Apple Support
    Or any Cloud service you want such as Dropbox, or One Drive.
    mannyace wrote:
    Also, something i forgot to ask initially: Should I update the iPhone 5 to iOS 8 first or does that not matter?
    If you want the Continuity features as explained above you need to update the iPhone 5 to iOS 8. Otherwise its not all that important.

  • Will a sequence return same value for two different sessions?

    Is there a possibility that a sequence will return same value to two different sessions when it is referred exactly at the same instance of time?

    @Justin... Thanks for your insight; indeed, we too feel this shouldn't ever happen and never heard of it either, but there it is. (No, we haven't logged a TAR yet -- whatever that is -- partly because it didn't occur to us and partly because we only recently came across the issue and sensibly want to do some testing before we cry foul.)
    However, the code is pretty straight-forward, much like this (inside a FOR EACH ROW trigger body):
    SELECT <seqname>.NEXTVAL INTO <keyvar> FROM DUAL;
    INSERT INTO <tblname> (<keyfield>, <... some other fields>)
    VALUES(<keyvar>, <... some other values> );
    (where <tblname> is NOT the table on which the trigger is fired). This is the only place where the sequence is ever accessed. The sequence state is way below its limits (either MAXVALUE or <keyfield>/<keyvar> datatype size).
    In this setup, end users sometimes got an out-of-the-blue SQL error to the effect that uniqueness constraint has been violated -- as I said, we used to have a unique index on <keyfield> -- which leads us to assume that the sequence generated a duplicate key (only way for the constraint to be violated, AFAIK). We released the constraint and indeed, using a simple SELECT <keyfield>, COUNT(*) FROM <tblname> GROUP BY <keyfield> HAVING COUNT(*)>1 got us some results.
    Unfortunately, the <tblname> table gets regularly purged by a consumer process so it's hard to trace; now we created a logger trigger, on <tblname> this time, which tracks cases of duplicate <keyfield> inserts... We'll see how it goes.
    @Laurent... winks at the CYCLE thing Our sequence is (needless to say) declared as NOCYCLE and the datatype is large enough to hold MAXVALUE.

  • Is it possible to combine two or more different apple accounts to one account?

    Is it possible to combine two or more different apple accounts to one account?

    No, you can't combine accounts nor transfer content between accounts - content will remain tied to the account that downloaded it.

  • Inkjet 2800 on different windows connected via network

    Hello,
    Im using windows 7 Pro, and I can't access a printer which is connected via network on another computer with windows XP.
    The problem is that, when I install the printer on windows 7, it works as long it's connected to my computer,
    but, when i unplug the printer and reconnect it back to computer with XP, i'm unable to use the priter, although i installed the drivers already.
    the printer is shared,i can see it on network, but can't connect to it.
    the problem is only with inkjet 2800 printer,
    as i use hp Laserjet cp1215 which is on the XP computer, but works fine.
    Thank you in advance.

    Hello cesco,
    Welcome to the HP Forums.
    I see that you are having a communication issue when attempting to print on two separate printers at the same time.
    This will be a communication issue for sure.  The computer can only send to one printer at a time. You will have to print to one printer, wait for it to finnish the print job and then send it to the other printer. 
    There is no way that you can print from one computer to two separate printers at the same time.
    Thanks for your time.
    Cheers, 
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Hi friends, I have a doubt in inserting a field to database table and inserting the same values in two different tables

    I have a mpp screen for a cd library management system (we are practicing on it).
    We have a main screen where a user should enter the enteries and while clicking a add button it should be inserted in a table, Here the problem rises the table name are ztransaction and zstatus.The fields in mpp are cdid,customerid,transaction id,date of issue and duedate.Now after entering all the values on clicking add button it should be inserted to database table ztransaction and the field cdid alone should be inserted both in ztransaction and zstatus.
    Thank you

    Hi Raghuram R G,
    Check for Primary key and foreign key in the Database table??? Because of this it was not inserting...check and confirm??
    Regds,
    Vijay SR

  • Powerpivot - Can't insert formula that combines two or more different columns and keep getting message "unhandled exception has occurred in a component in your application...

    I am using powerpivot v2 with excel 2010.
    When I go to my excel file's powerpivot and I try to insert a formula in any column, I constantly get the following message:
    "unhandled exception has occurred in a component in your application. If you click continue, the application will ignore this error and attempt to continue".
    ************** Exception Text **************
    System.InvalidCastException: Return argument has an invalid type.
       at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
       at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Office.Interop.Excel._Application.get_ActiveWorkbook()
       at Microsoft.AnalysisServices.XLHost.Addin.GeminiRibbon.currentClientWindow_InFormulaBarChanged(Object sender, EventArgs e)
       at Microsoft.AnalysisServices.Common.SandboxEditor.formulaBar_Leave(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
    Does anybody know how to fix this ?

    Mark,
    I used the Fix It found here:
    http://support.microsoft.com/kb/2739501
    I would have to ask my IT support person for more specifics, but as I understand the scenario with my particular laptop: the laptop came preloaded with RTM build of 2013.  We used Control Panel to uninstall Office 2013, in order to install Office
    2010.  I installed PowerPivot add-in and used it successfully with no issues for several months.  After attempting to install another program and encountering issues with apparent traces left behind of Office 2013 uninstall, I found the link above
    and used the Fix It to attempt to remove all remaining traces of Office 2013.  While it did appear to find and clean-up quite a bit left behind from the Office 2013 install, I was surprised to find an error upon entering my existing installation
    of PowerPivot for 2010 and attempting to type new formulas into the formula bar.
    My experience to-date is that an error message stating ""Return Argument Has an Invalid Type" appears anytime I select or modify a formula in the formula bar that would cause the intellisense to appear.  For example, when I first click into the formula
    bar, I do not get an error...but as soon as I type the first letter, before the intellisense appears, I get the error message.  Throughout the remainder of the formula as I type, just prior to any time when the intellisense drop-down will appear
    again, I get the same error message again (see details below).
    At one time, although I can't reproduce it now, the error message did state ".Net Framework" in the menu bar of the error pop-up window.  I can't get that to appear again, as it now only says "PowerPivot for Excel".  Based on this, I had attempted
    to see if I could repair my .NET framework install using the following tool:
    http://www.microsoft.com/en-us/download/details.aspx?id=30135
    I learned, however, that since I am running Windows 8 which comes with .NET 4.5 built-in to the OS, this tool does not yet cover that version for repair.
    While the overall end-result of my PowerPivot models appear to be just the same, having to click through "Continue" on the error message multiple times each time I enter a new formula is a huge drain on productivity.
    Let me know if you have any additional questions.
    David
    System.InvalidCastException: Return argument has an invalid type.
       at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
       at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Office.Interop.Excel._Application.get_ActiveWorkbook()
       at Microsoft.AnalysisServices.XLHost.Addin.GeminiRibbon.currentClientWindow_InFormulaBarChanged(Object sender, EventArgs e)
       at Microsoft.AnalysisServices.Common.SandboxEditor.formulaBar_Leave(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
    David Duncan Consultant I.B.I.S., Inc.

  • How to get different field in two are more different table using open sql

    Dear all,
              This SenthilMani am very new into sap abap am having doubt in reports how get the different fields from different tables like mara,marc,mard using open sql and native sql program give me some tips to get the data .
    with regards,
    senthil

    HI ,
      1) If u want to select data from more the two table then u can use FOR ALL ENTRIES.
             EX ..Open sql
                       select matnr from mara into table t_mara.
                      select matnr werks from marc into table t_marc for all entries in t_mara where matnr = t_mara-matnr.
      2) U can join more than one table.
               ex:
                   select mara~matnr
                              marc~werks
                    from mara join marc into table t_maramarc
                     on maramatnr = marcmatnr
    3) Using  native sql  ...only u can use JOIN statement

  • How to insert or update comparing values  with two or more table

    Hai All
    I have three or four table in my database.
    Table 1 Dailattend is the main table here i need to insert or update my data and the fieds are
    Emplcode number,attdate date, intime date,intrin date ,introut date, outtime date are the fields
    Table 2 acclempbarcode the fields are
    emplcode number ,barcode number ....etc
    so now my data is in text format and i have broke the date like this
    0011221100112200100320100815
    First 16 is barcode and next 8 is date and 4 is time and i have created a temp table and store the date and move to main table
    My problem is the main table dailattend has no barcode so when i am going to insert or update i need to check whether the barcode is match with the emplcode in the main table
    How can i write insert or update statement
    The data is like this
    00110022 is barcode,10-03-2010 is my date and 0815 is time so i need to insert into dailattend table so now i have emplcode in dailattend table so i need to compare the barcode belong the emplcode in the another table and i need to insert in the dailattend table
    Pls give me some solution with example
    Regards
    Srikkanth.M

    try somthing like this
    create table t1
    as
    select '0011221100112200' barcode,to_date('100320100815','ddmmyyyyhh24mi') dt
    from dual
      create table barcodetbl
      emplcode varchar2(2000)
      barcode varchar2(2000)
      datetime date
    merge into barcodetbl bc
    using( select  * from  t1) x
    on
    (bc.barcode = x.barcode)
    when matched
    then update
    set datetime = x.dt
    when not matched
    then
    insert (emplcode,barcode,datetime)
    values(1,x.barcode,x.dt)
    /didn't realize that barcode is not in the main table.
    something along the lines
    Table 1 Dailattend is the main table here i need to insert or update my data and the fieds are
    Emplcode number,attdate date, intime date,intrin date ,introut date, outtime date are the fields
    Table 2 acclempbarcode the fields are
    emplcode number ,barcode number ....etc
    merge into dailattend bc
    using( select  * from  t1, acclempbarcode ac where t1.barcode = ac.barcode) x
    on
    (bc.emplcode = x.emplcode)
    when matched
    then update
    set datetime = x.dt
    when not matched
    then
    insert (emplcode,datetime)
    values(1,x.dt)
    /Alvinder
    Edited by: alvinder on Mar 23, 2010 3:50 PM

  • Same Place For Two Or More Photos

    Hello,
    I have a photo in iPhoto that was geotagged by my iPhone. However I have lots of photos taken by a regular digital camera at the same location.
    Is there an easy way to pinpoint the location and copy the info to the regular photos?
    Regards,
    Tom

    Yes (instructions for iPhoto 11):
    1     Click on the geotagged photo
    2     Copy (CMD-C)
    3     Click on the photos you wish to geotag
    4     Paste Location (under the Edit menu)
    And there you are.

  • How do you combine two or more different toolbars?

    There is wasted space on multiple toolbars that could be utilized better by moving one tool bar's items up to the empty space above. IE Norton's tool bar has 3 / 4 items on it. The Firefox tool bar above has 3 items on it: Most Visited, Getting Started and Firefox Updated with 2/3's of the bar as empty space.
    Even the menu toolbar has over half of the toolbar as empty wasted space.
    How do you do that? Thanks

    You can (temporarily) hide unneeded toolbars via "View > Toolbars"
    The bar with Most Visited and Getting Started is the Bookmarks Toolbar and if you open "View > Toolbars > Customize" then you can drag the "Bookmarks Toolbar items" item onto another toolbar (e.g. Menu bar) and hide that now empty Bookmarks toolbar.<br />
    Toolbars added by an extension can only be merged onto another toolbar if that extension supports that feature and most extensions do not.

  • Background print of object connected via object services

    SAP's Object Services allows external objects (spreadsheets, Word docs, web sites, ...) to be attached to SAP documents. Some of our invoice documents have a URL attachment. Opening the URL displays a word document which is a statement of the services the vendor provided. We can manually open and print the attachments via the R/3 txn FB03 (document display).
    My main question is:
    - How can we access and print these attachments in a background process?
    Related questions include: 
    - What SAP tables are used by Object Services to store the link information? 
    - Are there Internet Explorer API's that must/can be used? 
    - Is there any SAP documentation that discusses this?
    My investigation efforts have been futile.  Any help would be appreciated.

    Hi David
    Have you managed with this issue yet? I have a similar problem where a SAP report needs be executed, downloaded to an EXCEL spreadsheet and then e-mailed to a Blackberry (PDA) (all in background). The Blackberry can only recognise EXCEL files in native EXCEL format. It does not recognise EXCEL flat files as spreadsheets (even if they are saved as .CSV or .XLS - they are word wrapped like normal text files). Getting the files converted to native format in foreground is manageable, but I haven't managed it in background yet.
    Thanks
    Frederik

  • I have two Buildings i need to connect via wireless

    I have one Building with The Main Internet Connection. It has  1- wireless-G access point (wap54g v3) and 1-wireless-B ethernet bridge (wet11 v2)
    The other Structure i cant run wire  cause of a water hazzard between the buildings. Building two has 1- Wireless-N Broadband Router(wrt300n)
    With These 3 Products what can i do using what i have to connect,   connect building 1 to building 2 via wireless?  Or am i in need of another wireless router of sorts?
    help and documentation would help.  I just was dropped into this and had a day or two to fingure a solution out.
    Thank you

    The Computers which are connected to WRT300N on Building Two are they able to go online throught the Router? Then i would suggest you to get an Ethernet Bridge, As your ethernet bridge is older B series and it wont communicate with your Router properly, Either you can Get a G Series or N Series Ethernet Bridge ( WET54G , WET600N).
    On Building 1 you need to input the wireless settings as you have set on your WRT300N Router. Once  you configure all the settings on your Bridge, then you can connect the Bridge to an switch and then connect your Access Point to the Swtich and configure all the settings on your WAP54G. And this will let all your computers go online Wirelessly and Wired as well. 

  • What is different between connection and session parameters of dispatcher

    I can not find any info about the difference.
    I think "connection" is the connection between a dispatcher and a client, and "session" means the connection between a dispatcher and an instance.
    but I am not sure about it. am I right?
    there is another parameter named pool, it is used for what?
    the pool for connections(i.e. "session") between a dispatcher and an instance?

    I can not find any info about the difference.
    I think "connection" is the connection between a
    dispatcher and a client, and "session" means the
    connection between a dispatcher and an instance.
    but I am not sure about it. am I right?
    there is another parameter named pool, it is used for
    what?
    the pool for connections(i.e. "session") between a
    dispatcher and an instance?Hey
    After authentatication username/password database session starts whereas how user request will be handel it will be defined by conection.Either dedicated or shared Server.If U have not enough resource to handle user request and also you have application that is not using very long runing query then think to use shared server conection and if U have enough resource and very long runing query or transaction think about Dedicated Server.Both are different "SESSION" and connection.Conection determine hove request will be handled either by sharing resources(session memory,run time sql,bind variable) and
    process through (DSPATCHER and SHARED SERVER ) process or every user will have their own dedicated resources or Server process.
    Both in both cases after user/password session get created .it is the conection from client to database.
    regards
    Tinku

  • How do I make my printer more secure while connected via USB to my Airport?

    So a neighbor (a friend, fortunately) accidentally installed my printer on her computer via the network (her computer showed it as a 'Bonjour' printer) and started printing stuff, even though my printer is connected to an encrypted Airport Extreme.
    My printer (an old HP deskjet 5550) is connected via USB to my Airport Extreme, which has a WPA2 secure password protecting it. Also, the "Share this printer" box was unchecked in the printer utility.
    The DSL lines for me and my 20 condo neighbors all convene in the basement somewhere into one or several master routers.
    I'm concerned about this breach of security (obviously) and wondering about security of my iMac as well. The iMac is connected to the base station wirelessly and has the firewall set to 'Set access for specific services and apps'.
    I figured if the Airport Extreme has the WPA2 password set (and no one else knows the password) that no one would be able to gain access to the printer that is wired to it, or the iMac that's wirelessly connected.
    What am I missing? How did this happen? and what can I do to ensure my network isn't visible or vulnerable to my neighbors or others with bad intent?

    are there settings in the airport utility that you can adjust to make it unshareable from the router?
    The "bonjourness" of the access to your printer suggests that your firewall is probably doing its job.
    If your DSL connection is connected to the WAN port on the AE then the folks on the DSL side of your set up should only be able to see things on your LAN that you've set for 'access from the internet'. e.g. allow access to my printer/disk/... from the internet.
    For printers there's an airport utility setting 'share printers over ethernet WAN port' and 'advertise printers globally using bonjour'. How's that set?

Maybe you are looking for

  • Phone stuck at "Plug Into iTunes screen" but it is not frozen.

    I'm using windows 8.1. My iTunes can successfully sync and detect my ipad air but after updating my ipod touch 4th gen this afternoon, it is stuck at the "Plug into iTunes" screen you have when you first get such a device. When I plug it into my comp

  • 2TB TC backup problems

    So, I recently purchased a brand new 2TB time capsule and set it up with time machine.  It works most of the time for my hourly backups.  However, I have to reset my TC sometimes for it to work properly.  Is that normal??  I expect Apple products to

  • 2012 Mac Mini

    Anyone had any experience with the new 2012 version of the Mac Mini running CS5/6 and/or Lightroom 4?  I am considering switching from a Windows 7 system to OS X and the price of the maxed out Mac Mini looks better to me than the 27" IMac.  I have tw

  • HT2534 i want to create an apple id without credit card how?

    i created an apple id but i can not download any thing it tells me to verify the account but i do not have a credit card so when it comes to the payment time i saw it on thhe net that clik on the none button if do not have a credit card but the none

  • Multiple single value for default value?!?

    Hi guys, by making a characteristic value variable how can I add more than one value (not interval) for default value? I cannot even add more value if the char. variable represents multiple single values... Thx.