Hello,
I have a question about autocompletion in a combobox
It works well but when the user types characters, the server sends the correct response but the dropdown list doesn't appear to the user. Consequently, the user needs to clic on the combobox's arrow to see the dropdown list
We use struts 2.0.6 (I tried whith struts 2.1.2 too)
This is the code of my jsp (simplified)
<%@taglib prefix="s" uri="/struts-tags" %>
<s:head theme="ajax"/>
<input dojoType="struts:ComboBox"
dataUrl="/Appi/JSONList.do?name=REF_PAYS_OUVERTS"
dropdownHeight="200" autoComplete="false"
loadOnType="true" loadMinimum="2"
visibleDownArrow="true"
name="value" caseSensitive="false"/>
<s:head theme="ajax"/>
<input dojoType="struts:ComboBox"
dataUrl="/Appi/JSONList.do?name=REF_PAYS_OUVERTS"
dropdownHeight="200" autoComplete="false"
loadOnType="true" loadMinimum="2"
visibleDownArrow="true"
name="value" caseSensitive="false"/>
This is the code with JSON list :
<%@ page language="java" contentType="text/plain; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
request.setAttribute("decorator", "none");
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
String sep="";
%>
[<s:iterator value="list" ><%= sep %> ["<s:property value="libelle" escape="false"/>","<s:property value="id" escape="false"/>"]<% sep=",\n"; %></s:iterator>
]
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
request.setAttribute("decorator", "none");
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
String sep="";
%>
[<s:iterator value="list" ><%= sep %> ["<s:property value="libelle" escape="false"/>","<s:property value="id" escape="false"/>"]<% sep=",\n"; %></s:iterator>
]
Is this a known bug ? How can I fix it ?
Thank you for your help !

have you tried removing the
have you tried removing the "\n" char from your separator? (<% sep=","; %> instead of <% sep=",\n"; %>)
nic