I am using netbeans 6.9.1 Glassfish 3. I have a JSF file, and there is a selectOneMenu
listbox on it. this list box will be populated with values from the DB.
For now, when i click on a button on the form, the values get added to the listbox. What i want to do is, to populate the list box when the page loads it self.
Any idea how i should do this. I tried adding code to the Java constructor so it would call it, but it didn't work. (I get a warning asking to Make the class final - if i do this, i can't access any methods from my JSF)
The warning i received - overridable method calls in constructors
The code is too big i can't put it here, i need to know a solution to overcome this