Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

onchange event is not working in mozilla when I am using <ajax:select> tag in JSP

 
Srikanth Batchu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP code is-

<html:select styleId="deductFrequency" property="deductFrequency" style="width:200px">
<htmlption value=""><fmt:message bundle="${ SessionBean.labelsBundle }" key="dropdown.selectOne" /></htmlption>
<htmlption value="0015"> <fmt:message bundle="${ SessionBean.labelsBundle }" key="voluntaryDeduction.onetime" /></htmlption>
<htmlption value="0014"> <fmt:message bundle="${ SessionBean.labelsBundle }" key="voluntaryDeduction.rectime" /></htmlption>
</html:select>



<html:select styleId="deductCode" property ="deductCode" style="width:200px" >
<htmlption value=""><fmt:message bundle="${ SessionBean.labelsBundle }" key="dropdown.selectOne" /></htmlption>
</html:select>


<ajax:select
baseUrl="${contextPath}/voluntarydynamicdropdown.do"
source="deductFrequency"
target="deductCode"
parameters="employeeId={emplid},infotype={deductFrequency}"
postFunction="toggleRow"
/>


And in the above code, when the user selects a value from "deductCode" drop-down box, the above shown <ajax:select> tag must be automatically triggered and invoke the "voluntarydynamicdropdown.do" action mapping in the struts-config.xml file. And after that, the action class which is specified in the action mapping will be executed and fetches the values that must be populated in the second drop down list- "deductCode". That action class file is defined as shown below- public class DynamicDropDownUtil extends BaseAjaxAction { }.

But the above functionality is working fine in IE, but not working in Mozilla. In mozilla when I am selecting the value from the 1st drop down box, nothing is happening. The control is even not going to the java file- "DynamicDropDownUtil.java".

I don't know why this is not happening in Mozilla only.


Please help me out. It is very important issue to solve immediately. Thank you.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This doesn't seem to be a Struts issue, but a browser or whatever that Ajax tag library is you're using.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic