can we see the
autoCompleter code
any relevant JS (setBeforeLoading,setAfterLoading)

Thx,

--------------------------------------------------------------------------- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--------------------------------------------------------------------------- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
----- Original Message ----- 
From: "Dariusz Wojtas" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, December 28, 2006 10:26 AM
Subject: Re: [S2] autocompleter, predefining initial value


> Hi,
> 
> These are excerpts from my JSP page:
> 
> <s:url id="markaPojazdowURL" value="/listy/markiPojazdow.action" />
> <s:autocompleter name="carMaker"
> theme="ajax"
> href="%{markaPojazdowURL}"
> cssStyle="width: 240px;"
> dropdownHeight="200"
> forceValidOption="true"
> notifyTopics="/markaPojazdowTopic"
> />
> 
> 
>    And the direct dependent autocompleter:
> 
> <s:url id="modelPojazdowURL" value="/listy/modelePojazdow.action" />
> <s:autocompleter name="carModel"
> theme="ajax"
> href="%{modelPojazdowURL}"
> cssStyle="width: 240px;"
> dropdownHeight="200"
> forceValidOption="true"
> listenTopics="/markaPojazdowTopic"
> notifyTopics="/modelPojazdowTopic"
> />
> 
> Values "AUDI" and 354 are axactly the same as one of the pairs
> returned by the JSON list.
> The 'disappear' behaviour happens on Firefox 2.
> 
> I have 3 autocompleters in chain
>   carMaker  - preloaded (AUDI, 352)
>   carModel  - empty
>   carType  - empty
> 
> I click on carMaker (no request is sent to the server), then I click
> somewhere else (but not in any autocompleter) and here is what i can
> observe:
> * carMaker field is cleared
> * server gets request for options of the autocompleter carType
> * server gets request for options of the autocompleter carModel
> * server gets request for options of the autocompleter carType
> 
> This happens on Firefox.
> 
> On IE the carMaker field is not cleared on blur. Also no error in the
> status bar.
> But changes in carMaker do not generate requests to the server to load 
> carModel.
> 
> 
> Dariusz Wojtas
> 
> On 12/28/06, Musachy Barroso <[EMAIL PROTECTED]> wrote:
>> Dariusz Wojtas wrote:
>> >
>> > But If I open such page [the same values preloaded] and just click
>> > somewhere in that autocompleter [no changes] and leave the field - the
>> > value is lost.
>> > Some event is generated that causes fresh reload of the field.
>> > Submitted form shows both properties empty.
>> >
>>
>> Are you using "forceValidOption"="true" on that one?
>>
>> > One little other issue is that if carMaker is preselected on load,
>> > then the dependent autocompleter (carModel) is not preloaded with
>> > options. I have to change carMaker to make carModel loaded with
>> > options.
>> >
>>
>> humm...does it happen on FF and IE? Is it different from the example on
>> showcase?
>>
>> > Best regards
>> > Dariusz Wojtas
>> >
>> > On 12/28/06, Musachy Barroso <[EMAIL PROTECTED]> wrote:
>> >> Hi Dariusz
>> >>
>> >> I need to update the documentation with this info, the thing is that for
>> >> each autocompleter, struts will create 2 fields, one for the text
>> >> entered, with the name "${name}" and another for the key, with the name
>> >> "${name}Key", we need both to "remember" the values if there is a
>> >> validation error or you return INPUT from your page, so if you have:
>> >>
>> >> ["ACURA","351"]
>> >>
>> >> and
>> >>
>> >> <s:autocompleter name="car"....>
>> >>
>> >> when you click submit, it will submit:
>> >>
>> >>   car=ACURA&carKey=351
>> >>
>> >> you need to add the property "car" and "carKey" in your action. About
>> >> the opera problem, I haven't test it on opera, but I will check it out.
>> >>
>> >> regards
>> >> musachy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to