在下面的页面中,Topic__c 是一个单选选项列表。我的目的是让这个列表控制下面哪些输入字段可用。用户选择一个选项,onchange 事件应该触发,并重新呈现字段。
<apex:inputField value="{!Call_Report__c.Topic__c}" id="topic" >
<apex:actionSupport event="onchange" reRender="tickerInput,sectorInput,bondInput">
<apex:param name="topicSelection" value="{!Call_Report__c.Topic__c}" />
</apex:actionSupport>
</apex:inputField>
<apex:inputField value="{!Call_Report__c.Tickers__c}" rendered="{!Call_Report__c.Topic__c='Issuer'}" id="tickerInput" />
<apex:inputField value="{!Call_Report__c.Sector__c}" rendered="{!Call_Report__c.Topic__c='Industry'}" id="sectorInput"/>
<apex:inputField value="{!Call_Report__c.Security__c}" rendered="{!Call_Report__c.Topic__c='Specific Bond'}" id="bondInput" />
我在这里做明显错误的事情吗?http://community.salesforce.com/t5/Visualforce-Development/Multi-select-picklist-not-firing-event-for-AJAX-refreshes/mp/173572/highlight/false#M22119似乎暗示我是什么这样做是合理的...