panelBar に表示するアイテムのリストがあります。各アイテムには、コントローラーでアクションを呼び出す comandButton があります。問題は、アクション メソッドが呼び出されないことです。ヘルプ?
コードは次のとおりです。
<apex:panelBar id="eventBarSeller" switchType="client" items="{!relatedEventsSeller}" var="event" rendered="true">
<apex:panelbarItem label="{!event.SUBJECT__c}">
<apex:outputText escape="false" value="{!event.BODY__c}" />
<br/>
<br/>
<apex:commandButton value="View details" action="{!showPopup}" rerender="popup" immediate="true" rendered="true"/>
</apex:panelBarItem>
</apex:panelbar>
そしてポップアップoutputPanel:
<apex:outputPanel id="popup">
<apex:outputPanel styleClass="popupBackground" layout="block" rendered="{!displayPopup}"/>
<apex:outputPanel styleClass="custPopup" layout="block" rendered="{!displayPopup}">
This is where I would put whatever information I needed to show to my end user.<br/><br/><br/>
<apex:commandButton value="Hide Pop up" action="{!closePopup}" rerender="popup"/>
</apex:outputPanel>
</apex:outputPanel>
そしてコントローラーには次のものがあります:
public boolean displayPopup {get; set;}
public void closePopup() {
System.Debug(LoggingLevel.INFO, 'Close Popup...');
displayPopup = false;
}
public void showPopup() {
System.Debug(LoggingLevel.INFO, 'Show Popup...');
displayPopup = true;
}
ログをチェックインしたため、関数 showPopup が呼び出されませんでした。何が起こっているのでしょうか? 前もって感謝します!