Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

[S2] Set textfield readonly property from action class

Milan Milanovic

2008-11-28

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi,

I have defined edittingMode (String and boolean, I tried both) in my action
class with get/set methods and in resulting jsp I defined:

<s:textfield id="id" label="Id" name="id" readonly="%{edittingMode)"/>

But if I set edditingMode = "true" or edittingMode = true (in case of
boolean), textfield never become readonly! I'm using Struts 2.0.11.1. What
is the problem ?

--
Thx, Milan
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.