Bug 535018 (RHQ-1758) - On group config page,"Unset" then "Reset" button forgets to make the field editable again
Summary: On group config page,"Unset" then "Reset" button forgets to make the field ed...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: RHQ-1758
Product: RHQ Project
Classification: Other
Component: Configuration
Version: 1.2
Hardware: All
OS: All
low
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:48 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: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



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