How to decide when to keep backing bean in request and session.Pros/cons

How to decide when to keep backing bean in request and session.Pros/cons

Depends on where the bean data must be available. Start with request scope. If you need the data in session scope, then think twice about impacts (memory usage, multiple browser tabs, etc) unless the data is obviously targeted on the session scope (loggedin user, user settings, dropdown data, etc).

Similar Messages

  • How to install when I keep getting the following massage  on windows 7 64 bit with or with firewall on and vwith or with virus protection on  here is post  This installation package could net be opened verify that the package exist and that you can access

    how to install when I keep getting the following massage  on windows 7 64 bit with or with firewall on and with or with virus protection on  here is post           " This installation package could net be opened verify that the package exist and that you can access"  same when trying to install quicktime

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/quicktime/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • I bought a book on itunes on my pc. I want the book on my ipad.  When I plugged in my ipad to sync it moved all my apps to my pc - useless. how do i get my apps back on my ipad and get the book from my computer to my ipad?

    I bought a book on itunes on my pc. I want the book on my ipad.  When I plugged in my ipad to sync it moved all my apps to my pc - useless. how do i get my apps back on my ipad and get the book from my computer to my ipad?

    Instructions on syncing your iPad can be found here:
    http://support.apple.com/kb/PH12311
    and in the accompanying documents linked from that page. Syncing your iPad with iTunes copies items, it doesn't move them. The only way apps would be actually removed from your iPad during syncing is if you had iTunes set to remove them on syncing, so check the appropriate settings in iTunes, set the book to sync as well, and then sync the iPad again.
    Regards.

  • Ok I can't seem to get my apps,music, or photos from my iCloud from when I first setup iCloud on a iPhone 4. How do I get my things back from the iCloud and get them to my new device?

    Ok I can't seem to get my apps,music, or photos from my iCloud from when I first setup iCloud on a iPhone 4. How do I get my things back from the iCloud and get them to my new device?

    If you no longer have the phone or have any Backup of it at all, you can re-download your apps and your content from the iTunes Store by logging into your Apple ID at settings> iTunes & App Store. Unfortunately you can no longer recover the data that was associated with those apps.
    So far as your photos go, you can recover any photos that were in photo stream and taken less than 30 days ago by logging in with your Apple ID to settings> iCloud> photos. Unfortunately you will be unable to recover any photos from your camera roll.

  • Need example of backing bean for selectBooleanCheckbox and dataTable

    Does anyone have an example backing bean for selectBooleanCheckbox and dataTable combination?
    I am trying to figure out how to create a dataTable with one column of checkboxes, when the checkboxes are selected, need to get a collection of all records that were selected.
    Also need to identify one of the columns in the records that were selected and send it to the EJB services to do update.
    columns in dataTable are userid and name. Both are string values.

    What is the difference between myDataItem, myDataItems and myDataList in MyBean.java?
    Where did myDataItem and myDataList come from? It isn't declared or initialized in MyBean.java

  • When in sleep mode iPhone 4 loses signal but when it's back on it searches and finds signal. Was 5.0.1. update to 5.1 but no changes

    When in sleep mode iPhone 4 loses signal but when it's back on it searches and finds signal. iOS was 5.0.1, update to 5.1 but no changes.
    Battery problem, anntena or motherboard? pleas help.

    it could be a motherboard problem. Last month I spilled liquid on to my iphone and since I didn't have warranty for it I had to take it to a "phone doctor". He fixed it but mentioned that motherboard is working fine but he can not say for sure for how long it will last, and that I may experience some wierd problems. I'm having this exact problem the day I got my iphone back.
    Well no longer but the solution still seems wierd. I turned on the "location services" because I saw in the "system services" screen that "cell network search" was turned on. I figured if I don't screw with location services, it would be okay. So, after three hours, I terminated the sleep in 10-20-30 minutes and 1 hour intervals, it seems I no longer have the problem but I'm going to sleep over it to be sure. Also make sure to turn on the "auto" option on the "carrier" menu.
    I will post the outcome if I don't forget about this page.

  • I keep getting the spinning wheel, and macbook pro seems to be slowing down.  How do i fix this without buying software?

    I keep getting the spinning wheel, and macbook pro seems to be slowing down.  How do i fix this without buying software?

    Go to system profiler and report back the amount of RAM that you have.
    Make sure that you have at least 20% of your hard drive free.
    Make sure you don't have a lot of items on your desktop as that can slow things down.
    Quit applications that aren't responding or you aren't using and won't be using for a while.
    ~/Library/Caches Quit all applications and delete this folder. Do a regular delete then do a secure erase on all the items that won't delete.
    If it only happens with a certain application (Safari for example)...
    1. Quit the application (Safari)
    2. Open ~/Library/Preferences and find the file for safari (com.apple.Safari.plist).
    3. Put the file in the trash. Do NOT empty the trash yet. Open the application and make sure everything's ok. Now you can delete the file. In Mail if you trash the file, you will get rid or your setup.
    Make sure that your dashboard doesn't have too many widgets and use Activity Monitor to see what it's using.
         There are ways to disable if you want to.
    Make sure that all of your software is up to date.
    Repair permissions (it can't hurt)
    Don't have a lot of login items.
    Your internet browser shouldn't have a lot of extensions.
    I hope this helps
    Chris

  • I was playing my iPad 2 I left the room for 5 minutes when I came back it was off and now it won't turn back on

    I was playing my iPad 2 I left the room for 5 minutes when I came back it was off and now it won't turn back on

    Try this.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • I want to transfer my photos to my computer so i can restart my gallery on my phone. How do i transfer my photos back to my phone and be able to delete them whenever would like to ?

    I want to transfer my photos to my computer so i can restart my gallery on my phone. How do i transfer my photos back to my phone and be able to delete them whenever i would like to ?

    You should regularly copy photos from iPhone to computer and delete them from the Camera Roll on the iPhone.
    -> http://support.apple.com/kb/HT4083
    You can then sync the photos you want back to the iPhone using iTunes.
    -> http://support.apple.com/kb/HT4236

  • HT1414 If I lose my iphone, how do I retrieve the info backed up on itunes and apply it to a new phone?

    If I lose my iphone, how do I retrieve the info backed up on itunes and apply it to a new phone?

    Restore the new phone from the backup of the old phone. See:
    iOS: How to back up
    Also, as applicable,
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • How is it best to keep files synced between iMac and Macbook?  I work from home on my iMac and then out in meetings on my Macbook and need to have access to the same files on both.

    How is it best to keep files synced between iMac and Macbook?  I work from home on my iMac and then out in meetings on my Macbook and need to have access to the same files on both.  The folders are using Microsoft programmes as this is compatiable with 90% of my colleagues, therefore I can't use the Icloud service.

    No, the camera connection kit only supports the copying of photos and videos to the Photos app, it doesn't support copying content off the iPad. For your second camera instead of the SD reader part of the kit, does the iPad to camera cable not work with it for direct transfer to the iPad ?
    For Lightroom and Nikon software again no - you can only install apps that are available in the iTunes app store on your computer and the App Store app on the iPad, 'normal' PC and Mac (OS X) software are not compatible with the iPad (iOS). There are some apps that perform fairly basic editing functions that are available in the store, but nothing as sophisticated as, for example, Lightroom.

  • I hate the new Apple Map.  The directions are confusing.  How do I get google maps back on my iPad and iPhone?

    I hate the New Apple Map.  The directions are confusing and do not continue by pressing 'next.'  How do I get Google Maps back to my iPad and iPhone?  Thank you.

    Start Safari
    Enter the URL:  http://maps.google.com/#bmb=1
    tap "Go"
    Now that you have Google Maps up on Safari, tap the bottom center icon (box with arrow pointing to the right).
    Select "Add to Home Screen".
    You will now have a Google Maps icon on your iPhone/iPad/iPod Touch that will take you to Google maps.
    There are other map services available.  MapQuest, Waze, NavFree, OffMaps, etc...

  • How to track PropertyChangeEvent for the backing beans?

    Hello
    I'm working on JSF 1.2 + JDK 1.6. Would like to know wether any direct support for tacking the PropertyChangeEvent for the backing bean. Objective is to keep track of the modified entities ( backing bean) and update the corresponding Database records at later stage with the modified attribute/record.
    E.g:
    Assume a datatable is populated with list, and 3 rows alone is modified, So the DB update is supposed to happen only for those rows. I prefer to have the PropertyChange tracking logic in one place. Dont want to add PropertyChangeListener for all backing beans.
    Can anybody help me on this.
    Thanks in advance
    Jobinesh
    Edited by: JobineshP on Jun 20, 2008 6:52 AM

    This is no direct support in JSF for PropertyChangeEvents.
    As for other solutions to your problem, first looking specifically at the database updates, Hibernate tracks modifications to fields and can be configured to only update the needed columns (see the dynamic-update attribute). So perhaps Hibernate can suit your needs or you could use their techniques to solve your problem.
    Taking a wider view of the general problem of adding PropertyChangeListeners to managed beans, I would be inclined to use Spring and AOP to add the PropertyChangeEvents to all the setters. Spring might also help the configuration of the PropertyChangeListeners. Although I have to say that I think that PropertyChangeEvents are of limited use in a web application.
    Another approach might be to hook into the JSF EL expression engine. You could add a special ELResolver whose purpose is to discover when the property changes happen. The drawback is that all the setting must be done via the EL in order for this to work.

  • H:inputText ; How To initialize value Property from back/bean method?

    Hello Guys at Sun Forums.
    I am a newbie at using JSF. and I'm having a bit of a Problem.
    I don't know how to initialize the value property of a h:inputText from a method inside a backing bean that returns a String data type.
    My Method inside the Backing bean is this:
    public String getLastDate()
            Connection con = null;
            Statement stmt = null;
            ResultSet rs = null;
            Date DateCapt = null;
            String DateConv= null;
            try{
                Class.forName("com.sybase.jdbc2.jdbc.SybDrive").newInstance();
                con = DriverManager.getConnection("jdbc:sybase:Tds:localhost/BAN_PRO_SNP", "xxxx", "xxxx");
                if(!con.isClosed()){
                    stmt = con.createStatement();
                    stmt.executeQuery ("SELECT TOP 1 CONVERT(VARCHAR(10), fec_parametro, 103) fec_parametro FROM snp_sei_parametros" +
                    "     WHERE cod_parametro = 'FECHA'" +
                    "     ORDER BY fec_parametro DESC");
                    rs = stmt.getResultSet();
                    while (rs.next())
                                DateCapt = rs.getDate("fec_parametro");
                rs.close();  
                stmt.close(); 
            catch (Exception ex)
                        System.out.println("COULD NOT LOAD THE DRIVER!!!!");
                        System.out.println(ex);
                    DateConv = String.valueOf(DateCapt).toString();
        return DateConv;
    }As you can see the Method returns a String data type, and all I want to know is how put that returned String as the initial value of a h:inputText. when the jsf-jsp page loads.
    Please Help Me.

    You should be able to do
       <h:inputText value="#{bean.lastDate}"/>Where 'bean' is the managed bean name containing
    the method getLastDate().
    When the view is rendered, the getter (getLastDate())
    will be called to display whatever value is returned.

  • How to handle exception on a backing bean constructor ?

    Hello,
    I would like to handle the exceptions throw on the constructor of a backing bean, and redirect the user to a "service not available" page.
    When I use "request.sendRedirect()" method to redirect the user to such page, I logically got an "IllegalStateException: Cannot forward a response that is already committed".
    Do you have any idea how can I redirect or forward a user to a page when the response is already commited? Is it possible to use servlet filter and do a forward after the doFilter()?
    Thank you.

    Just throw the exception and map an error page in the web.xml.
    <error-page>
        <exception-type>java.lang.Exception</exception-type>
        <location>error.jsp</location>
    </error-page>

Maybe you are looking for

  • Switch between transient and persistent objects?

    Hi Folks, I'm Re: transient object to persistent to ask this type of question, but couldn't find an answer. Using persistent classes, does anyone know an elegant way to convert a transient object to a persistent one and vice versa? There is no standa

  • Finding problem in uninstalling Oracle 10g

    Hi Everyone, I installed Oracle 10g Server Database successfully on Windows Vista in my lapy. now i was tryin to uninstall it , i deleted all the keys containing oracle fro mthe registry as well i have deleted the folder ORACLE from the C drive , but

  • Time remaining for a query

    Hi, I want to find the estimated time remaining for the SQL that is running, when I try to query from v$sesion_longops, it is not returning anything even though i see the session running in v$session. Why am not getting any output from v$session_long

  • Can we check the Objects modifiable " option for standard objects

    Dear Friends              In IR , we have imported SRM SERVER->SRM SERVER5.5 Then we  have checked the option<u><b> "Objects are modifiable"</b></u> then we imported the IDOC from R/3 system under SRM SERVER 5.5 swcv. Then created the mapping.It is w

  • Automatic Time Card Generation not generating Time Card

    Hi, I am running the program 'Automatic Time Card Generation'. The log file showing the message 'The process did not generate any timecards for the Payroll, Payroll Period selected'. And there is no time card for the given Payroll month. Any suggesti