JDeveloper gets slow with a lot of managed beans declared in faces-config

Hello,
I have an application with a lot of managed-beans (in fact, hundreds of backing beans). When I open the visual designer, it takes a long time to render the page, and after it gets very slow. Even the source view gets slow. When I remove some parts of these managed beans, JDeveloper back to normality.
The problem is that the JDeveloper is so slow that I just can not do anything in JSPs.
Anyone have any idea?
I am very grateful for any help.
Thanks.
Edited by: gutogarcia on 22/01/2010 09:33

ThDn,
You can avoid adding unnecessary getters and setters of UI components in backing bean by selecting the option "Do not automatically expose UI Components in a Managed Bean" option when creating the Page.
The nice thing is that in JDev 11g and in latest version of JDev 10g this option is selected by default when creating new pages.
However in older JDev 10g versions the default was "Expose UI Components to a Managed Bean" so if developer did not change it during page creation it is possible that there would have been lots of unnecessary getters and setters in the backing bean.
Luiz,
As you say that this was fine in TP4 it could be that in newer JDev version there might have been added some new feature that caused this slowness.
When you remove unnecessary getters/setters from you backing beans, you will have to modify the JSPs and remove the bindings from the UI components as well.
Thanks
Mitesh

Similar Messages

  • The Managed Bean in the faces-config.xml File

    I am still very new to JSF. I am confused about the managed bean.
    For example, I have a button in my web page. A click on this button invokes an action; say, ListAction.java.
    In this ListAction class, I instantiate a business delegate; say, ListPersonnel.java and call a method in this business delegate to return an ArrayList: personnel. Of course, this business delegate goes through facade, DAO, etc. to populate the ArrayList. This ArrayList is a collecation of a JavaBean called PersonnelBean that gets and sets a number of personnel information; such as ssn, name, etc.
    Upon this ArrayList is successfully populated and received by the ListAction class, I am going to display a web page with a table. In JSF, it is <h:dataTable ...>.
    My questions are regarding the managed bean in the faces-config.xml file.
    1. Which one is my <managed-bean-class>? packageName.ListAction? or packageName.PersonnelBean? or something else?
    2. What should be my <managed-bean-name>? I guess that I can give a name I like. Is it right? What about xyz?
    3. Then, how do I specify the "value" attribute of my <h:dataTable ...> tag when I display a web page to show the data table? Is it correct to specify value="#{xyz.personnel}"? What is the correct specification if it is wrong?
    4. I guess that I can give any name to the "var" attribute in the <h:dataTable ...> tag. Is it right?

    1. Which one is my <managed-bean-class>?
    packageName.ListAction? or
    packageName.PersonnelBean? or something else?ListAction
    2. What should be my <managed-bean-name>? I guess
    that I can give a name I like. Is it right? What
    about xyz?Anything you like. xyz is OK.
    3. Then, how do I specify the "value" attribute of my
    <h:dataTable ...> tag when I display a web page to
    show the data table? Is it correct to specify
    value="#{xyz.personnel}"? What is the correct
    specification if it is wrong?xyz.personnel is OK assuming that ListAction class has a public
    method getPersonnel() which returns the ArrayList of PersonnellBeans.
    4. I guess that I can give any name to the "var"
    attribute in the <h:dataTable ...> tag. Is it right?Yes, you can give any name you like.

  • Manage Bean Scope in Faces Config

    Hi,
    I would like to know if its possible to bind the bean at request level if the bean data involves multiple modifications. Currently I am facing a problem with respect to manage bean scope defination. If i keep the bean scope at request level the bean data is not availabe for modification in next request as a result I need to keep the bean at session level causing heavy loading of session object.
    Can any one advice how to keep bean scope at requesat level and still the data is available for modification.
    Regrds

    Hey ! this is exactly my problem!! :)
    http://forum.java.sun.com/thread.jspa?threadID=611607&tstart=0

  • Why is Oracle Response time getting slow with time.

    Hi,
         I have DB which was very fast initially with the response time for one of the query < 5 sec.
         I have been using the DB for the last 15 days. Now the same query is taking 10 minutes. In the DB there are lot of operations of additions and deletions been done on the table where the query is being made. The no. of records in the table is constant at around 3 million records from the first day.
         If I import the DB into a new setup then again the response time becomes very good in the new setup.
         What should be the problem of the DB getting slow with the time.
    Thanks,
    Tuhin

    It all depends on several factors.
    Are your tables,indexes have upto-date statistics?
    I have DB which was very fast initially with the response time for one of the query < 5 sec. Initially there might be small amount of data later data might have increased,you dont have proper indexes.
    It could be that your indexes got fragmented to due to heavey deletes? It might need reorg.
    My suggestion would to look into your execution plan of the quries and see where your kernals are waiting.
    As other suggested you, use explain plan, event 10046 and tkprof.
    Jaffar

  • Firefox gets slower with every upgrade & now crashes every time I open a PDF, made worse when opening the next time, by reopening the PDF & crashing again

    Firefox gets slower with every upgrade & now crashes every time I open a PDF, made worse when opening the next time, by reopening the PDF & crashing again

    If you have submitted crash reports then please post the IDs of one or more crash reports that have this format:
    *bp-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    *You can open the <b>about:crashes</b> page via the location bar, like you open a website.
    See:
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter
    *https://support.mozilla.org/kb/Mozilla+Crash+Reporter

  • Does the iPad get slower with time?

    i have an iPad 4 for over a year. Does the iPad get slower with the passage of time or because of small amount of available?

    As with any piece of electronics, the more stuff you get on there, the more clutter and the more 'junk' (not meaning offensively, just junk as extra files, fragmented files, etc) that it has to run through.
    If you think it's getting too slow, you can fully back it up, then reset your iPad back to factory settings (erase all content and settings) and then restore from that backup.
    It's not impossible, just something to do carefully because if you haven't backed everything up correctly, you will lose it. (content and apps from iTunes can always be redownloaded but content made on your iPad can be deleted if not backed up)
    I've had my iPad 2 for almost three years now and really haven't noticed a major decline in function. So unless you see something drastic, I really wouldn't worry about it.

  • Getting operation bindings in constructor of managed bean

    Hi,
    Jdeveloper version - 11.1.1.5.0
    I have a request scoped managed bean
    public class getOperationBindingBean {
        private RichCommandButton button;
        public getOperationBindingBean() {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("getViewProperty");
            Object result = operationBinding.execute();//17th line
        public BindingContainer getBindings() {
            return BindingContext.getCurrent().getCurrentBindingsEntry();
        public void setButton(RichCommandButton button) {
            this.button = button;
        public RichCommandButton getButton() {
            return button;
        public void onButtonClick(ActionEvent actionEvent) {
    }and a page getOperationBinding.jspx.
    <f:view>
        <af:document id="d1">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:commandButton text="Button" id="cb1"
                              binding="#{getOperationBindingBean.button}"
                              actionListener="#{getOperationBindingBean.onButtonClick}"/>
          </af:form>
        </af:document>
    </f:view>getViewProperty is a methodAction defined for getOperationBinding.jspx.
    When I run application the page is loaded succesfully, but when you press the button on the page I get an error:
    oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class "getOperationBindingBean"
         at oracle.adfinternal.controller.util.Utils.createAndLogFacesException(Utils.java:184)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NullPointerException
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
         at getOperationBindingBean.(getOperationBindingBean.java:17)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at oracle.adfinternal.controller.beans.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:187)
         ... 52 moreIf you remove the binding property from commandButton, the pressing on the button doesn't cause any error.
    I need call getTableProperty() method in constructor, because this method returns from database the properties of table that I want to build in the page, and I also need have a binding property for command button.
    So the question is can I get operation bindings in constructor of managed bean in this situation?
    Evgeny

    Calling the method in the constructor is not a good idea.
    check https://blogs.oracle.com/adf/entry/an_epic_question_how_to

  • Get the current value of a managed bean.

    Hi guys
    I have a register page which takes the Login ID and the password and retype password whose values are stored in the "Managed Beans" in registerServer.java.
    I have a (PwdValidator.java) Custom validator for Re-type Password which validates itself against the password.
    Now my problem is from the PwdValidator.java how can I access the value of the password which is stored in the managed bean in registerServer.java.
    here is a copy of my faces-config.xml
         <managed-bean>
              <managed-bean-name>registerServer</managed-bean-name>
              <managed-bean-class>com.sun.registerServer</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
    Help is really appreciated,
    Thanks,
    Chaprasi Baba

    Thanks for the reply but my question is how do I get
    the password value from the managed bean
    FacesContext context =
    FacesContext.getCurrentInstance();
    Application application = context.getApplication();
    CountryValueObject registerServer =
    (CountryValueObject)application.getVariableResolver().r
    solveVariable(context, "registerServer");
    String pwd = registerServer.password // So will this
    give me the current value for that session.You didn't go far enough in replacing the example code . Try this:
    FacesContext context = FacesContext.getCurrentInstance();
    Application application = context.getApplication();
    RegisterServer registerServer = (RegisterServer)application.getVariableResolver().resolveVariable(context, "registerServer");
    String pwd = registerServer.password // So will this give me the current value for that session.

  • Managed bean in both adfc-config.xml and faces-config.xml file

    hi,
    i can see that it's possible to declare managed bean in both adfc-config.xml and faces-config.xml file.
    is there any difference? which one is recommended?
    read here - http://www.jaypillai.com/tag/adf/
    but still not clear.
    thanks.

    Hi.
    As you know ADF is a framework based on JSF.
    In faces-config.xml you define general application manage beans. It offers you define manage beans for all application using JSF default scopes (application, session, request).
    In adfc-config.xml you define general application manage beans using ADF Scopes. It means that you can use JSF default ones including "view, pageFlow and backing".
    My recommendation is use only one point entry for your general manage beans. Use adfc-config.xml because allow you to use more scopes.
    Regards.

  • Imac gets slower with iphoto

    Hello,
    I own a imac g5 1.8 with 1gyg of ram. and im starting ti have around 8000 pictures...and my iphoto is getting slower.... (iphoto library is on a externat hd)
    Besside adding new memory is there a way to either
    a. get faster result from iphoto
    b. build more then one library that i can open when i need it insetad of opening all of them?
    Thanks

    Hi Mysteriousmind,
    I have a 3,000 image library at 3 gigs in size.
    I use a Canon camera which does not make larger Makernotes in the EXIF data.
    If you want to find out more about the large Makernote problem that slows iPhoto down to a crawl, visit this thread
    http://discussions.info.apple.com/webx?[email protected]@.68b4c129
    Apple Macintosh iPhoto 5 slowness
    If you do have one of the cameras that have large Makernote files you may want to try (iPhoto) Exif Cleaner
    -Will more memory help speed iPhoto up? It sure will and many have noted that it has.
    -There are steps you can take to speed up scrolling in the iPhoto Library.
       do not use shadows
       do not use outlines
       use white for background
       view by rolls and keep the rolls closed
       when viewing images keep them around 5 or less across in the rows
       choose not to "show photo count for albums"
    If you have thousands of images it is also advisable to make multiple libraries. Smaller libraries will load and work faster. Use the Option key when launching iPhoto to create and switch between libraries.
    You can also use iPhoto Library Manager or iPhoto Buddy to manage your libraries.
    iPhoto Library Manager
    iPhoto Library Manager documentation
    this page will show you everything you can do with iPhoto Library Manager.
    You can also try iPhoto Buddy
    You should have a t 15% free space on your hard drive. Things get slow after that.
    Lori

  • URxvt getting slower with use - is it xft or nvidia binary driver?

    Hi,
    I started using URxvt recently and I love it, especially the tabbed add-on. There's just one problem - with intensive use, after an hour or two it gets very slow in refreshing when switching between tabs or just using it. I mean the text redraw takes a while, like half a second, which is annoying when switching between many tabs.
    Now I know xft is supposted to be slow and I'm using it, but I have a core 2 duo 2.33GHz CPU so I thought maybe it can handle xft... And it does, just after restart it works just faaaaast. But after an hour or so it's slow, and later it's even slower.
    What is also interesting is that sometimes just resizing the window helps, like making it just a tad smaller, or even bigger. But after a couple resizes even that doesn't help.
    So, is it xft that's getting slower and slower with use?
    I also use the nvidia proprietary driver and I heard that causes problems, so could that be it?
    Apart from that, I use kde 4.4. URxvt is 9.07 and nvidia is 195.36.03.
    As for disabling xft: I'm currently using Code Envy R font and I love it, so if I can just keep using it without xft (can i?) then that's okay, otherwise I'd like to stick to xft if at all possible....
    Does that happen to anybody else? What do you think may be the problem?
    Thanks!

    Thanks everybody for all the suggestions. I have checked htop, atop and iotop to ensure nothing is eating my resources. The CPU is free, disk is free and most of memory is as well (I have 3gig so it's plenty). I'm not running in daemon mode and the slowing down is mostly visible when switching tabs so maybe that's it.
    I'm familiar with tmux, thanks for the suggestion too, but I still can't get used to it's shortcuts. I like urxvt simple shift-left and shift-right to switch tabs. Maybe I can just reconfigure tmux hotkeys... I'll certainly go that way if I fail with getting urxvt to work properly but there's still a couple of things to try.
    I'll try the daemon/client mode of urxvt and I'm also currently trying mrxvt with UTF-8 patch from aur, so far it works good but I need to put it to much more use before I can say it's really fast.
    I understand urxvt should run fine on my machine, that's why I was really surprised when I noticed the slow downs. I suspected nvidia because they had some issues in the past with anti-aliased fonts, but seems like it was in the past. One thing's for sure - it made konsole really slow in some configurations. So I thought maybe urxvt is affected by that as well, but if it works for other people then I guess it's something else.
    Thanks for all the suggestions everybody!
    Last edited by kosmiciatakuja (2010-03-28 11:22:18)

  • Older mac 2009 getting slower with new updates

    Hi
    This may be obvious - but does installing 6 years of updates onto my 2009 iMac result in the computer getting slower? Response times for searching in safari get longer etc and generally taking a few minutes to work fully is getting longer as the years go by. It could be old age I suppose.
    Thanks

    How much RAM do you have installed? Apple menu>About this Mac>Memory will show this information. 2gb of RAM and the Mac will work, but likely perform like a slug, 4gb is better, but in my experience performance is still not great. 8gb and the Mac should perform well. I recently upgraded an early '09 Mac with 4gb of RAM to 8gb and the difference is like chalk and cheese - no more spinning beachballs or fans working overtime.
    Macsales and Crucial are good places to buy RAM, and it's very to do the upgrade yourself on 09 Macs:
    http://uk.crucial.com/gbr/en
    http://eshop.macsales.com/shop/apple/memory/iMac

  • Why does my iPhone 4 get slower with every update? (iPod app special)

    When i tab ipod and then movies i almost have to wait longer than with my old iPhone 3G. And it get worst with every update. ***? I am thinking about downdating to 3.something then my iPhone 4 was really quick.

    Here is my update on this issue. This isn't normal. I spoke to several tech support people, sr tech support people, etc and we found out that somehow my battery was damaged during the update. They found this out by sending me a diagnostic file via sms. I was sent into the apple store to replace my phone. I had it a little under a year, with 40 days left on my warranty. When I went to the store I was able to show the rep at the store the issue described in this thread. He just scratched his head. It was a quick swap. I spent a lot of time trying to fix this issue. I tried everything. Removing itunes_control files, several restores, starting from scratch. I could duplicate the issue every time. It's a bug and I'm sure it will be addressed. If you are still under warranty, I would recommend getting it checked by an apple tech to see if it messed up your battery and perhaps get it replaced. Battery issues on these devices cause lots of problems. 

  • My Network gets slower with time capsule... why?

    I Buy a Time Capsule for only for use it as backup HDD in my work but after i install it and configure it the network gets slower but onli with the machines that have the gateway configured, because the machines that dont have internet connection (no gateway and no DHCP only static ip), they are fast as allways
    we use Windows Server enterprise 2008 r2 with ADSL connection and terminal server configured and a network domain on it.
    and the machines have windows 7 and xp.
    I hope someone know why this happened.
    thanks.

    And if you don't have luck on the SL forum then I'd recommend posting on the Airport forum. You can find that at:
    https://discussions.apple.com/community/wireless/airport

  • Motion Tracking gets slower with longer clips until it stops responding

    Whenever I do feature tracking to stabilize a shot, the first few frames analyse in a split second per frame but then it gets slower and slower until it takes tens of seconds per frame and finally stops responding to user input at all.
    I see the same probem on a 32GB Ram, MacOS 10.8 iMac 4.8GHz Core i7 with a 2GB CUDA capable NVidia card
    (The biggest and fastest Mac you can buy since MacPros are no longer sold until the next generation)
    and MacOS 10.7.5 on a MacBook with 16GB or RAM, 2.4GHz Core i5.
    On the MacBook I had clips starting to track with 15fps for the first 5% but ultimately taking 5 days to track a 12 minute clip.
    I have stage scenes of 10-15 minutes an am tracking the edges of the stage to remove slight camera shakes. Then exporting them to ProRes to use in an FCPX timeline (because there is no integration between Motion5 and FCPX at all and the trackig in FCPX doesnt allow for manually defined feature markers.).
    Tracking anything below 3-5 minutes is okay.
    Even when opening Motion5 again with the tracking data loaded it hardly reacts to user input when moving in the timeline or attempting to play the clip.
    There is usually no other effect applied.
    It's not like it is any more complex or requires any more memory to track the motion of the same feature between frames 5000 and 5001 and between frame 5 and frame 6.

    3 clips of 5 minutes takes mintes to track.
    a clip of 15 minutes take hours.

Maybe you are looking for

  • Feature Request:  Useful toStrings in Cookie and HttpServletResponse/Reques

    Hi. It seems obvious to me that the Cookie.toString() should give the text representation of the Cookie as it will appear in the HTTP header. The reason that I need this is that Java does NOT support HttpOnly and I need to insert it into the Cookie m

  • Update of object dependency allocation in Routings

    Dear Friends, I am having the following problem: in several Routings of different configurable materials I need to change the object dependency allocation for one operation. In detail, let's say that operation 0100 has 3 object dependencies allocated

  • Error -2147024714 : Automation Error the operating system cannot run %1'

    Post Author: greg.thompson CA Forum: General After installing Crystal Reports 10 Pro, I am receiving the following Business Objects error "Error -2147024714 : Automation Error the operating system cannot run %1" While trying to run reports within Bus

  • Query about time constraints

    hey,       i had a difficult over time contraint gaps allowed concept . send me relevant links or answeres for gaps allowed concept . thank you anitha.boranayak

  • Firefox does not save my settings when I reboot

    I have Windows 7 Ultimate. I was having problems with Firefox 3.6.16 crashing to the point where it wouldn't work. I uninstalled it and downloaded version 4 but had problems with it hanging all the time. I went through the help section, one of the th