How to repeat: Open a group config page (i used datasource compat group). Click edit. Now edit a homogenous value, change it to heterogenous via the modal dialog's "set all values to" function. Click OK. Now click the main page Reset button. Nothing happens. It should restore the homogenous value. The same is true if you go from heterogenous and set it to homogenous and try to reset. Nothing happens.
Fixed by making RESET button do a server-based reset of the form rather than a client-based one - r3404. Specifically, replaced: <h:commandButton type="reset" value="RESET" title="Click to Reset All Properties to Their Original Values" styleClass="buttonmed"/> with: <h:commandButton type="submit" immediate="true" action="#{EditGroupResourceConfigurationUIBean.reset}" value="RESET" title="Click to Reset All Properties to Their Original Values" styleClass="buttonmed"/> and: @End public void reset() { FacesContextUtility.addMessage(FacesMessage.SEVERITY_INFO, "All properties reset to original values."); this.redirect.setViewId(VIEW_ID); this.redirect.execute(); return; }
Fixed - reset will now reload from the server. Works as expected now. rev3416
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1759 This bug is related to RHQ-1758