I have VF page
<apex:page controller="CHECK">
<apex:form >
<apex:inputText value="{!inputvalue}"/>
<apex:outputText value="{!display}"/>
<apex:commandButton value="Go"/>
</apex:form>
</apex:page>
controller class is
public class CHECK {
public string inputvalue{get{display = 'hello'; return inputvalue;}set{display = 'Displayfrom'; inputvalue = value;}}
public string display{get;private set{display = 'Setdisplay';}}
}
Output of display is always setdisplay on page load and also when command button is pressed. Is it simply because 'display's setter is getting invoked last and that is overriding the value and may be at another time it could be the reverse order?