Bug 535019 (RHQ-1759) - Group config page Reset button doesn't restore values changed via the modal dialog
Summary: Group config page Reset button doesn't restore values changed via the modal d...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: RHQ-1759
Product: RHQ Project
Classification: Other
Component: Configuration
Version: 1.2
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Ian Springer
QA Contact: Jeff Weiss
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks: RHQ-1386
TreeView+ depends on / blocked
 
Reported: 2009-03-10 17:53 UTC by Jeff Weiss
Modified: 2014-11-09 22:48 UTC (History)
2 users (show)

Fixed In Version: 1.2
Clone Of:
Environment:
rev3351
Last Closed:
Embargoed:
jweiss: archived+


Attachments (Terms of Use)

Description Jeff Weiss 2009-03-10 17:53:00 UTC
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.

Comment 1 Ian Springer 2009-03-12 12:24:57 UTC
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;
    }


Comment 2 Jeff Weiss 2009-03-17 20:28:30 UTC
Fixed - reset will now reload from the server.  Works as expected now.  rev3416

Comment 3 Red Hat Bugzilla 2009-11-10 20:46:03 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1759
This bug is related to RHQ-1758



Note You need to log in before you can comment on or make changes to this bug.