Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Evaluating a javascript expression in order to set the readonly    attribute

Dave Newton

2007-08-13

Replies:

--- 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:

%{editingFlag}

d.



   
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

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

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