Thank you, Musachy!  I did overlook that option, my
state parameter is passing great now.

I also figured out why the string I typed into the
autocomplete field had a value but no key: I forgot to
put name="team" in the s:autocomplete tag.  Once I did
that it worked fine.

Thanks again,

Scott

--- Musachy Barroso <[EMAIL PROTECTED]> wrote:

> You can use the "formId" attribute, like:
> 
> <form id="dataForm">
>    //fields here
> </form>
> 
> <s:autocompleter formId="dataForm" .. />
> 
> and it will pass the fields of the form as
> paramteers when the autocompleter
> is loaded.
> 
> musachy
> 
> On 4/5/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> >
> >
> > I am trying to use the Ajax autocompleter and
> would
> > like to pass some parameters.  This is my JSP:
> >
> > <form id="selectForm">
> >
> >    <s:url id="autosports" action="LookupSports"
> > includeParams="all">
> >       <s:param name="key"    
> value="SearchString"/>
> >       <s:param name="value"   value="yarr"/>
> >       <s:param name="context" value="wub"/>
> >    </s:url>
> >
> >    Select a Sports Team
> >
> >    <br/>
> >    <s:autocompleter id="team"
> >                     theme="ajax"
> >                     href="%{#autosports}"
> >                     cssStyle="width: 250px;"
> >                     dropdownHeight="180";
> >                     loadMinimumCount="1"
> >                     loadOnTextChange="true"
> >                     autoComplete="false"
> >                     showDownArrow="false"
> >                     delay="100"
> >                     searchType="substring"
> >                     forceValidOption="true"/>
> >
> >    <s:hidden name="state" value="FL"/>
> >
> >    <br/>
> >    <br/>
> > </form>
> >
> > Unfortunately, state is not set and the only
> parameter
> > that is passed (a 'p' was typed in the field) has
> no
> > key:
> >
> > 10:22:51,919 [[ACTIVE] ExecuteThread: '0' for
> queue:
> > 'weblogic.kernel.Default (self-tuning)'] DEBUG
> > interceptor.StaticParametersInterceptor  - Setting
> > static parameters {}
> > 10:22:51,919 [[ACTIVE] ExecuteThread: '0' for
> queue:
> > 'weblogic.kernel.Default (self-tuning)'] DEBUG
> > interceptor.ParametersInterceptor  - Setting
> params
> > => [ p ]
> > 10:22:51,923 [[ACTIVE] ExecuteThread: '0' for
> queue:
> > 'weblogic.kernel.Default (self-tuning)'] DEBUG
> > util.OgnlValueStack  - Error setting value
> > ognl.ExpressionSyntaxException: Malformed OGNL
> > expression:  [ognl.ParseException: Encountered
> "<EOF>"
> > at line 1, column 0.
> >
> > Any suggestions?
> >
> > Thanks,
> >
> > Scott
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Sucker-punch spam with award-winning protection.
> > Try the free Yahoo! Mail Beta.
> >
>
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?"
> Pink Floyd
> 



 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

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

Reply via email to