Friday, January 20, 2012

New property in XPages - Show read only as disabled

Some time back I had blogged about creating a read only edit box in XPage. But with Lotus Notes 8.5.3 there is a new property which does this for you - Show read only as disabled.

Just enable this property along with the "Read-only" property and your control, instead of being rendered as text, will be rendered as a non-editable field. In the source you will get an attribute showReadonlyAsDisabled set to true. Your XPage source would be something like this:


While in your generated HTML the control would contain the readOnly attribute.


But I find the wordings of this property a bit confusing as it says - show read only as disabled - but instead of the control being disabled it shows it as readonly and these two properties aren't exactly same.

No comments:

Post a Comment