struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
Subject Re: Evaluating a javascript expression in order to set the readonly attribute
Date Mon, 13 Aug 2007 11:45:27 GMT
--- Session A Mwamufiya wrote:
> <s:textfield name="name" label="Name"
> readonly="if(%{editingFlag==true}){return 'true'}"/>
> but the textfield is not readonly, and the page
> source reflects it.  BTW, editingFlag is set in the
> prepare() method of my action.
> Any idea on how to write the evaluation?

Try something like:



Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message