Select tags are the most difficult to manage, all other fields are quite easy.

With selects, you'll face two major issues making it a little more complex:
- get the label to show on the screen (yes, it seems easy, but try to manage 
option-collections, option-enumeration, simple options....)
- dropdown menus loaded using an ajax request

Actually I didn't find any simple solution.
I just hide the dropdown, create a div and use javascript to copy the label 
from the selected option inside the div.


  "Erik Lumpkin" <[email protected]> a écrit dans le message de news: 
[email protected]...
  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
------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to