I am trying to make a @ManyToOne field read only in certain cases. It should be displayed so the user knows about it and the Save keeps it but editable. In most case it will be editable.
I have tried
and various possibilities
with no luck so far: it works perfectly for primitives but not for references.
Can anybody help?
Try getView().setKeyEditable(false) if you are in the view, if are outside then getView().getSubView(viewNama).setKeyEditable(false)
Hope this help.
Yes it did help a lot: everything works now.