Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:select disabled

 
nachagoni rishi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • 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
 
alan do
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks alan the below tag did work for me.
<bean:write name="MyForm" property="theFieldName"/>
 
shahbaz aamir
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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........................
 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic