This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Constructor of a Backing Bean of JSF page Invoking Twice on Initial Load  RSS feed

 
Sreekanth Kalakanti
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I Developed a JSF(1.2) Application using Sun RI Components and muy Problem is The Constructor of Backing Bean of a jsf
File getting invoked twice when a JSF Page is loaded.

I Placed a System.out.println("Inside the LoginBean");

My Code looks like:

For login.jspx the backing bean is LoginBean.java


public class LoginBean {

//Constructor
public LoginBean() {

// To get the ListBoxes data when page is Loaded
getDataDynamically();

System.out.println.info("Inside the LoginBean");

} // end of Constructor

} //end Class

OutPut:
In my console the println statement (Inside the LoginBean) is executed twice.

can any one suggest me a solution fr my Problem(I must not use HttpSession in my Code).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!