Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 89203 invoked from network); 31 Dec 2006 18:47:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Dec 2006 18:47:43 -0000 Received: (qmail 92717 invoked by uid 500); 31 Dec 2006 18:47:41 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 92681 invoked by uid 500); 31 Dec 2006 18:47:41 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 92670 invoked by uid 99); 31 Dec 2006 18:47:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Dec 2006 10:47:40 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of dwojtas@gmail.com designates 64.233.166.180 as permitted sender) Received: from [64.233.166.180] (HELO py-out-1112.google.com) (64.233.166.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Dec 2006 10:47:31 -0800 Received: by py-out-1112.google.com with SMTP id u52so3087019pyb for ; Sun, 31 Dec 2006 10:47:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SOvUh2mH23usJ/NDW6xBk9W5OtR4B/WHuaM5Al5mrEinn1iff/v1hukJimLKhDSkQfoF0wyBtYGUXPxmialIPleatvRJPIbita4bB+hSSUrFessNe2AVaFzr5SA4MaoidVpGLZAcmnZJILQWZkRVTu8Pfmbf8UpDHipuAjo6g34= Received: by 10.35.10.17 with SMTP id n17mr14970005pyi.1167590830711; Sun, 31 Dec 2006 10:47:10 -0800 (PST) Received: by 10.35.90.10 with HTTP; Sun, 31 Dec 2006 10:47:10 -0800 (PST) Message-ID: <72c2ff290612311047h40046119h95961032e8e1836c@mail.gmail.com> Date: Sun, 31 Dec 2006 19:47:10 +0100 From: "Dariusz Wojtas" To: "Struts Users Mailing List" Subject: Re: [S2] autocompleter, predefining initial value In-Reply-To: <4597DBF7.5020403@wfscorp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <72c2ff290612151440w16a8c8d2h6aac4e0ce3a61f71@mail.gmail.com> <72c2ff290612280726u4b3f0c0aued4d20bf9f1a0440@mail.gmail.com> <72c2ff290612281050v5be08406re13a29bcfe1a5da0@mail.gmail.com> <45941584.8000004@wfscorp.com> <72c2ff290612281136m25d02328kae4928a82e1face3@mail.gmail.com> <45943B61.4050804@wfscorp.com> <72c2ff290612281405p22f50fd7gebdbbc31aeaeeed5@mail.gmail.com> <459442F0.8010503@wfscorp.com> <4597DBF7.5020403@wfscorp.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Musachy, I have just built new S2 (after tag 2.0.2), made sure that the old JAR files are replaced and restarted it. If something is fixed - great, but it still misbehaves under IE and Opera. There is also some issue common to all browsers (including FF): *) If I have 3 stacked autocompleters, every autocompleter has a value and I submit the form to go to the same action (reload with selected values), then only the top autocompleter is displayed with the correct value. The other 2 autocompleters are empty - but the code in generated HTML suggests that the correct values were passed to dojo: wrote: > Both problems should now be fixed on IE 6. > > regards > musachy > > Musachy Barroso wrote: > > I will fix it so it ignores that null value. UTF-8 works. > > > > regards > > musachy > > > > Dariusz Wojtas wrote: > >> I am not really sure if it worked before, both autcompleter and my > >> code do evolve ;) > >> I was always using JSP with UTF-8 encoding to generate my options. > >> Is UTF-8 a problem here? > >> > >> You mean > >> [ ["A", "B"] , ] > >> is problematical for IE, but > >> [ ["A", "B"] ] > >> will work? Should I change something in the json list generation or > >> the autocompleter will recognize such case? > >> > >> Dariusz Wojtas > >> > >> On 12/28/06, Musachy Barroso wrote: > >>> This is what I found so far, there are 2 problems, one is that when > >>> there is a json array like: > >>> > >>> [ ["A", "B"] , ] > >>> > >>> IE puts a null object in the array. That one is easy to fix. The other > >>> problem is that using freemaker, like in showcase to render the json > >>> array, the charset of the response is set to Cp1252, which causes the > >>> error on IE. If I use a jsp to render the json array, the encoding is > >>> ISO-8859-1 which works fine. Was this working for you before? > >>> > >>> regards > >>> musachy --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org