Bug 535018 (RHQ-1758)

Summary: On group config page,"Unset" then "Reset" button forgets to make the field editable again
Product: [Other] RHQ Project Reporter: Jeff Weiss <jweiss>
Component: ConfigurationAssignee: Ian Springer <ian.springer>
Status: CLOSED NEXTRELEASE QA Contact: Jeff Weiss <jweiss>
Severity: medium Docs Contact:
Priority: low    
Version: 1.2CC: ccrouch, dajohnso
Target Milestone: ---Keywords: SubBug
Target Release: ---Flags: jweiss: archived+
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-1758
Whiteboard:
Fixed In Version: 1.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
rev3351
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 534605    

Description Jeff Weiss 2009-03-10 17:48:00 UTC
How to repeat:

Open a group config page (i used Datasource compat group), click edit.  Unset a homogenous field, then click "Reset".  The field gets its value back but it is still read-only.  

Comment 1 Ian Springer 2009-03-12 12:25:32 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-18 13:19:00 UTC
Fixed, rev3416

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