aspose file tools*
The moose likes Struts and the fly likes Struts2: Disable textfield Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2: Disable textfield" Watch "Struts2: Disable textfield" New topic
Author

Struts2: Disable textfield

Nick Sher
Ranch Hand

Joined: Nov 10, 2008
Posts: 78
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
Nick Sher
Ranch Hand

Joined: Nov 10, 2008
Posts: 78
oops I forgot that readonly attribute does the trick. Resolved now.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts2: Disable textfield