Hi All JSF Gurus, Actually I am populating the list in a h:selectOneMenu from the database. I am facing the following problems: 1. I have initialzed a variable in the faces-config/managed bean(neither of them works) and mapped it to the value in my JSP but by default it displays the last record in the database. 2. In case of an error, I am displaying the error message in the same page being refreshed. All the other h:selectOneMenu with the values being populated hard=coded and not from database show the stored values that were set by the user previously but this h:selectOneMenu filled from database simply displays the default value as the last entry from database. I am stuck past 2 days
I thought this forum was to help the people in need but it was a big mistake to have spend my time in posting my problem here inspite of having so many good JSF experts here...
g madhava
Ranch Hand
Joined: Sep 14, 2001
Posts: 85
posted
0
Try changing the scope of the bean to request rather than session.