the value for the field comes from the "value" attribute, which is evaluated
against the Value Stack.

musachy

On 4/12/07, Harring Figueiredo <[EMAIL PROTECTED]> wrote:

I am sure it should NOT be getBar() either. It should be getFoo().

Perhaps there is a bug with the framework on not processing/doing
reflection
on hidden fields?

hf.

On 4/12/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote:
>
>
> Not sure why it should be getBar().  The name of the
> hidden field is foo, so shouldn't that be the variable
> that has the getter and setter?
>
> Regarding passing the field as a parameter, I am not
> too proud for that.  Could you post a little example
> code?  I tried to do something like this:
>
> <s:url id="autosportsteam" action="LookupSportsTeam">
>    <s:param name="foo" value="23"/>
> </s:url>
>
> And that worked, but I want the value of the foo
> field, not a hard-coded value.  How do I specify
> another field in the param tag?
>
> Thanks again,
>
> Scott
>
> --- Musachy Barroso <[EMAIL PROTECTED]> wrote:
>
> > You should have a "getBar()" defined on your action,
> > not a "getFoo()"
> >
> > regards
> > musachy
> >
> > On 4/12/07, Scott Nesbitt <[EMAIL PROTECTED]>
> > wrote:
> > >
> > >
> > > I have a form with an autocompleter like this:
> > >
> > > <s:form id="mainForm" theme="simple"
> > validate="false">
> > >   <s:url id="autosportsteam"
> > > action="LookupSportsTeam"/>
> > >   <div class="form-edit">
> > >      <s:autocompleter name="sportsTeam"
> > >                       id="sportsTeam"
> > >                       keyName="sportsTeamKey"
> > >                       theme="ajax"
> > >                       href="%{#autosportsteam}"
> > >                       cssStyle="width: 500px;"
> > >                       dropdownHeight="180";
> > >                       loadMinimumCount="2"
> > >                       loadOnTextChange="true"
> > >                       autoComplete="false"
> > >                       showDownArrow="false"
> > >                       delay="100"
> > >                       searchType="substring"
> > >                       forceValidOption="true"/>
> > >   </div>
> > >   <s:hidden name="foo" value="bar"/>
> > > </s:form>
> > >
> > > I expected that my LookupSportsTeamAction class
> > (which
> > > extends ActionSupport and has a getter and setter
> > on
> > > foo) would be able to use the foo member variable.
> > > But it is always null, though the sportsTeam
> > variable
> > > is being set correctly.
> > >
> > > Any ideas on this?  This works in other pages that
> > do
> > > not have the autocompleter tag.
> > >
> > > Thanks,
> > >
> > > Scott
> > >
> > >
> > >
> > >
> > >
> >
>
>
____________________________________________________________________________________
> > > 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]
> > >
> > >
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?"
> > Pink Floyd
> >
>
>
>
>
>
>
____________________________________________________________________________________
> Be a PS3 game guru.
> Get your game face on with the latest PS3 news and previews at Yahoo!
> Games.
> http://videogames.yahoo.com/platform?platform=120121
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Sincerely,

Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600

"We never become truly spiritual by sitting down and wishing to become so.
You must undertake something so great that you cannot accomplish it
unaided."




--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Reply via email to