Would you mind posting the onload script? I'm having trouble with it...

Thanks...

David M.

Scott Nesbitt wrote:
> 
> 
> I am having trouble setting the focus on an
> autocompleter field.
> 
> When I print out all the fields in my overlay, I see
> three for the sports team autocompleter:
> 
> sportsTeam
> sportsTeamKey
> (one with no name)  (why does it have no name?)
> 
> Here is how it is declared:
>     
> <s:autocompleter name="sportsTeam"
>                  id="sportsTeam"
>                  keyName="sportsTeamKey"
>                  theme="ajax" 
>                  formId="mainForm"
>                  href="%{#autosportsteam}"
>                  cssStyle="width: 430px;" 
>                  dropdownHeight="180";
>                  loadMinimumCount="2"
>                  loadOnTextChange="true"
>                  autoComplete="false"
>                  showDownArrow="false"
>                  delay="100"
>                  searchType="substring"
>                  forceValidOption="true"/>
> 
> In my onbodyload() function I set the value of the
> field with no name and it works.  However, when I try
> to set the focus on the one with no name it ignores it
> and none of the overlay fields has focus.
> 
> I tried adding dataFieldName but despite the
> documentation it says the attribute is not recognized.
> 
> Any suggestions?
> 
> Thanks,
> 
> Scott
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/S2%3A-Autocompleter-and-focus-tf3601635.html#a10221734
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to