I would probably vote for _javascript_ that always sets the value of the checkbox back to the original value on check. That way it still looks correct, but the user cannot change its value. The only problem I could see is to make sure a value isn't posted back if possible, otherwise someone could just disable the _javascript_, change the value and then submit

On 12/21/05, Yee CN <[EMAIL PROTECTED]> wrote:
You are right Greg - there are many limitations of html that we have to live
with and many 'hack's to work around them. JSF is a perfect place to
consolidate these 'hack's and give us a more decent framework to work with.

Regards,
Yee

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 21 December 2005 11:42 PM
To: [email protected]; [EMAIL PROTECTED]
Subject: RE: Re: Proposal: true readonly Checkboxes as gif image

Mmh... That's what I was thinking. In any case, there are some other
problems like these that I've had to cope with, such as a text limit on
a textarea (not just the jsf version but the html component as well, and
I imagine it's the same for the checkbox problem you're having). It'd be
simple to do add that property on the myfaces component that would add
the _javascript_ "hack" many use to overcome that problem to the page.

I would imagine something similar could be done for the checkbox as a
'hack' as well?

Greg



Reply via email to