S2: Want to set autocompleter value

2007-05-25 Thread Scott Nesbitt
I have an autocompleter like this: s:autocompleter name=states id=states theme=simple autoComplete=false showDownArrow=false searchType=startstring forceValidOption=true

Re: S2: Want to set autocompleter value

2007-05-25 Thread Musachy Barroso
try: dojo.widget.byId(autocompleter_id).setSelectedValue(value); I can't try it myself now, but that's the only method that seems to set a value in the autocompleter widget. musachy On 5/25/07, Scott Nesbitt [EMAIL PROTECTED] wrote: I have an autocompleter like this: s:autocompleter

Re: S2: Want to set autocompleter value

2007-05-25 Thread Musachy Barroso
2.1 is going to ship with 0.4.2 or 0.4.3, as for 0.9 we don't have any estimated time. musachy On 5/25/07, Scott Nesbitt [EMAIL PROTECTED] wrote: That does not seem to do anything for me. After reading this: http://trac.dojotoolkit.org/ticket/1451 It looks like setSelectedValue() is going

Re: S2: Want to set autocompleter value

2007-05-25 Thread Musachy Barroso
By the way the property dataProvider.data in the widget is a hash of the key and the values, so you could find the right value, and then set it in the 2 inputs for the comobox (the visible and the hidden ones). I logged a ticket for it: https://issues.apache.org/struts/browse/WW-1945 musachy

Re: S2: Want to set autocompleter value

2007-05-25 Thread Scott Nesbitt
Say, now we are talking! This page says exactly how to do that: http://www.nabble.com/R%C3%A9f.-:-Re:-Initial-Value-of-a-ComboBox-t2641746.html I tried it and it works great. Thanks for the pointer, Musachy. Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: By the way the property