I have this basic page below
<apex:page controller="basic">
<apex:pageMessages ></apex:pageMessages>
<apex:form >
<apex:outputPanel id="C">
<apex:outputPanel id="B">
<apex:inputtext value="{!input1}" required="true" />
</apex:outputPanel>
<apex:actionregion>
<apex:outputPanel id="a">
<apex:inputtext value="{!input2}" />
</apex:outputPanel>
<apex:commandButton value="save" reRender="C" />
<!--if i remove rerender attribute altogether it
</apex:actionregion>
</apex:outputPanel>
</apex:form>
</apex:page>
and controller is very basic with just getters and setters
Scenario:I never enter the required input1 so that validation error is forced
My main trouble is if i remove rerender from commandbutton enclosed in actionregion--it throws error if i change rerender so as to rerender everything/some part --it doesn't throw error
whats the reason behind you need a rerender for action region to work.As far as i know actionregion submits data enclosed in action region tag so lifecycle as i understand is
decode view state(applicable only for things inside action region)
evaluate setters for action:region components
validation check for actionregion related components
If everything fine,update view state
say there is no rerender attribute for commandbutton
getters are invoked for all components
now where in this stage can possibly cause error if rerender is taken away?
can somebody explain where am i going wrong in the concept?