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]

Reply via email to