struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: s.autocompleter with JSON Plugin
Date Tue, 20 Mar 2007 20:31:32 GMT
I think the daily builds are for 2.1 only. If you want to build it:

http://struts.apache.org/2.x/docs/building-with-maven.html

The autocompleter tag can be used without the json plugin, check showcase
for examples.

musachy

On 3/20/07, Piero Sartini <lists@pierosartini.de> wrote:
>
> I tried to apply the patch that is in JIRA - but it does not work. I guess
> it
> is not only the change in the JavaScript but somewhere in the Java classes
> as
> well.
>
> Is there a prepackaged 2.0.7 somewhere? Or do I have to build it by
> myself?
>
> Need to present s2 soon and it would be great if I get this to work till
> then.
>
> Regards,
>         Piero
>
> Am Samstag, 17. März 2007 schrieb Musachy Barroso:
> > This was an issue in 2.0.6 and it is fixed on 2.0.7:
> >
> > https://issues.apache.org/struts/browse/WW-1659
> >
> > As Dave mentioned in 2.0.6 the autocompleter was expecting an array of
> > arrays. Now the autocompleter will use the following logic to determine
> how
> > to load the data:
> >
> > 1. If the response is an array, use it
> > 2. If the response is an object, and has a field  that matches the
> > "dataFieldName" attribute in the autocompleter, use it.
> > 3. If the response is an object, and has a field that starts with the
> > "name" of the autcompleter use it
> > 4. If a field of type array is found, use it
> >
> > so the following cases will work:
> >
> > public class MyAction {
> >    private String[][] states;  //data here
> > }
> >
> > <s:autocompleter dataFieldName="states" ..> // #2
> > <s:autocompleter name="state" ..>  //#3
> > <s:autocompleter ...> //#4
> >
> > regards
> > musachy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message