You need to sign in to do that
Don't have an account?
Bakul Patel 9
apex:selectOption rendered not working
I think there is surely something missing in specification regarding following issue. I have a selectList and selectOption specified in page. Certain options are to be shown only in specific condition. I have specified that condition in rendered, but it does not work:
This produces the view:
Check the true/false written above dropdown, which is products from 1st line in code.
So, despite the condition returns true, respective options are not rendered.
Thanks,
Bakul Patel
{!er.entry.Type__c='OD'} <apex:selectList id="actionsList" multiselect="false" size="1" value="{!er.action}" > <apex:selectOption itemValue="--None--" itemLabel="--None--" /> <apex:selectOption itemValue="Edit" itemLabel="Edit" /> <apex:selectOption itemValue="Delete" itemLabel="Delete" /> <apex:selectOption itemValue="VAT+" itemLabel="VAT+" rendered="{!er.entry.Type__c='OD'}"/> <apex:selectOption itemValue="VAT-" itemLabel="VAT-" rendered="{!er.entry.Type__c='OD'}"/> <apex:selectOption itemValue="RTB" itemLabel="RTB" rendered="{!er.entry.Type__c='OD'}" /> <apex:selectOption itemValue="Invoice+" itemLabel="Invoice+" rendered="{!er.entry.Type__c='OD'}"/> <apex:selectOption itemValue="VI" itemLabel="VI" rendered="{!er.entry.Type__c='OD'}"/> <apex:actionSupport event="onchange" action="{!takeAction}" reRender="masterPanel" status="statusSplash"> <apex:param value="{!er.entry.id}" name="EntryToUpdate"/> </apex:actionSupport> </apex:selectList>
This produces the view:
Check the true/false written above dropdown, which is products from 1st line in code.
So, despite the condition returns true, respective options are not rendered.
Thanks,
Bakul Patel
Any help would be appriciated.
Thanks
If your problem is solved, please accept the answer.
I tested and verified that criteria and criteria is fine but still not rendering.