I've just spent the better part of my day trying to sort this out. Seems that if i have a Currency type in my custom object (mortgages__c
), there is no way to get the Page to gather input and reflect it back into my custom object IF I HAVE A RENDERED ATTRIBUTE ON IT.
E.g:
< apex:pageBlockSectionItem >
< apex:outputLabel value="Total Liens $" rendered="{!isRealAsset}"/ >
< apex:inputField value="{!obj.mortgages__c}" rendered="{!isRealAsset}"/ >
< /apex:pageBlockSectionItem >
Where my record of custom object is "obj" with a field mortgages__c
and
isRealAsset()
is a Boolean method that returns a true or false.
I've tried to put the render on the pageBlockSectionItem.
I've tried to wrap it all in an outputPanel with a rendered attribute.
I've tried a bunch of different things and the ONLY thing that works is to have rendered="true"
. (Not very useful!) That is the only way the value will be reflected back in my object.
Can anyone tell me what is going on? Super annoyed so i hope i'm just doing something careless. Any ideas?
Thank you!