Multiple users on portlets with individual static info

Hi,
I have created several portlets on a page that takes a user's preference, and then renders the different portlets according to the user's specifications. For example, when a user visit the page, it would ask the user if they prefer the texts to be red or blue, and if they want the font sizes to be 10px or 12px on each portlet. However, if I use static variables in a class to track the user's "preference", and if another user decides to view the same page at the same time, it would result in the page rendering according to the first user's "preference".
Does anyone here have any suggestion on how to store a user's "preference" statically for EACH individual user that visits the same page with different portlets?
I guess I'm trying to accomplish something similar to a shopping cart at an online store: What is the best way to store the items an individual user has put in the basket and not have it mixed up with other visitors to the site?
Any help would be much appreciated.
Thanks!
Edited by: SirAlmon on Jun 20, 2008 5:58 AM

Do you want the information for the user to be there when they come back another day? If not then the user's session will work or a cookie. If the info is desired for extended periods then you have to choose a persistent data store for the information. A database, a properties file on the server (XML is frequently used), or persistent cookies.
Static is the wrong way to go. Static means one value for the entire application. So the last person to set the value will be the one everyone sees.
The session is a great and convenient way to track a user while they are on your site. It is also a easy way to get yourself into trouble. Use it judiciously.

Similar Messages

  • How do i manage multiple users and devices with one apple id without everything showing up on every device?

    how do i manage multiple users and devices with one apple id without everything showing up on every device?

    How to use multiple iPhone, iPad, or iPod devices with one computer

  • Multiple user login problem with ADF

    Hi All,
    I am using Jdev 11g. I have an ADF application which is running inside JDev enbedded WLS. I implemented "Authentication Only" security into the application and created a few users. If I try to login/logout/re-login with individual user, all of users work perfectly. However, when I have one user already logged in, I open another browser and try to login with another user (or the same user), I always get an "Error 403--Forbidden" error. Basically I have an application which can only work for one user at one time. Does anyone know how to fix this problem so that I can have multiple users logged in at the same time?
    Thank you very much in advance,
    John

    Chris,
    Thank you for your response.
    I am using Firefox version 2.0.0.20. When I add the security component into my ADF application, I just take whatever it has by default without any customization. That includes default login.html and error.html. Here is my experience,
    1) Execute my starting task flow activity inside the JDeveloper. This will invoke a new login page in my default browser Firefox.
    2) Login the application with user "abc" and do something. Keep this session open.
    3) Open another Firefox browser and enter login URL. and then Login the application with user "xyz" (or even "abc"). I got the error page.
    To me, it should be basic web application behavior. I can do things like this in other J2EE application. This one doesn't make sense at all. I am not sure if this is the behavior I would see when I deploy it to a standalone WLS.
    Any ideas?
    Thanks,
    John

  • How can I get Firefox to run on a network with multiple users logging on with the same user name and password?

    I am trying to get Firefox running on a large network where I have multiple users that log on with the same user name and password. The problem is that when another user logs on to another computer the message comes up that their is already an instance of firefox running on that computer even though there really isn't. Only one instance can be run on the network at one time. I believe it is because firefox stores a shared profile as it thinks it is actually the same user even though it is being run on another computer. I repeat that each user that logs on uses the same user name and password but on different computers.

    I am trying to get Firefox running on a large network where I have multiple users that log on with the same user name and password. The problem is that when another user logs on to another computer the message comes up that their is already an instance of firefox running on that computer even though there really isn't. Only one instance can be run on the network at one time. I believe it is because firefox stores a shared profile as it thinks it is actually the same user even though it is being run on another computer. I repeat that each user that logs on uses the same user name and password but on different computers.

  • Using multiple laptops and AirTunes with one static IP

    I just moved into a place that requires a static IP they provided me. After much tinkering, I finally got the Airport Express to work so that I could get online using my Powerbook. However, whenever I'm on the internet (Airport set NOT to distribute IP addresses), I can't use AirTunes. The moment I change that (whether it's using Airport Admin Utility or changing Network Settings on the Powerbook) and I am able to get online again, AirTunes quits and iTunes can't seem to find the remote speakers again.
    I can't even use these both at the same time, and I would eventually like to use AirTunes at the same time as the internet AND be able to connect wirelessly to the internet using my PC laptop. Before moving into the apartment with the static IP, this was possible.
    I keep reading about port mapping - perhaps that is the answer? Problem is, I have no idea what that is. Can somebody please explain why this is happening and offer a solution?

    a) WEP WPA password, ive never set one up for the airport, where do i find out what this password is for my PC?
    You will set up wireless security (WEP or WPA) on the AirPort Express Base Station (AX)..using the AirPort Admin Utility, which is part of AirPort for Windows.
    b) Everytime I run the Airport Express Assistant it gives me an error message saying "Windows is not the current network manager...please change Windows to the default", I dont know why I get this error and I assume windows is the one managing the networks I use.
    Your PC has wireless capability...correct? The AirPort Setup Assistant requires a wireless connection to the AX.
    c) I can connect to the airport through windows, but when in the Airport Management Utility it does not detect the Airport
    Connect your PC directly, using an Ethernet cable, to the Ethernet port of the AX, and then run the AirPort Admin Utility to configure it.
    d) After all this, will Windows and iTunes allow you to stream music thru the Airport Express, like it does on my mac with itunes???
    Yes, you will be able to stream iTunes from your PC to the AX, either wired or wirelessly.

  • How do you establish multiple users and accounts with TM?

    I"ve had great success with TM. I have a Macbook Pro and an iMAC which are working well with TM, but recntly bought my wife a Macbook and want to also connect it to TM.
    How do you establish unique logins from each MAC to TM so users only have access to their data? I can setup my new Macbook with TM but it appears to only take the user/password that I have already established; can I have more than one user/password established on TM or do all users have to share the same account?

    How to use multiple iPhone, iPad, or iPod devices with one computer

  • Multiple Users Login ( Help With The Code ) Please.

    Hi all. Please help me...
    I'm using www.wix.com to create my websites.
    but since Wix.com don't able us to have member system conecet to database, i use Flash SWF As3 files...
    Please can anyone help me with the Code?
    Username=1    /Password= 1    /Url= www.1.com
    Username=2    /Password= 2    /Url= www.2.com
    Username=2    /Password= 2    /Url= www.2.com
    *If user name 1 or 2 or 3 correct. Show massage ex: Welcome back, if not correct " Bad login"
    *When login, it will open the url but in new page after the old one closed.
    + There is anyway to add " Password recovaring box too"?
    but not connected to datdabase as i said?
    Please help me, please! i areadly have code but it don't work for more than one user.
    Thank u soooo much!!
    Loai

    Here's the code i have already,,
    but i don't know how to add more than one user + when login it open new window ( popup ) i want it to open in the same window...
    Please help.
    stop();
    //hide the password
    //pass_txt.displayAsPassword = true;
    //adding event listener to the login button
    login_mc.addEventListener(MouseEvent.CLICK, loginUser);
    function loginUser(e:MouseEvent):void{
    //if both username and password are correct let the user logged in
    if(name_txt.text == "1" && pass_txt.text == "1"){
    navigateToURL( new URLRequest( "http://www.wix.com/designersgroup/tutorials/9-1" ), "_blank" );
    display_txt.text = "Going to secure area";
    else if(name_txt.text != "1" && pass_txt.text != "1"){
    display_txt.text = "Login failed!";
    if(name_txt.text == "2" && pass_txt.text == "2"){
    navigateToURL( new URLRequest( "http://www.wix.com/designersgroup/tutorials/9-2" ), "_blank" );
    display_txt.text = "Going to secure area";
    else if(name_txt.text != "2" && pass_txt.text != "2"){
    display_txt.text = "Login failed!";

  • IMac with multiple user accounts "cannot associate apple id for ....."

    I have an iMac with multiple user accounts each with an Apple ID and individual iTunes library and Itunes match linking to iPhones iPads etc.
    I bought songs on my iPhone yesterday, on trying to listen to them on the iMac (my user account) this morning I get the "cannot associacte Apple ID for another 31 day" meassage.
    Is there any way round this? or is the answer only purchase via iTunes on the iMac in the individual account. Why do Apple do this?

    http://support.apple.com/kb/ht4627
    I'm guessing it's for piracy reasons.

  • WebStart Single Install for multiple users

    Has anyone figured out how to solve the problem of having to install the software for multiple users now?
    With recent versions of the Sun WebStart, the cache directory has changed to the user's personal directory.
    It used to be that the cache directory was a common shared directory off the C: drive.
    For the software we have developed, it was great to install once as the admin, download the files so that they are cached, and then copy the links to the all users desktop which pointed at that shared location.
    Now there appears to be no way to do this. We've looked to find the default cache location to change it, but there is no way to specify this (that we've found).
    I know I can change each user's cache directory to point to a common location, but it means signing on as each user and making this change manually which takes a considerable more time than it did before. Java WebStart was the EASY way to install the software before (and did not require a browser). Now it is harder than just using a browser with the plugin. We'd like to get the browser out of the picture though still.
    I can see how this feature could benifit individual users who only want their own programs to show up , but we really need to make it work like before for ease of use. With the number of users we are dealing with, it would be very difficult to tell them to click on a link to install the program but only do that the first time, then start using the new link that is created by the program.
    Any suggestions from anyone?

    Sorry, I just realized this is in the wrong forum.
    I'll go post it in a more correct forum instead.

  • Multiple User Confusion

    I've never set up a computer for multiple users until now with new new (to me) Powerbook and I must have done something wrong. When I log in under my user name "Brent", when the desktop appears the "home" icon is labeled "administrator" and within the administrator folder there are only the Desktop and Library folders. My "Brent" folder, with all the apps, docs, settings, etc. seems to be just another user.
    I think my troubles started when I noticed that in the Sharing Prefs the Computer Name was showing as "Administrator's iMac" so I decided to change it. I may have done another thing or two that contributed to my current state, but all I want to do is to get things back to normal with minimum destruction. Hopefully despite my poor recollection of events someone can help.
    Thanks.
    P.S. The account labeled "administrator" does not show up in the Accounts window.
    Message was edited by: Brent Emerson

    Update:
    Following the instructions in http://docs.info.apple.com/article.html?artnum=107854 I managed to get things back to normal. Now I'd like to figure out how to do change my Short Name from administrator without re-creating havoc. Is that possible? The short name textbox is disabled in the Accounts window.

  • Using Lightroom in a multiple user instance

    I am hoping someone can point me in the right direction. I currently work at a high school and create the schools yearbook. I would like to start to manage my photos using Lightroom. I have 5 licenses and would like to hear suggestions about how to best teach my students proper techniques in managing and organizing their folders. Ultimately I would like for students to be able to add images to one common library and have the images show up across multiple computers. I am under e impression that this is not possible, as the catalog contains all of the image data (retouch info, tags etc). I am hoping that there is a way though.

    LR uses a single-user database. There is no way multiple users can work with the same catalog, at least not at the same time. It's also not possible to have the Catalog on a network drive. Catalogs need to be on local drives.

  • Multiple user creation in R12 and migration of users

    I would like to know how we can automate a process of user creation in R12, or is there a way to create multiple users in Ebiz with respective responsibilities.
    Second case is, migration of users from one instance to another. The problem out here is selective users not all?
    Regards

    Pl search the forums for FND_USER package - you will find several hits that show how this package can be used in a programmatic fashion to bulk create new users and assign responsibilities. Examples are also available on My Oracle Support.
    To migrate user, use FNDLOAD. See this doc - you will also find hits in these forums if you search.
    376469.1 - Can FNDLOAD Migrate User Accounts Without Forcing Users To Change Their Passwords?
    HTH
    Srini

  • Documents edited by multiple users reverting changes to previous versions

    Hi All,
    I've got a problem where multiple users are working with the same network-stored file (but not simultaneously) wherein one makes edits and saves their changes. Later, that same file does not reflect the changes--it has reverted to some prior version of the
    file. Sometimes the changes are a day old, sometimes they're a few days old. I have no idea why this is happening or how to troubleshoot the problem. Anyone?
    (Note: It doesn't happen to every file, and it doesn't happen every time.)

    Hi,
    Based on your description, did you mean that this issue occurred when you edit a Document in a SharePoint Document
    Library? Or just edit files which store in a shared location?
    Just files stored in a shared location.
    à
    I've got a problem where multiple users are working with the same network-stored file (but not simultaneously) wherein one makes edits and saves their changes.
    Would you please let me confirm whether get any error message when you edit and save changes in that file?
    Meanwhile, please check if same issue occurred when just use one administrator account (no other account) to edit and save this
    network-stored file.
    There are no error messages. The file saves normally and silently. I will test with a sole admin account
    today and report back.
    In addition, would you please let me know the file type? Were all .txt files or .docx files? Please check if
    this issue still occurred in other file types.
    They are docx files only (so far--that's all we've noticed).
    By the way, would you please let us know more details of the server environment where this issue occurred?
    It's a SBS2011 Essentials server. The files are stored on a shared drive accessible to a couple different
    user groups. What else would you like to know?
    If anything I misunderstand or any update, please don’t hesitate to let us know.
    Hope this helps.
    Best regards,
    Justin Gu

  • HT1206 Lots of info about one user using multiple computers. What about multiple users with separate Apple IDs using same computer? Having problems getting my wifes new iPhone talking to her apple account on the computer we share (2 users)

    Lots of info about one user using multiple computers. What about multiple users with separate Apple IDs using same computer? Having problems getting my wifes new iPhone talking to her apple account on the computer we share (2 users)

    You need to create a user account for your wife (or yourself depending on who has the current user account). When syncing, each of you should sign in as a separate user, login to iTunes and then sync. I had this problem when my sister got an iPhone. When we did her initial sync, everything on my iPhone showed up on hers. Apple gave me this solution.

  • Multiple ultrasearch portlets with unique datasources

    Hi All,
    I need to know,Is it possible to create multiple ultrasearch portlets with unique datasources?If yes,steps we need to follow for the same would really be helpful.
    Regards,
    Milind

    The Ultra Search portlet is a JSP application deployed in it's own
    individual .ear file on Oc4J. It connects to an Ultra Search database, and
    specifically to a schema that hosts the Ultra Search instance. Connectivity
    is configured via the data-sources.xml file, which is located in
    $ORACLE_HOME/j2ee/OC4J_Portal/config/data-sources.xml
    If you want to run two Ultra Search portlet instances, You'll have to
    perform the following. (Note, I'm describing manual steps. If you use
    Enterprise Manager, some of these steps may be automatically done for you):
    (1) Create a .ear file containing the Ultra Search Portlet, along with
    modifications you have performed to it if any.
    (2) Edit $ORACLE_HOME/j2ee/OC4J_Portal/config/server.xml, creating a new
    <application> entry referencing the .ear file in (1).
    (3) Edit $ORACLE_HOME/j2ee/OC4J_Portal/config/default-web-site.xml, defining
    a new <web-app> for the application you've created in (2).
    By now, you should see that OC4J has expanded the ear file you created in
    (1) into a directory structure. If this has not occurrred, bounce Oc4J. If
    that doesn't help, you might have made a mistake in one of the steps in (1),
    (2) or (3) and will have to examine the Oc4J log files to determine exactly
    what went wrong.
    (4) Edit $ORACLE_HOME/j2ee/OC4J_Portal/config/data-sources.xml, adding a new
    <data-source> section defining connectivity to the second Ultra Search
    instance you want your second portlet to connect to.
    For example, if the original data-sources.xml file contained the following
    entry:
    <data-source
    class="oracle.jdbc.pool.OracleDataSource"
    name="UltraSearchDS"
    location="jdbc/UltraSearchPooledDS"
    username="user1"
    password="password1"
    url="jdbc:oracle:thin:@host1.us.oracle.com:1521:sid1"
    connectionCachingEnabled="false" />
    You'll now have to add a second <data-source> element as follows:
    <data-source
    class="oracle.jdbc.pool.OracleDataSource"
    name="UltraSearchDS_2"
    location="jdbc/UltraSearchPooledDS_2"
    username="user2"
    password="password2"
    url="jdbc:oracle:thin:@host2.us.oracle.com:1521:sid2"
    connectionCachingEnabled="false" />
    (5) Edit the data source reference in the second portlet.
    The location attribute is used by the Ultra Search portlet to lookup the
    connectivity info. Hence, you must edit your second portlet's
    common_customize_instance.jsp file to use the correct key. To do this,
    locate the file common_customize_instance.jsp. If your .ear file was
    expanded into directory $SECOND_EAR_FILE_DIR, then look for
    $SECOND_EAR_FILE_DIR/query/common_customize_instance.jsp.
    Edit this file and change the file that reads:
    String m_datasource_name = "jdbc/UltraSearchPooledDS";
    to :
    String m_datasource_name = "jdbc/UltraSearchPooledDS_2"; (or use whatever
    key you entered in in your new <data-source> tag.
    (6) Touch the search.jsp file to force recompilation.
    When you save the common_customize_instance.jsp file edited in (5), OC4J
    should automatically re-compile the Ultra Search portlet code.
    common_customize_instance.jsp is included by the main JSP (search.jsp).
    However, if this does not happen, you may need to "touch"
    $SECOND_EAR_FILE_DIR/query/portlet/search.jsp. Updating the timestamp of
    this file tricks Oc4J into recompiling it.

Maybe you are looking for

  • How to resize a photo from CameraUI?

    Hi there, i really need som help here. I cant seem understand how to resize an still image taken with the camera. Here are the code so far(also with the upload part). I just need a thumbnail to be uploaded to the server, not the HQ-image. Any ideas?

  • ATI HDMI Audio not working. (Radeon HD 4850)

    Hey, I followed the directions on the wiki here and I still get no sound. I loaded up alsamixer to unmute the sound output (alsamixer -c1) and the only thing I have is "IEC958" (which I unmuted). I added the "Audio" and "HDMI" lines to my xorg.conf f

  • Updating to 7.10 disabled viewing pdf in browser

    updating to 7.10 disabled viewing pdf in web browser which is working normally in 7.09 no matter settings in preference, internet, are all marked to view pdf in browser and allow fast web view etc, every pdf links are opened in a new acrobat window w

  • Production State in SWCV SLD WAS 7.0

    Hello, We've just installed PI 7.0 with the new look and feel of the SLD and the Software catalog: SAP_CR, Version 2.9, 06/21/2006. New are the software units -> minor info is given in the documentation. And when creating SWCV in a drop down box the

  • Anybody Know of a Expanded Warp Add-in/Plugin?

    I would like to find an addin that does exactly what the Warp transform does, except it provides many more handles. The current plugin provides only 2 handles (4 if you count the corners). Ideally I would like to be able to define the number of handl