This week's book giveaway is in the JDBC forum. We're giving away four copies of SQL Antipatterns: Avoiding the Pitfalls of Database Programming and have Bill Karwin on-line! See this thread for details.
I am new to jsf. I need to populate the values from my first jsf page into the other page when i click the next button. I have tried a couple of things but no luck. Can anybody help me with this.
Thanks.
Daniel Conner
Ranch Hand
Joined: Jan 25, 2007
Posts: 47
posted
have you tried putting it in the session? Object myObject = ?(whatever it actually equals) FacesContext context = FacesContext.getCurrentInstance(); Map sessionMap = context.getExternalContext().getSessionMap(); sessionMap.put("nameOfMySessionVariable", myObject);
AND then in the the bean where you want to get it: