You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by xianwinwin <xi...@gmail.com> on 2008/10/06 21:45:19 UTC

howto cache the textfield

I have a textfield where a user input information.


<s:textfield 		name="employee.destination" 			label="Destination"	
required="false" 	size="15" 		/>

My question is this: how can I give the user previous input that he provided
once he clicks the textfield; in other word, when he clicks (or double
click) the textfield he can see (in a drop down box) what he entered before.

for some reason, this works for some textfields and for some it doesn't (I
guess it's not a struts issue).
but still I wonder how to do that. 

thank you!
-- 
View this message in context: http://www.nabble.com/howto-cache-the-textfield-tp19844989p19844989.html
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: howto cache the textfield

Posted by Paweł Wielgus <po...@gmail.com>.
Hi,
you can create ajax action that will call your application and ask for
the last entered values for field myField.
But it would require to remember all entered values by users.
When you will have those values You can simply do something like google suggest.
I haven't done anything like that, so i cant be more specific,
it's just a matter of remebering entered values per field and using
ajax to grab them.

Best greetings,
Paweł Wielgus.


2008/10/7 xianwinwin <xi...@gmail.com>:
>
> Hi Pawel,
> thank you for your reply.  You mentioned: "But You can achieve the same by
> adding ajax to this field" how can I achieve that?
> Thank you!
>
>
>
> Paweł Wielgus wrote:
>>
>> Hi xianwinwin,
>> it's a firefox feature - remember entered form values or something like
>> this,
>> so yes it has nothing to do with struts.
>> But You can achieve the same by adding ajax to this field
>> and remembering all posted data in Your app.
>>
>> Best greetings,
>> Paweł Wielgus.
>>
>> 2008/10/6 xianwinwin <xi...@gmail.com>:
>>>
>>> I have a textfield where a user input information.
>>>
>>>
>>> <s:textfield            name="employee.destination"
>>> label="Destination"
>>> required="false"        size="15"               />
>>>
>>> My question is this: how can I give the user previous input that he
>>> provided
>>> once he clicks the textfield; in other word, when he clicks (or double
>>> click) the textfield he can see (in a drop down box) what he entered
>>> before.
>>>
>>> for some reason, this works for some textfields and for some it doesn't
>>> (I
>>> guess it's not a struts issue).
>>> but still I wonder how to do that.
>>>
>>> thank you!
>>> --
>>> View this message in context:
>>> http://www.nabble.com/howto-cache-the-textfield-tp19844989p19844989.html
>>> 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
>>>
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/howto-cache-the-textfield-tp19844989p19858526.html
> 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: howto cache the textfield

Posted by xianwinwin <xi...@gmail.com>.
Hi Pawel,
thank you for your reply.  You mentioned: "But You can achieve the same by
adding ajax to this field" how can I achieve that? 
Thank you!



Paweł Wielgus wrote:
> 
> Hi xianwinwin,
> it's a firefox feature - remember entered form values or something like
> this,
> so yes it has nothing to do with struts.
> But You can achieve the same by adding ajax to this field
> and remembering all posted data in Your app.
> 
> Best greetings,
> Paweł Wielgus.
> 
> 2008/10/6 xianwinwin <xi...@gmail.com>:
>>
>> I have a textfield where a user input information.
>>
>>
>> <s:textfield            name="employee.destination"                    
>> label="Destination"
>> required="false"        size="15"               />
>>
>> My question is this: how can I give the user previous input that he
>> provided
>> once he clicks the textfield; in other word, when he clicks (or double
>> click) the textfield he can see (in a drop down box) what he entered
>> before.
>>
>> for some reason, this works for some textfields and for some it doesn't
>> (I
>> guess it's not a struts issue).
>> but still I wonder how to do that.
>>
>> thank you!
>> --
>> View this message in context:
>> http://www.nabble.com/howto-cache-the-textfield-tp19844989p19844989.html
>> 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
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/howto-cache-the-textfield-tp19844989p19858526.html
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: howto cache the textfield

Posted by Jishnu Viswanath <ji...@tavant.com>.
Hi xianwinwin,
	Pawel is correct, when you have a text field with name="Something" next time you come to page that contains text field with same name then you can double click it and get it.

I still did not get what you want to do, add the feature for not getting text fields, or remove feature for already getting text fields?

Regards,

Jishnu Viswanath

Software Engineer

*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll

Tavant Technologies Inc.,

www.tavant.com

PEOPLE :: PASSION :: EXCELLENCE


-----Original Message-----
From: Paweł Wielgus [mailto:poulwiel@gmail.com] 
Sent: Tuesday, October 07, 2008 12:06 PM
To: Struts Users Mailing List
Subject: Re: howto cache the textfield

Hi xianwinwin,
it's a firefox feature - remember entered form values or something like this,
so yes it has nothing to do with struts.
But You can achieve the same by adding ajax to this field
and remembering all posted data in Your app.

Best greetings,
Paweł Wielgus.

2008/10/6 xianwinwin <xi...@gmail.com>:
>
> I have a textfield where a user input information.
>
>
> <s:textfield            name="employee.destination"                     label="Destination"
> required="false"        size="15"               />
>
> My question is this: how can I give the user previous input that he provided
> once he clicks the textfield; in other word, when he clicks (or double
> click) the textfield he can see (in a drop down box) what he entered before.
>
> for some reason, this works for some textfields and for some it doesn't (I
> guess it's not a struts issue).
> but still I wonder how to do that.
>
> thank you!
> --
> View this message in context: http://www.nabble.com/howto-cache-the-textfield-tp19844989p19844989.html
> 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
>
>
Any comments or statements made in this email are not necessarily those of Tavant Technologies.
The information transmitted is intended only for the person or entity to which it is addressed and may 
contain confidential and/or privileged material. If you have received this in error, please contact the 
sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies 
may be subject to our monitoring procedures.


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


Re: howto cache the textfield

Posted by Paweł Wielgus <po...@gmail.com>.
Hi xianwinwin,
it's a firefox feature - remember entered form values or something like this,
so yes it has nothing to do with struts.
But You can achieve the same by adding ajax to this field
and remembering all posted data in Your app.

Best greetings,
Paweł Wielgus.

2008/10/6 xianwinwin <xi...@gmail.com>:
>
> I have a textfield where a user input information.
>
>
> <s:textfield            name="employee.destination"                     label="Destination"
> required="false"        size="15"               />
>
> My question is this: how can I give the user previous input that he provided
> once he clicks the textfield; in other word, when he clicks (or double
> click) the textfield he can see (in a drop down box) what he entered before.
>
> for some reason, this works for some textfields and for some it doesn't (I
> guess it's not a struts issue).
> but still I wonder how to do that.
>
> thank you!
> --
> View this message in context: http://www.nabble.com/howto-cache-the-textfield-tp19844989p19844989.html
> 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
>
>