Re: struts html:checkbox value

2006-01-26 Thread Pham Anh Tuan

Dear Vidya,

there's a solution, in reset method of your form bean, you should set all 
your checkbox to false. ;)


- Original Message - 
From: Vidya (Suvarna) Mahavadi [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, January 26, 2006 4:37 PM
Subject: struts html:checkbox value




Hi ,



If a check box is disabled and checked does it submit the value true? I
have a situation where it is not submitting the disabled checkbox
properties. Is there a work around for this...



Regards,
Vidya


This message and any attachments are confidential and intended solely for 
the addressee. If you have received this message in error, please notify 
Discovery immediately, telephone number +27 11 529 2888. Any unauthorised 
use; alteration or dissemination of the contents of this email is strictly 
prohibited. In no event will Discovery or the sender be liable in any manner 
whatsoever to any person for any loss or any direct, indirect, special or 
consequential damages arising from use of this email or any linked website, 
including, without limitation, from any lost profits, business interruption, 
loss of programmes or other data that may be stored on any information 
handling system or otherwise from any assurance that this email is virus 
free even if Discovery is expressly advised of the possibility of such 
damages. Discovery is an Authorised Financial Services Provider.




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



RE: struts html:checkbox value

2006-01-26 Thread Vidya \(Suvarna\) Mahavadi
I did. But it does not help. 

I have a form with a huge list of data (which I am displaying in pages,
10 per page) and a save button which saves the data (on the current
page) and reloads the page. When it submits the form it is ignoring the
disabled check boxes (always submits as false), it should actually
submit the Boolean properties of them. Any ideas on this please...


Vidya

-Original Message-
From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] 
Sent: Thursday 26 January 2006 11:53
To: Struts Users Mailing List
Subject: Re: struts html:checkbox value

Dear Vidya,

there's a solution, in reset method of your form bean, you should set
all 
your checkbox to false. ;)

