I am trying to make an attribute of an entity readOnly on the edit page. So I want all the attributes editable except for the course.name. I tried to add the following rule but it doesnot make the attribute readOnly. I tried this with disabled keyword as well, but no luck.

100 : (task = 'edit' and entity.name = 'SamsSchoolCourse' and pageConfiguration = 'EditSamsSchoolCourse') => readOnly = "true" [com.webobjects.directtoweb.Assignment]

Any suggestions?