[Engine-devel] webadmin: How to make a text box readonly.

Kanagaraj kmayilsa at redhat.com
Tue Feb 5 04:36:28 UTC 2013


Hi,

  If you have a corresponding EnityModel for that Editor, you could use 
entityModel.setIsChangable(false). Now the textbox will be grayed out 
and the user will not be able to edit the value.
  For setting a default value, you can use entityModel.setEntity("XYZ").

Thanks,
Kanagaraj

On 02/05/2013 12:42 AM, snmishra at linux.vnet.ibm.com wrote:
> Hi,
>
>    I am trying to populate a text box (EntityModelTextBoxOnlyEditor) 
> with a default value that is read only (can't be changed by user). Can 
> someone help me with how I can do that?
>
> Thanks
> Sharad Mishra
>
> _______________________________________________
> Engine-devel mailing list
> Engine-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel




More information about the Engine-devel mailing list