Re: Setting disable attribute dynamically

2008-03-13 Thread Richard Sayre
Ha ha I was trying this and couldn;t get it to work. My mistake was fullAccess = true, so readOnly="%{fullAccess}" was returning true, i meant to say readOnly="%{!fullAccess}". thanks On Thu, Mar 13, 2008 at 1:01 PM, Rushikesh Thakkar <[EMAIL PROTECTED]> wrote: > I have done it.. It goes like t

Re: Setting disable attribute dynamically

2008-03-13 Thread Rushikesh Thakkar
I have done it.. It goes like this: (1) The Action: public class PrepareScreen extends ActionSupport { private String yesOrNo; public String execute() throws Exception { yesOrNo = "true"; return SUCCESS; } public String getYesOrNo() { return yesOrNo;

Re: Setting disable attribute dynamically

2008-03-13 Thread Richard Sayre
I made a slight error readonly="%{fullAccess}" with s:textfield does not work but readonly="true" /> works. On Thu, Mar 13, 2008 at 10:48 AM, Richard Sayre <[EMAIL PROTECTED]> wrote: > If the disable attribute is present in a HTML tag it will be disable, > no matter what the value of the attri

Setting disable attribute dynamically

2008-03-13 Thread Richard Sayre
If the disable attribute is present in a HTML tag it will be disable, no matter what the value of the attribute is. So if I have a s:select and I say disabled="false" it will be disabled (renders disabled="disabled"). But if we have a text, and we set readonly="false" it will not be editable. O