Adding the pound sign did work for me in the hardcoded example
<sx:autocompleter name="test" label="test" list="#{'Alabama':'AL',
'Alaska':'AK'}" autoComplete="false"/>
Will my action need to add a pound sign as well or is that only because I
was using list instead of href? Right now my action is returning
{"1":"Internet Services"}, which works in 2.0.9. This is what is returned
by the json plugin.
Wes Wannemacher wrote:
>
> OGNL's anonymous map creation uses the '#' character
>
> Looking at what you were trying makes me think that you were confused
> by the JSON string. It appears that there isn't mention of using a Map
> for the list= attrib, but I assume that it acts the same as it did in
> 2.0.x
>
> -W
>
>
>> 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#a13065892
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]