Yes I mean to use the value on my action, and I did set name="myVar" and I do have a "myVar" field and a public setMyVar() method on my action. This is strange, because when I write my autocompleter this way: <sx:autocompleter name="myValue" list="{'fruits','colors'}" valueNotifyTopics="/changed" />
here the value is "stored" and I can use it in my action. But if I write exactly the same autocompleter, but using an action, like here: <sx:autocompleter href="%{jsonList}" name="myValue" valueNotifyTopics="/changed" /> ... in this case it doesn't work... I mean the select box does work, it is displayed, but no value is returned to the action. :-\ so I guess I must do something wrong, but I have to say I really don't know what. Maybe I have to specify that the action I use to fill the list is not the same as the one which get the results. Musachy Barroso wrote: > > By "get the selected value", do you mean to use the value on your > action? If that is the case, all you have to do is set name="myVar", > and then have a "myVar" field and a public setMyVar(...) method on > your action. > > musachy > -- View this message in context: http://www.nabble.com/Struts-2.1-autocompleter%2C-get-the-value-tp16307105p16319235.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]