You need to sign in to do that
Don't have an account?
dkraun
rerendering inputField components by rerendering the parent object does not work
I am working with custom pages that display a lot of inputFields like:
<apex:pageBlockSection>
<apex:inputField value="myobj.x">
<apex:inputField value="myobj.y">
<apex:inputField value="myobj.z">
</apex:pageBlockSection>
What I've noticed is that when I change myobj in the controller, rerendering the pageBlockSection actually takes the values in the inputFields and overwrites my controller object with those values. A quick fix for this is just rerendering each inputField individually, but is this really the way rerendering is intended to work? Just a thought for future versions.
<apex:pageBlockSection>
<apex:inputField value="myobj.x">
<apex:inputField value="myobj.y">
<apex:inputField value="myobj.z">
</apex:pageBlockSection>
What I've noticed is that when I change myobj in the controller, rerendering the pageBlockSection actually takes the values in the inputFields and overwrites my controller object with those values. A quick fix for this is just rerendering each inputField individually, but is this really the way rerendering is intended to work? Just a thought for future versions.
ES
Please look at the following post for a workaround.