I have any errors and i use the s:head theme="ajax"/> in my head section a
the auto search work fine
I juste want to add a onchange event whitch submit my form. Before usind the
autocompleter tag i have :
<s:form name="myForm" theme="simple">
<s:select list="allItem" listKey="id" listValue="desc"
name="selectedItem"
onchange="javascript:document.getElementById('myForm').submit;"
/>
</s:form>
onchange="javascript:document.getElementById('myForm').submit;" doen't work
with autocompleter (nothing append)
2008/6/10 Laurie Harper <[EMAIL PROTECTED]>:
> What do you mean by 'No ajax use'? s:autocomplete is an Ajax tag... Do you
> have <s:head theme="ajax"/> in the head section of your page? Do you get any
> Javascript errors when you load the page, or when you interact with the
> autocompleter control?
>
> L.
>
>
> Craftyman wrote:
>
>> Hi,
>>
>> I'm using a s:autocompleter with a local list (No ajax use - Struts
>> 2.0.9).
>> The auto seach work fine but the onChange event doesn't run.
>> Indeed, I want to submit myForm when the user select a right value (Ie a
>> value present in my select).
>>
>> Here my configuration :
>>
>> <s:form name="myForm" theme="simple">
>>
>> <s:autocompleter autoComplete="true" resultsLimit="false"
>> dropdownHeight="200" cssStyle="width: 60px;"
>> list="allItem" listKey="id" listValue="desc"
>> name="selectedItem" />
>>
>> </s:form>
>>
>> I'm try the notifyTopic attribut without succes (
>> http://struts.apache.org/2.0.11.1/docs/autocompleter.html)
>> I'm also read this thread but it is not resolv my problem (
>> http://www.mail-archive.com/[email protected]/msg63586.html)
>>
>> Sincerely
>> Cédric
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>