Red Hat Bugzilla – Bug 995755
webadmin [Tree]: should inform user why name cannot be edited in tree context
Last modified: 2013-08-10 17:30:17 EDT
Description of problem:
When a specific item is selected in the left-pane tree, and a user tries to edit that item, the name is disabled for editing because the item is currently selected. This is the correct behavior. However, there should also be a message printed to the user that explains *why* the name cannot be edited.
There is code in the application to show a message, but it is not working.
innerHostModel.getName().setInfo("Cannot edit Host's Name in this tree context"); //$NON-NLS-1$
At current count there are about 20 of these in uicommonweb. I don't see any evidence that the application uses these messages.
Steps to Reproduce:
1. Select an actual host in the tree.
2. Click edit.
3. You cannot edit the host name. There is no help to tell you why.
There is no help to tell you why you cannot edit the name.
There should be a message shown that says something like "Cannot edit Host's Name in this tree context"
setInfo is deprecated. it should be replaced with a call to "setChangeProhibitionReason". this will be taken care of in the context of bug 995754 -> marking as duplicate.
*** This bug has been marked as a duplicate of bug 995754 ***