Tuesday, January 22, 2008

Do not Automatically Expose UI components in a Managed Bean

I made a JSF page that initially had auto-exposing (of UI components to Managed Bean) disabled -call it Page A. Then I redid with aut-exposing enabled - call it Page B. These were some stats.


Next comes performance. Page (A) needed around 11 seconds to open up (cold start) in Jdeveloper design view. Page (B) took around 35 seconds. However, both pages took same amount of time while opening in a web browser.


Conclusion: 44% additional code is maintanence over-head and a lagging designer is productivity killer. So do not use it unless you have a solid reason for it.

Note (1): All pages were formatted using line length = 127 Character. This has an impact on # of lines.
Note (2): I used Jdeveloper Version 10.1.3.3 on NT 5.

No comments: