You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Felipe Rodrigues <fe...@yahoo.com.br> on 2007/06/25 18:02:47 UTC

AutoCompleter doesn't keeps value.

Hi Guys,

This time I'm trying to make a autocompleter component keep its value when
its property comes populated from action.

<input dojoType="struts:ComboBox"
                name="autoCompleterKey"
                keyName="autoCompleter"
                dataUrl="/Mutuo2/PlantelVarietal!listVars.action?"
                searchType="startstring"
                dropdownHeight="100"
                autoComplete="true"
                loadOnType="true"
                loadMinimum="1"
                visibleDownArrow="true"
                style="width: 149px;"/>

If I type some value and choose that, this value is getting into the action,
but if I have this value from the action, when loading the jsp page, then
autocompleter doesn't keeps tha value.

Any suggestion?


Thanks,

Felipe
-- 
View this message in context: http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11290103
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: AutoCompleter doesn't keeps value.

Posted by Musachy Barroso <mu...@gmail.com>.
Oh, ok, I thought that was the generated html :)

musachy

On 6/25/07, Felipe Rodrigues <fe...@yahoo.com.br> wrote:
>
>
> Yes.
> But I'm using dataURL, because I could not deal if autoLayout of ajax
> componentes, so I'm using the dojo code direct, as you can see in this
> code:
>
> <input dojoType="struts:ComboBox"
>                  name="autoCompleterKey"
>                  keyName="autoCompleter"
>                  initalValue="${autoCompleter}"
>                  dataUrl="/Mutuo2/PlantelVarietal!listVars.action?"
>                  searchType="startstring"
>                  dropdownHeight="100"
>                  autoComplete="true"
>                  loadOnType="true"
>                  loadMinimum="1"
>                  visibleDownArrow="true"
>                  style="width: 149px;"/>
>
>
> dataURL <=> href
> and initialValue <=> nameValue
>
> Regards,
>
>
> Felipe
>
>
>
> Musachy Barroso wrote:
> >
> > Are you using the href attribute to load the values using AJAX?
> >
> > musachy
> >
> > On 6/25/07, Felipe Rodrigues <fe...@yahoo.com.br> wrote:
> >>
> >>
> >> Doesn't work even if I set value with "value" or "key" attribute.
> >> So weird.
> >>
> >> Any other suggestion?
> >>
> >>
> >> []'s
> >>
> >> Felipe
> >>
> >>
> >> Felipe Rodrigues wrote:
> >> >
> >> > No,
> >> >
> >> > Using keyName. I'll confirm, but I think I've already tried use
> value.
> >> >
> >> >
> >> >
> >> >
> >> > Musachy Barroso wrote:
> >> >>
> >> >> Are you setting the value with the "value" attribute?
> >> >>
> >> >> musachy
> >> >>
> >> >> On 6/25/07, Felipe Rodrigues <fe...@yahoo.com.br> wrote:
> >> >>>
> >> >>>
> >> >>> Hi Guys,
> >> >>>
> >> >>> This time I'm trying to make a autocompleter component keep its
> value
> >> >>> when
> >> >>> its property comes populated from action.
> >> >>>
> >> >>> <input dojoType="struts:ComboBox"
> >> >>>                 name="autoCompleterKey"
> >> >>>                 keyName="autoCompleter"
> >> >>>                 dataUrl="/Mutuo2/PlantelVarietal!listVars.action?"
> >> >>>                 searchType="startstring"
> >> >>>                 dropdownHeight="100"
> >> >>>                 autoComplete="true"
> >> >>>                 loadOnType="true"
> >> >>>                 loadMinimum="1"
> >> >>>                 visibleDownArrow="true"
> >> >>>                 style="width: 149px;"/>
> >> >>>
> >> >>> If I type some value and choose that, this value is getting into
> the
> >> >>> action,
> >> >>> but if I have this value from the action, when loading the jsp
> page,
> >> >>> then
> >> >>> autocompleter doesn't keeps tha value.
> >> >>>
> >> >>> Any suggestion?
> >> >>>
> >> >>>
> >> >>> Thanks,
> >> >>>
> >> >>> Felipe
> >> >>> --
> >> >>> View this message in context:
> >> >>>
> >>
> http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11290103
> >> >>> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >>>
> >> >>>
> >> >>>
> ---------------------------------------------------------------------
> >> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >>> For additional commands, e-mail: user-help@struts.apache.org
> >> >>>
> >> >>>
> >> >>
> >> >>
> >> >> --
> >> >> "Hey you! Would you help me to carry the stone?" Pink Floyd
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11290611
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11291056
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


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

Re: AutoCompleter doesn't keeps value.

Posted by Felipe Rodrigues <fe...@yahoo.com.br>.
Yes.
But I'm using dataURL, because I could not deal if autoLayout of ajax
componentes, so I'm using the dojo code direct, as you can see in this code:

<input dojoType="struts:ComboBox"
                 name="autoCompleterKey"
                 keyName="autoCompleter"
                 initalValue="${autoCompleter}"
                 dataUrl="/Mutuo2/PlantelVarietal!listVars.action?"
                 searchType="startstring"
                 dropdownHeight="100"
                 autoComplete="true"
                 loadOnType="true"
                 loadMinimum="1"
                 visibleDownArrow="true"
                 style="width: 149px;"/>


dataURL <=> href
and initialValue <=> nameValue

Regards,


Felipe



Musachy Barroso wrote:
> 
> Are you using the href attribute to load the values using AJAX?
> 
> musachy
> 
> On 6/25/07, Felipe Rodrigues <fe...@yahoo.com.br> wrote:
>>
>>
>> Doesn't work even if I set value with "value" or "key" attribute.
>> So weird.
>>
>> Any other suggestion?
>>
>>
>> []'s
>>
>> Felipe
>>
>>
>> Felipe Rodrigues wrote:
>> >
>> > No,
>> >
>> > Using keyName. I'll confirm, but I think I've already tried use value.
>> >
>> >
>> >
>> >
>> > Musachy Barroso wrote:
>> >>
>> >> Are you setting the value with the "value" attribute?
>> >>
>> >> musachy
>> >>
>> >> On 6/25/07, Felipe Rodrigues <fe...@yahoo.com.br> wrote:
>> >>>
>> >>>
>> >>> Hi Guys,
>> >>>
>> >>> This time I'm trying to make a autocompleter component keep its value
>> >>> when
>> >>> its property comes populated from action.
>> >>>
>> >>> <input dojoType="struts:ComboBox"
>> >>>                 name="autoCompleterKey"
>> >>>                 keyName="autoCompleter"
>> >>>                 dataUrl="/Mutuo2/PlantelVarietal!listVars.action?"
>> >>>                 searchType="startstring"
>> >>>                 dropdownHeight="100"
>> >>>                 autoComplete="true"
>> >>>                 loadOnType="true"
>> >>>                 loadMinimum="1"
>> >>>                 visibleDownArrow="true"
>> >>>                 style="width: 149px;"/>
>> >>>
>> >>> If I type some value and choose that, this value is getting into the
>> >>> action,
>> >>> but if I have this value from the action, when loading the jsp page,
>> >>> then
>> >>> autocompleter doesn't keeps tha value.
>> >>>
>> >>> Any suggestion?
>> >>>
>> >>>
>> >>> Thanks,
>> >>>
>> >>> Felipe
>> >>> --
>> >>> View this message in context:
>> >>>
>> http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11290103
>> >>> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>>
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >>> For additional commands, e-mail: user-help@struts.apache.org
>> >>>
>> >>>
>> >>
>> >>
>> >> --
>> >> "Hey you! Would you help me to carry the stone?" Pink Floyd
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11290611
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> 

-- 
View this message in context: http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11291056
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: AutoCompleter doesn't keeps value.

Posted by Musachy Barroso <mu...@gmail.com>.
Are you using the href attribute to load the values using AJAX?

musachy

