Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set readOnly property using javascript

821253Mar 6 2012 — edited Mar 8 2012
Hi Folks,

How do I make an inputtext readOnly using javascript?

I have tried the following
var textComp = AdfPage.PAGE.findComponent("textId");
textComp.setProperty('readOnly', 'true');
var textComp = AdfPage.PAGE.findComponent("textId");
textComp.readOnly = true;
var textComp = AdfPage.PAGE.findComponent("textId");
textComp.setAttribute('readOnly', 'true');
None of the above works. Any idea?

Thanks
Vishal
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 5 2012
Added on Mar 6 2012
8 comments
1,587 views