I didn't think to specifiy it before, but I ran into the issue with a 'select.'
And those don't have a readonly attribute. But I get your point. Basically
just don't use 'disabled' for checkboxes and selects.
I suspect I'll just not use a select in the case where I would've disabled it.
My coworker has suggested creating a tag file that we can pass the necessary
params to and it can either render a bit of text with the value (simulating the
disabled functionality) or a typical s:select. I haven't created it yet so I
don't know if I'll hit any unexpected trouble, but it seems pretty doable.
All our science, measured against reality, is primitive and childlike
- and yet it is the most precious thing we have. - A. Einstein
________________________________
From: "Newman, John W" <[email protected]>
To: Stripes Users List <[email protected]>
Sent: Tuesday, June 23, 2009 8:56:35 AM
Subject: Re: [Stripes-users] Stripes tag - disabled="true" will bind a null
value?
Yep, disabled form fields are not included in the HTTP post.
http://www.w3.org/TR/html401/interact/forms.html#adef-disabled Stupid decision
that only causes problems IMO..
You have to use readonly=true and some css to simulate disabled
if you need it to be included the post.
From:CN Yee
[mailto:[email protected]]
Sent: Tuesday, June 23, 2009 2:25 AM
To: [email protected]
Subject: [Stripes-users] Stripes tag - disabled="true" will
bind a null value?
Hi,
I have a <stripes:select disabled="true"> tag.
I just discovered that the disabled="true" is setting null to my
actionBean object.
Is that the intended behavior? Is there a way to disable it?
Many thanks
Yee
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users