On 6/25/07, Felipe Rodrigues <fe...@yahoo.com.br> wrote:
>
>
> Doesn't work even if I set value with "value" or "key" attribute.
> So weird.
>
> Any other suggestion?
>
>
> []'s
>
> Felipe
>
>
> Felipe Rodrigues wrote:
> >
> > No,
> >
> > Using keyName. I'll confirm, but I think I've already tried use value.
> >
> >
> >
> >
> > Musachy Barroso wrote:
> >>
> >> Are you setting the value with the "value" attribute?
> >>
> >> musachy
> >>
> >> On 6/25/07, Felipe Rodrigues <fe...@yahoo.com.br> wrote:
> >>>
> >>>
> >>> Hi Guys,
> >>>
> >>> This time I'm trying to make a autocompleter component keep its value
> >>> when
> >>> its property comes populated from action.
> >>>
> >>> <input dojoType="struts:ComboBox"
> >>>                 name="autoCompleterKey"
> >>>                 keyName="autoCompleter"
> >>>                 dataUrl="/Mutuo2/PlantelVarietal!listVars.action?"
> >>>                 searchType="startstring"
> >>>                 dropdownHeight="100"
> >>>                 autoComplete="true"
> >>>                 loadOnType="true"
> >>>                 loadMinimum="1"
> >>>                 visibleDownArrow="true"
> >>>                 style="width: 149px;"/>
> >>>
> >>> If I type some value and choose that, this value is getting into the
> >>> action,
> >>> but if I have this value from the action, when loading the jsp page,
> >>> then
> >>> autocompleter doesn't keeps tha value.
> >>>
> >>> Any suggestion?
> >>>
> >>>
> >>> Thanks,
> >>>
> >>> Felipe
> >>> --
> >>> View this message in context:
> >>>
> http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11290103
> >>> Sent from the Struts - User mailing list archive at Nabble.com.
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>> For additional commands, e-mail: user-help@struts.apache.org
> >>>
> >>>
> >>
> >>
> >> --
> >> "Hey you! Would you help me to carry the stone?" Pink Floyd
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11290611
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


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

Re: AutoCompleter doesn't keeps value.

Posted by Felipe Rodrigues <fe...@yahoo.com.br>.
Found it...
Looking at Dojo attributes I found initialValue attribute.

My bad guys,

Thanks anyway.


Felipe


Felipe Rodrigues wrote:
> 
> Doesn't work even if I set value with "value" or "key" attribute.
> So weird.
> 
> Any other suggestion?
> 
> 
> []'s
> 
> Felipe
> 
> 
> Felipe Rodrigues wrote:
>> 
>> No,
>> 
>> Using keyName. I'll confirm, but I think I've already tried use value.
>> 
>> 
>> 
>> 
>> Musachy Barroso wrote:
>>> 
>>> Are you setting the value with the "value" attribute?
>>> 
>>> musachy
>>> 
>>> On 6/25/07, Felipe Rodrigues <fe...@yahoo.com.br> wrote:
>>>>
>>>>
>>>> Hi Guys,
>>>>
>>>> This time I'm trying to make a autocompleter component keep its value
>>>> when
>>>> its property comes populated from action.
>>>>
>>>> <input dojoType="struts:ComboBox"
>>>>                 name="autoCompleterKey"
>>>>                 keyName="autoCompleter"
>>>>                 dataUrl="/Mutuo2/PlantelVarietal!listVars.action?"
>>>>                 searchType="startstring"
>>>>                 dropdownHeight="100"
>>>>                 autoComplete="true"
>>>>                 loadOnType="true"
>>>>                 loadMinimum="1"
>>>>                 visibleDownArrow="true"
>>>>                 style="width: 149px;"/>
>>>>
>>>> If I type some value and choose that, this value is getting into the
>>>> action,
>>>> but if I have this value from the action, when loading the jsp page,
>>>> then
>>>> autocompleter doesn't keeps tha value.
>>>>
>>>> Any suggestion?
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> Felipe
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11290103
>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>
>>>>
>>> 
>>> 
>>> -- 
>>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11290665
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: AutoCompleter doesn't keeps value.

Posted by Felipe Rodrigues <fe...@yahoo.com.br>.
Doesn't work even if I set value with "value" or "key" attribute.
So weird.

Any other suggestion?


[]'s

Felipe


