RE: How to retain form data when disabling input in html:text

2006-02-21 Thread Wang, Hansen
That is display problem. You can use css to make the field gray or red
etc. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 21, 2006 3:57 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]; Struts Users Mailing List
Subject: Re: How to retain form data when disabling input in html:text

Thanks Craig:
I worked for what I wanted to achieve.
Only with read-only property setting, it does not grey out input
text field.
I have to find out what to set so that it changes appearance
when read-only property is set.
Thanks.
Digant




"Craig McClanahan" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED]
02/21/2006 05:14 PM
Please respond to "Struts Users Mailing List"

 
To: "Struts Users Mailing List" 
    cc: 
    Subject:    Re: How to retain form data when disabling input
in html:text


On 2/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> I have  I

> populate html:text with data from DB.
> I want to disable input for this property, but when I get form data 
> back in Action form bean does not have data for
this
> property "bucketName"
>
> How do i retain data after disabling input in html:text.


Short answer ... you cannot.  By defintion in HTML, disabled fields are
not sent to the server, so the server has no opportunity to keep them
for you.
On the other hand, if you make the field read only instead of disabled,
the value *will* be sent to the server ... but the user will not be able
to edit it.

Thanks.


Craig


This communication is for informational purposes only. It is not
intended
> as an offer or solicitation for the purchase or sale of any financial 
> instrument or as an official confirmation of any transaction. All 
> market prices, data and other information are not warranted as to 
> completeness or accuracy and are subject to change without notice. Any

> comments or statements made herein do not necessarily reflect those of

> JPMorgan Chase & Co., its
subsidiaries
> and affiliates
>
>
>




This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of any
financial instrument or as an official confirmation of any transaction.
All market prices, data and other information are not warranted as to
completeness or accuracy and are subject to change without notice. Any
comments or statements made herein do not necessarily reflect those of
JPMorgan Chase & Co., its subsidiaries and affiliates.


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



Re: How to retain form data when disabling input in html:text

2006-02-21 Thread Michael Jouravlev
On 2/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have 
> I populate html:text with data from DB.
> I want to disable input for this property, but
> when I get form data back in Action form bean does not have data for this
> property "bucketName"
>
> How do i retain data after disabling input in html:text.

Use session-scoped form or reload this value each time from the database.

Michael.

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



Re: How to retain form data when disabling input in html:text

2006-02-21 Thread digant . k . joshi
Thanks Craig:
I worked for what I wanted to achieve.
Only with read-only property setting, it does not grey out input 
text field.
I have to find out what to set so that it changes appearance when 
read-only property is set.
Thanks.
Digant




"Craig McClanahan" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
02/21/2006 05:14 PM
Please respond to "Struts Users Mailing List"

 
To: "Struts Users Mailing List" 
    cc: 
    Subject:    Re: How to retain form data when disabling input in 
html:text


On 2/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:
>
> I have 
> I populate html:text with data from DB.
> I want to disable input for this property, but
> when I get form data back in Action form bean does not have data for 
this
> property "bucketName"
>
> How do i retain data after disabling input in html:text.


Short answer ... you cannot.  By defintion in HTML, disabled fields are 
not
sent to the server, so the server has no opportunity to keep them for you.
On the other hand, if you make the field read only instead of disabled, 
the
value *will* be sent to the server ... but the user will not be able to 
edit
it.

Thanks.


Craig


This communication is for informational purposes only. It is not intended
> as an offer or solicitation for the purchase or sale of any financial
> instrument or as an official confirmation of any transaction. All market
> prices,
> data and other information are not warranted as to completeness or
> accuracy and
> are subject to change without notice. Any comments or statements made
> herein
> do not necessarily reflect those of JPMorgan Chase & Co., its 
subsidiaries
> and affiliates
>
>
>




This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates.

Re: How to retain form data when disabling input in html:text

2006-02-21 Thread Craig McClanahan
On 2/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I have 
> I populate html:text with data from DB.
> I want to disable input for this property, but
> when I get form data back in Action form bean does not have data for this
> property "bucketName"
>
> How do i retain data after disabling input in html:text.


Short answer ... you cannot.  By defintion in HTML, disabled fields are not
sent to the server, so the server has no opportunity to keep them for you.
On the other hand, if you make the field read only instead of disabled, the
value *will* be sent to the server ... but the user will not be able to edit
it.

Thanks.


Craig


This communication is for informational purposes only. It is not intended
> as an offer or solicitation for the purchase or sale of any financial
> instrument or as an official confirmation of any transaction. All market
> prices,
> data and other information are not warranted as to completeness or
> accuracy and
> are subject to change without notice. Any comments or statements made
> herein
> do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
> and affiliates
>
>
>


How to retain form data when disabling input in html:text

2006-02-21 Thread digant . k . joshi
I have 
I populate html:text with data from DB.
I want to disable input for this property, but
when I get form data back in Action form bean does not have data for this 
property "bucketName"

How do i retain data after disabling input in html:text.

Thanks.

This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates