Hey guys. I have a Java web application that I have been trying to sort this bug out. I’m not sure if any body is familiar with what is going on. Basically I have a drop down list that needs to be populated with mysql data. It is not working. It will populate if I change the drop down menu box once. If I do that then it populates. I have backtracked and backtracked the bug to where a certain method is called in my java source. It is then in turn called in my javascript Page1.jsp. Well the code is never called until the drop down menu is changed. I’m guessing because it uses an onChange event. So my question is I need this set of code to run when the page loads so my menu will populate right. What is the best way of doing that? If anybody has any tips or help that would be so great. Thanks This is some of the code right now.
[CODE]
<webuijsf:dropDown binding=”#{Page1.ddCustomers}” id=”ddCustomers” items=”#{SessionBean1.customersList}”
onChange=”webui.suntheme4_2.common.timeoutSubmitForm(this.form, ‘ddCustomers’);” valueChangeListenerExpression=”#{Page1.ddCustomers_processValueChange}”/>
<webuijsf:label id=”ddLocationsLabel” text=”Locations”/>
<webuijsf:dropDown binding=”#{Page1.ddLocations}” id=”ddLocations” items=”#{SessionBean1.locationsList}”
onChange=”webui.suntheme4_2.common.timeoutSubmitForm(this.form, ‘ddLocations’);” valueChangeListenerExpression=”#{Page1.ddLocations_processValueChange}”/>