Felipe Rodrigues wrote:
> 
> No,
> 
> Using keyName. I'll confirm, but I think I've already tried use value.
> 
> 
> 
> 
> Musachy Barroso wrote:
>> 
>> Are you setting the value with the "value" attribute?
>> 
>> musachy
>> 
>> On 6/25/07, Felipe Rodrigues <fe...@yahoo.com.br> wrote:
>>>
>>>
>>> Hi Guys,
>>>
>>> This time I'm trying to make a autocompleter component keep its value
>>> when
>>> its property comes populated from action.
>>>
>>> <input dojoType="struts:ComboBox"
>>>                 name="autoCompleterKey"
>>>                 keyName="autoCompleter"
>>>                 dataUrl="/Mutuo2/PlantelVarietal!listVars.action?"
>>>                 searchType="startstring"
>>>                 dropdownHeight="100"
>>>                 autoComplete="true"
>>>                 loadOnType="true"
>>>                 loadMinimum="1"
>>>                 visibleDownArrow="true"
>>>                 style="width: 149px;"/>
>>>
>>> If I type some value and choose that, this value is getting into the
>>> action,
>>> but if I have this value from the action, when loading the jsp page,
>>> then
>>> autocompleter doesn't keeps tha value.
>>>
>>> Any suggestion?
>>>
>>>
>>> Thanks,
>>>
>>> Felipe
>>> --
>>> View this message in context:
>>> http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11290103
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>> 
>> 
>> -- 
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11290611
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: AutoCompleter doesn't keeps value.

Posted by Felipe Rodrigues <fe...@yahoo.com.br>.
No,

Using keyName. I'll confirm, but I think I've already tried use value.




Musachy Barroso wrote:
> 
> Are you setting the value with the "value" attribute?
> 
> musachy
> 
> On 6/25/07, Felipe Rodrigues <fe...@yahoo.com.br> wrote:
>>
>>
>> Hi Guys,
>>
>> This time I'm trying to make a autocompleter component keep its value
>> when
>> its property comes populated from action.
>>
>> <input dojoType="struts:ComboBox"
>>                 name="autoCompleterKey"
>>                 keyName="autoCompleter"
>>                 dataUrl="/Mutuo2/PlantelVarietal!listVars.action?"
>>                 searchType="startstring"
>>                 dropdownHeight="100"
>>                 autoComplete="true"
>>                 loadOnType="true"
>>                 loadMinimum="1"
>>                 visibleDownArrow="true"
>>                 style="width: 149px;"/>
>>
>> If I type some value and choose that, this value is getting into the
>> action,
>> but if I have this value from the action, when loading the jsp page, then
>> autocompleter doesn't keeps tha value.
>>
>> Any suggestion?
>>
>>
>> Thanks,
>>
>> Felipe
>> --
>> View this message in context:
>> http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11290103
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> 

-- 
View this message in context: http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11290418
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: AutoCompleter doesn't keeps value.

Posted by Musachy Barroso <mu...@gmail.com>.
Are you setting the value with the "value" attribute?

musachy

On 6/25/07, Felipe Rodrigues <fe...@yahoo.com.br> wrote:
>
>
> Hi Guys,
>
> This time I'm trying to make a autocompleter component keep its value when
> its property comes populated from action.
>
> <input dojoType="struts:ComboBox"
>                 name="autoCompleterKey"
>                 keyName="autoCompleter"
>                 dataUrl="/Mutuo2/PlantelVarietal!listVars.action?"
>                 searchType="startstring"
>                 dropdownHeight="100"
>                 autoComplete="true"
>                 loadOnType="true"
>                 loadMinimum="1"
>                 visibleDownArrow="true"
>                 style="width: 149px;"/>
>
> If I type some value and choose that, this value is getting into the
> action,
> but if I have this value from the action, when loading the jsp page, then
> autocompleter doesn't keeps tha value.
>
> Any suggestion?
>
>
> Thanks,
>
> Felipe
> --
> View this message in context:
> http://www.nabble.com/AutoCompleter-doesn%27t-keeps-value.-tf3977359.html#a11290103
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


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