I have a pageblock section .. and a button Clear Details This button should refresh the pageblocksection and show blank values
<apex:pageBlockSection columns="1" id="Test">
<apex:inputField value="{!Test1.Title__c}" />
<apex:inputField value="{!Test1.Name__c}" />
</apex:pageblocksection>
<apex:pageBlockButtons >
<apex:commandButton value="Clear" action="{!clearDetails}" rerender="Test"/>
<apex:commandButton value="Save Details" Action="{!save}" />
</apex:pageBlockButtons>
Apex Code:-
public PageReference clearDetails()
{
PageReference pageRef = null;
return pageRef;
}