Announcement Announcement Module
Collapse
No announcement yet.
Spring.AddElementDecoration() for dijit.form.FilteringSelect fails in IE Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring.AddElementDecoration() for dijit.form.FilteringSelect fails in IE

    I have build a page that has field:ajaxGrid, which is empty at on load. User clicks "Add" button which triggers Ajax call and loads a search form. Now, the problem is in the search form. I have pretty basic scenario just one <field:select>:
    Code:
     <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core"
    	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
    	xmlns:field="urn:jsptagdir:/WEB-INF/tags/form/fields"
    	xmlns:form="urn:jsptagdir:/WEB-INF/tags/form"
    	xmlns:springform="http://www.springframework.org/tags/form"	
    	xmlns:jsp="http://java.sun.com/JSP/Page"
    	xmlns:spring="http://www.springframework.org/tags" version="2.0">
    	<div>
    		<jsp:directive.page contentType="text/html;charset=UTF-8" />
    		<jsp:output omit-xml-declaration="yes" />
    		 <form:search id="domain_profile_role" modelAttribute="searchrole" path="/profiles/search/roles" z="e2lXrqKKD2CS7Zjeo2ZXPW4xYNM=">
    			<div id="_profile_role_search_roletype_id">
    				<label for="_searchRoleType_id">Role Type: </label>
    				<field:select field="searchRoleType"
    						id="c_domain_profile_role_search_roletype"
    						required="false" itemValue="id" itemLabel="name" items="${roleTypes}"
    						path="/roletypes" z="BbdAEjCne8gQ3bKOCX5F8WIC+Eg=" renderempty="true"/>			
    			</div>
    		 </form:search>
    		<input type="hidden" id="blockSubmitHd" value="false" />
    	</div>
    </jsp:root>
    This works fine in Firefox and Chrome. However, it fails in Internet Explorer. I have debugged the error and it fails on:
    dojo.forEach(dojo.query("script", _targetNode),function(node){
    dojo.eval(node.innerHTML);
    });
    when node.innerHTML = "Spring.addDecoration(new Spring.ElementDecoration({elementId : '_searchCountry_id', widgetType: 'dijit.form.FilteringSelect', widgetAttrs : {hasDownArrow : true, required : false, invalidMessage: 'Please enter valid Country' }}));"

    The odd things about this case is that it works fine the list is empty. The moment there is at least one element, it throws "Unknown error". Any advice and hints are very much appreciated. I contemplating whether to switch from Roo select tags to spring select tags in this case. Thanks
Working...
X