我在Visualforce页面上有2个字段。一个是选择列表字段,另一个是masterdetail查找。选择选择列表值后,应该对查找进行过滤。如果在选择列表中未选择任何值,则查找返回空。但是即使选择了选择列表,我也没有查找。
<tr>
<td><apex:outputLabel >Concert Type</apex:outputLabel></td>
<td>
<apex:selectList size="1" value="{!selectedConType}" >
<apex:selectOptions value="{!ConType}" ></apex:selectOptions>
<apex:commandButton value="Find" reRender="renderForm"/>
</apex:selectList></td>
</tr>
<tr>
<td><apex:outputLabel >Concert</apex:outputLabel></td>
<td><apex:inputField id="concerts" value="{!book.Concert__c}" />
</td>
</tr>