在下面的頁面中,Topic__c是一個單選列表選項列表。我的意圖是讓這個列表控制下面哪個輸入字段可用。用戶選擇一個選項,onchange事件應該觸發,並重新顯示字段。在VisualForce中未觸發的事件
<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/m-p/173572/highlight/false#M22119似乎暗示着什麼,我做的是合理的......