• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

html:select disabled

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody
Is there any way i can make select tag readonly. i donot want to grey out the select tag
Thanks
 
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
set disabled attribute to 'true'. it WILL grey out the box, but that's browser-dependent on how disabled is handled. you can also just display the form value <bean:write name="MyForm" property="theFieldName"/> (i think that's the syntax).
 
nachagoni rishi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks alan the below tag did work for me.
<bean:write name="MyForm" property="theFieldName"/>
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

nachagoni rishi wrote:Thanks alan the below tag did work for me.
<bean:write name="MyForm" property="theFieldName"/>


Hi, I also want to make a combo:box readonly but dont want to use disable is there any other way........................
 
Ranch Hand
Posts: 300
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi shahbaz,

I would like to suggest you to go through this link http://struts.apache.org/2.0.6/docs/combobox.html . It has different attribute for the tag.readonly is also there. Its easy to find..try to do soem googling which is the best way to learn.


Regards
Jatan
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic