Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 93371 invoked from network); 8 Nov 2007 23:03:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Nov 2007 23:03:41 -0000 Received: (qmail 64799 invoked by uid 500); 8 Nov 2007 23:03:21 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 64233 invoked by uid 500); 8 Nov 2007 23:03:19 -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 64222 invoked by uid 99); 8 Nov 2007 23:03:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2007 15:03:19 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [220.233.0.31] (HELO panama.exetel.com.au) (220.233.0.31) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2007 23:03:57 +0000 Received: from ns1.exetel.com.au ([220.233.0.1] helo=ef.exetel.com.au) by panama.exetel.com.au with smtp (Exim 4.63) (envelope-from ) id 1IqGOj-0002nF-SW for user@struts.apache.org; Fri, 09 Nov 2007 10:02:53 +1100 Received: (qmail 4222 invoked by uid 508); 8 Nov 2007 23:02:53 -0000 Received: from blueskyminds.com.au (HELO ?192.168.1.150?) (jeromy.evans@blueskyminds.com.au@220.233.11.162) by ef.exetel.com.au with SMTP; 8 Nov 2007 23:02:53 -0000 Message-ID: <4733958D.8090200@blueskyminds.com.au> Date: Fri, 09 Nov 2007 10:02:37 +1100 From: Jeromy Evans Organization: Blue Sky Minds Pty Ltd User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Dojo custom build and Struts ComboBox widget References: <47331D44.1000404@alwayssunny.com> In-Reply-To: <47331D44.1000404@alwayssunny.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Max Pimm wrote: > I am trying to make a custom build of dojo for my application in order > to speed it up a bit. > > (See threads "[s2] Struts head tag KILLS (> 10s) page load time" and > "How to improve dojo performance in Struts 2.0.9") > > I have followed the instructions for doing this are carefully as > possible from > http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-209.html. > > > My custom build appears to have worked. dojo.js is generated with the > struts widgets "Internalized", each page i load makes minimal requests > for other dojo scripts and the basic bind functionality of dojo works. > > However the Struts:Combobox component used in my autocompleters does > not work. Some code is executed when i edit the field but it does not > result in a petition to the server y hence no autocomplete list is > shown. Dojo is configured in debug mode but gives no errors. The > struts folder containing the widgets is present in > /struts/dojo. Dojo correctly finds the dropdown image for > the input and uses the styles in ComboBox.css the only problem is that > it does not issue petitions to the server when the onKeyUp event fires. > > I am using the 2.011 build of struts, is the process for building a > custom dojo build the same as in 2.09? I can't find any changes in the > ComboBox between these versions but is there anything else that might > be causing these problems. > > Does anyone have any advice for how to start debugging this? > > Thanks, > > max > I'm not sure what is wrong, but the approach I'd take to debug it is: - Use firebug to see if the page is getting a 404 trying to load any of the resources required by dojo. This is the most likely cause if it was working before you created the custom build - Replace your dojo.js file with the dojo.js-uncompressed.js file also created by the build process. This one contains comments and debug info. See if any errors are now displayed - Find the combobox code in dojo.js-uncompressed.js and use breakpoints in firebug to find out exactly what's happening. Let me know how you go. cheers, Jeormy Evans --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org