Techluver,
Sorry for misunderstanding your question.
The issue that you have, with your current approach, is that there is no 'RemoveAttributeAction' class in the library.
In order to implement this functionality, I'd suggest using the ExecuteJavascriptFunctionAttribute class instead.
Using this, you can trigger the execution of a javascript function on the client side, that removes the 'disabled' attribute from the field with an id attribute of 'buttonId'.
Code:
Map<String, Object> params = new HashMap<String, Object>();
params.put("id", "buttonId");
params.put("attributeName", "disabled");
response.addAction(new ExecuteJavascriptFunctionAction("removeAttribute", params));
Code:
function removeAttribute(params){
var formField = document.getElementById(params["id"]);
if(formField != null){
formField.removeAttribute(params["attributeName"]);
}
}
Admittedly, the provision of a 'RemoveAttributeAction' class would appear to be simpler and more succinct, so you should possibly submit a JIRA to request this.