私はボタンに取り組んでいます。
私のコンポーネントコードは次のとおりです。
<apex:commandButton action="{!sendAction}"
value="SEND" styleClass="Button" rerender="messageId" immediate="true"/>
<apex:outputpanel rendered="{!showmsg}" id="messageId">
<apex:outputtext value="{!outputMessage}" style="color:red;font-size:13px;font-weight:bold;"/>
<br />
</apex:outputpanel>
私のコントローラーコードは次のとおりです。
public PageReference sendAction()
{
showmsg=true;
outputMessage='working';
return null;
}
しかし、アクション メソッド sendAction が呼び出されません。新しいウィンドウに含まれるページを開くと、関数が呼び出されます。しかし、同じウィンドウでは呼び出されません。
どんな助けでも本当に感謝しています。