- Original Message - 
From: Vidya (Suvarna) Mahavadi [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, January 26, 2006 4:37 PM
Subject: struts html:checkbox value




Hi ,



If a check box is disabled and checked does it submit the value true? I
have a situation where it is not submitting the disabled checkbox
properties. Is there a work around for this...



Regards,
Vidya


This message and any attachments are confidential and intended solely
for 
the addressee. If you have received this message in error, please notify

Discovery immediately, telephone number +27 11 529 2888. Any
unauthorised 
use; alteration or dissemination of the contents of this email is
strictly 
prohibited. In no event will Discovery or the sender be liable in any
manner 
whatsoever to any person for any loss or any direct, indirect, special
or 
consequential damages arising from use of this email or any linked
website, 
including, without limitation, from any lost profits, business
interruption, 
loss of programmes or other data that may be stored on any information 
handling system or otherwise from any assurance that this email is virus

free even if Discovery is expressly advised of the possibility of such 
damages. Discovery is an Authorised Financial Services Provider.



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

This message and any attachments are confidential and intended solely for the 
addressee. If you have received this message in error, please notify Discovery 
immediately, telephone number +27 11 529 2888. Any unauthorised use; alteration 
or dissemination of the contents of this email is strictly prohibited. In no 
event will Discovery or the sender be liable in any manner whatsoever to any 
person for any loss or any direct, indirect, special or consequential damages 
arising from use of this email or any linked website, including, without 
limitation, from any lost profits, business interruption, loss of programmes or 
other data that may be stored on any information handling system or otherwise 
from any assurance that this email is virus free even if Discovery is expressly 
advised of the possibility of such damages. Discovery is an Authorised 
Financial Services Provider.

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



Re: struts html:checkbox value

2006-01-26 Thread Niall Pemberton
On 1/26/06, Vidya (Suvarna) Mahavadi [EMAIL PROTECTED] wrote:

 Hi ,

 If a check box is disabled and checked does it submit the value true? I
 have a situation where it is not submitting the disabled checkbox
 properties. Is there a work around for this...

This is a browser / HTTP isssue - disabled fields don't get submitted.

Niall

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



Re: struts html:checkbox value

2006-01-26 Thread Pham Anh Tuan

I think you should compare the original data with the submited data,

ex: before you submit new changes, you have 5 checked box, after that, you 
choose only 3 checkbox are checked, so, after your form is submited, you 
should check the differences...


hiz, hope you understand what I mean :(

- Original Message - 
From: Vidya (Suvarna) Mahavadi [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, January 26, 2006 5:16 PM
Subject: RE: struts html:checkbox value


I did. But it does not help.

I have a form with a huge list of data (which I am displaying in pages,
10 per page) and a save button which saves the data (on the current
page) and reloads the page. When it submits the form it is ignoring the
disabled check boxes (always submits as false), it should actually
submit the Boolean properties of them. Any ideas on this please...


Vidya

-Original Message-
From: Pham Anh Tuan [mailto:[EMAIL PROTECTED]
Sent: Thursday 26 January 2006 11:53
To: Struts Users Mailing List
Subject: Re: struts html:checkbox value

Dear Vidya,

there's a solution, in reset method of your form bean, you should set
all
your checkbox to false. ;)

- Original Message - 
From: Vidya (Suvarna) Mahavadi [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, January 26, 2006 4:37 PM
Subject: struts html:checkbox value




Hi ,



If a check box is disabled and checked does it submit the value true? I
have a situation where it is not submitting the disabled checkbox
properties. Is there a work around for this...



Regards,
Vidya


This message and any attachments are confidential and intended solely
for
the addressee. If you have received this message in error, please notify

Discovery immediately, telephone number +27 11 529 2888. Any
unauthorised
use; alteration or dissemination of the contents of this email is
strictly
prohibited. In no event will Discovery or the sender be liable in any
manner
whatsoever to any person for any loss or any direct, indirect, special
or
consequential damages arising from use of this email or any linked
website,
including, without limitation, from any lost profits, business
interruption,
loss of programmes or other data that may be stored on any information
handling system or otherwise from any assurance that this email is virus

free even if Discovery is expressly advised of the possibility of such
damages. Discovery is an Authorised Financial Services Provider.



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

This message and any attachments are confidential and intended solely for 
the addressee. If you have received this message in error, please notify 
Discovery immediately, telephone number +27 11 529 2888. Any unauthorised 
use; alteration or dissemination of the contents of this email is strictly 
prohibited. In no event will Discovery or the sender be liable in any manner 
whatsoever to any person for any loss or any direct, indirect, special or 
consequential damages arising from use of this email or any linked website, 
including, without limitation, from any lost profits, business interruption, 
loss of programmes or other data that may be stored on any information 
handling system or otherwise from any assurance that this email is virus 
free even if Discovery is expressly advised of the possibility of such 
damages. Discovery is an Authorised Financial Services Provider.


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




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



RE: struts html:checkbox value

2006-01-26 Thread Vidya \(Suvarna\) Mahavadi
Is there a work around for this..

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Thursday 26 January 2006 12:24
To: Struts Users Mailing List
Subject: Re: struts html:checkbox value

On 1/26/06, Vidya (Suvarna) Mahavadi [EMAIL PROTECTED] wrote:

 Hi ,

 If a check box is disabled and checked does it submit the value true?
I
 have a situation where it is not submitting the disabled checkbox
 properties. Is there a work around for this...

This is a browser / HTTP isssue - disabled fields don't get submitted.

Niall

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

This message and any attachments are confidential and intended solely for the 
addressee. If you have received this message in error, please notify Discovery 
immediately, telephone number +27 11 529 2888. Any unauthorised use; alteration 
or dissemination of the contents of this email is strictly prohibited. In no 
event will Discovery or the sender be liable in any manner whatsoever to any 
person for any loss or any direct, indirect, special or consequential damages 
arising from use of this email or any linked website, including, without 
limitation, from any lost profits, business interruption, loss of programmes or 
other data that may be stored on any information handling system or otherwise 
from any assurance that this email is virus free even if Discovery is expressly 
advised of the possibility of such damages. Discovery is an Authorised 
Financial Services Provider.

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



Re: struts html:checkbox value

2006-01-26 Thread Tamas Szabo
On 1/26/06, Vidya (Suvarna) Mahavadi [EMAIL PROTECTED] wrote:

 Is there a work around for this..



Can the user change the value of the checkboxes?
I mean they are always disabled or you enable/disable them dynamically?

Tamas


Re: struts html:checkbox value

2006-01-26 Thread Niall Pemberton
On 1/26/06, Vidya (Suvarna) Mahavadi [EMAIL PROTECTED] wrote:
 Is there a work around for this..

Not a simple one - for text or textarea elements the readonly
attribute would do the job you're looking for, but from memory
readonly isn't part of the html 4 standard for checkbox.

One approach you could take is to render a checkbox and a hidden field
and use some JavaScript to change the value of the hidden field.

Alternatively you could use either the logic tags or JSTL to render
different elements depending on some condition - i.e. either a
checkbox (enabled) or a hidden field and value (disabled).

Niall

 -Original Message-
 From: Niall Pemberton [mailto:[EMAIL PROTECTED]
 Sent: Thursday 26 January 2006 12:24

 On 1/26/06, Vidya (Suvarna) Mahavadi [EMAIL PROTECTED] wrote:
 
  Hi ,
 
  If a check box is disabled and checked does it submit the value true?
 I
  have a situation where it is not submitting the disabled checkbox
  properties. Is there a work around for this...

 This is a browser / HTTP isssue - disabled fields don't get submitted.

 Niall

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



RE: struts html:checkbox value

2006-01-26 Thread Vidya \(Suvarna\) Mahavadi
Thanks for all the responses. It helped me to find an alternative for
this. I am using a property for the 'disabled' in my bean and if it is
true I am setting the checkbox properties. 

Vidya

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Thursday 26 January 2006 13:04
To: Struts Users Mailing List
Subject: Re: struts html:checkbox value

On 1/26/06, Vidya (Suvarna) Mahavadi [EMAIL PROTECTED] wrote:
 Is there a work around for this..

Not a simple one - for text or textarea elements the readonly
attribute would do the job you're looking for, but from memory
readonly isn't part of the html 4 standard for checkbox.

One approach you could take is to render a checkbox and a hidden field
and use some JavaScript to change the value of the hidden field.

Alternatively you could use either the logic tags or JSTL to render
different elements depending on some condition - i.e. either a
checkbox (enabled) or a hidden field and value (disabled).

Niall

 -Original Message-
 From: Niall Pemberton [mailto:[EMAIL PROTECTED]
 Sent: Thursday 26 January 2006 12:24

 On 1/26/06, Vidya (Suvarna) Mahavadi [EMAIL PROTECTED] wrote:
 
  Hi ,
 
  If a check box is disabled and checked does it submit the value
true?
 I
  have a situation where it is not submitting the disabled checkbox
  properties. Is there a work around for this...

 This is a browser / HTTP isssue - disabled fields don't get submitted.

 Niall

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

This message and any attachments are confidential and intended solely for the 
addressee. If you have received this message in error, please notify Discovery 
immediately, telephone number +27 11 529 2888. Any unauthorised use; alteration 
or dissemination of the contents of this email is strictly prohibited. In no 
event will Discovery or the sender be liable in any manner whatsoever to any 
person for any loss or any direct, indirect, special or consequential damages 
arising from use of this email or any linked website, including, without 
limitation, from any lost profits, business interruption, loss of programmes or 
other data that may be stored on any information handling system or otherwise 
from any assurance that this email is virus free even if Discovery is expressly 
advised of the possibility of such damages. Discovery is an Authorised 
Financial Services Provider.

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



RE: Struts html:checkbox

2004-11-05 Thread Robert Taylor
Set the corresponding form property to true prior to loading the page.
If the actual form property value equals the ${boolValue}, then the 
checkbox should render as checked. That is, it should produce the 
appropriate HTML which should render the checkbox as checked.

robert

 -Original Message-
 From: Jean-Philippe Couture [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 05, 2004 11:56 AM
 To: [EMAIL PROTECTED]
 Subject: Struts html:checkbox
 
 
 Hi,
 
 Sorry if this problem has already been solved, I cannot seem to find
 anything in the Struts List Archive...
 
 I have an Action class that sets, in the ActionForward method of the
 said Action class, an attribute of an object in the request scope to
 push it to the presentation layer (JSP). In the JSP form, I use
 exclusively Custom Struts Tag to display data from the object in the
 request scope.
 
 Everything works greatly except for that
 html:checkbox property=propName
 value=${boolValue}/html:checkbox which doesn't seem to render the
 checked=checked attribute. The value of the value attribute is
 set to true... but for some reason, I can't seem to get it render
 checked on load.
 
 Is there a way to get a html:checkbox render as checked upon JSP load?
 
 
 Best regards,
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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