Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2: Disable textfield

 
Nick Sher
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Struts2 version: 2.1.6
I need to disable a textfield but its not working. Here is what I have until now:


I pass the tiles attribute like this:


This is not disabling the textfield. What I am doing wrong? I tried %{#isDisabled} also and it does not work. Please help.
 
Nick Sher
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops I forgot that readonly attribute does the trick. Resolved now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic