Ahh! That was my problem. I think it would be worth mentioning this in the documentation, especially since it is the reverse of 2.0.x. It's not real clear in the state example which is the key and which is the value. I tried to edit the docs myself, but the wiki told me I did not have permission.
Thanks for your help, Ben Musachy Barroso wrote: > > > One think to keep in mind is, when you build the json, the key and > the values are in the "wrong" order. So it would be: > > { > "Alabama" : "AL" > } > > instead of : > > { > "Al" : "Alabama" > } > > > I know it is confusing, but we inherited that from Dojo and changing > it would break backward compatibility. > > regards > musachy > >> > >> > chengas123 wrote: >> > > >> > > Converting the tags to use the new library wasn't very hard except >> that I >> > > can't seem to get the new tags to work. I turned the debugging on in >> the >> > > head tag and the only debug message I got was "DEBUG: please consider >> > > using a mimetype of text/json-comment-filtered to avoid potential >> security >> > > issues with JSON endpoints." I've placed the relevant code from my >> .jsp >> > > below. Is there anything I forgot when converting to 2.1 besides the >> > > steps Nicholas mentioned? I do see my action being called when I >> type in >> > > the autocompleter box. If I manually visit the URL I am given the >> > > following JSON: {"1":"Internet Services"} >> > > >> > > <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> >> > > <sx:head cache="true" debug="true" /> >> > > <sx:autocompleter label="Department" forceValidOption="true" >> > > cssStyle="width:132px; height:18px; border:1px solid #7B9EBD" >> > > name="department" required="true" href="%{departmentList}" >> > > loadOnTextChange="true" showDownArrow="false" >> > > searchType="substring" /> >> > > >> > > >> > > Thanks, >> > > Ben >> > > >> > > >> > >> > -- >> > View this message in context: >> http://www.nabble.com/-s2--Struts-head-tag-KILLS-%28%3E-10s%29-page-load-time-tf4490390.html#a13064915 >> > Sent from the Struts - User mailing list archive at Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/-s2--Struts-head-tag-KILLS-%28%3E-10s%29-page-load-time-tf4490390.html#a13098417 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]