Forums: Open Discussion (Thread #18618)

DispatchActionのキャンセルボタンについて (2008-05-07 14:10 by Anonymous #36515)

機能説明書P144に

◆拡張ポイント
キャンセルボタン押下時の遷移先を決定する場合、このクラスを継承してcancelled()メソッドをオーバライド実装する。
下記は、フォワード先の論理名”cancelled”を元に、キャンセル時の遷移先を決定する実装例である。

とあるのですが、キャンセルボタンとはなんのことなのでしょうか?
通常のボタンにひもづくイベントなのでしょうか。
またはMsgBoxの戻り値など特殊なものなのでしょうか。

Reply to #36515×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: DispatchActionのキャンセルボタンについて (2008-05-09 13:04 by hachihachi #36556)

説明不足で申し訳ありません。
ここでいうキャンセルボタンとは、Strutsのタグ<html:cancel/>で生成されるキャンセルボタンのことです。
(実際にはname属性にorg.apache.struts.taglib.html.CANCELが指定されたsubmitボタン)
cancelled()メソッドは、このタグによって生成されたボタンを押下した時に呼ばれます。
Reply to #36515

Reply to #36556×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login