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


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Struts2: Disable textfield
 
Similar Threads
Struts2 checkboxes returning values in Action class
Struts2 test condition in s:if not working
Struts2 - if tag - OR condition
conditional tags not working - struts2
<s:textfield value="NEED_TO_CHECK_CONDITION" name="testField"/>