d:commandButton
Renders an HTML "input" element.
Decode 時の動作
このボタンが押されるとJSFの
decodeフェーズで通常のcommandButtonと同様にActionが生成されますが、このボタンでは
ORマッピングを呼び出すための特殊なActionが生成されます。
sessionやサーブレットコンテキストから、targetMapで指定したMapを取り出して、hibSessionFactoryで指定した
ORマッピングに渡します
to the String "reset" (without the quotes), return fromdecode()
. Otherwise, create ajavax.faces.event.ActionEvent
around the component,
and pass it to the queueEvent()
method of the
component, which must be an instance ofUICommand
.
Encode 時の動作
Tag Information |
Tag Class | dwarf.component.OrmCommandButton |
Action Class | dwarf.component.OrmMethodBindingImpl |
Display Name | None |
Attributes |
Name | Required | Request-time | Type | Description |
hibSessionFactory | true | false | java.lang.String |
データを登録するために使用するORマッピングのインターフェース
である、HibSessionFactory のインスタンスを指定します。
このボタンが押されてデータを登録する際に、上で指定された
インスタンスが使われます
|
targetMap | true | false | java.lang.String |
画面からpostされたデータを書き込むバッキングビーンを指定します。
このバッキングビーンはMap型でなければ、なりません。
HibSessionFactoryでDBに書き込む際にMap型を利用しているからです。
|
mode | false | false | java.lang.String |
画面からpostされたデータをDBに書き込む際、insertで書き込むのかupdateで
書き込むのかを指定します
|
value | false | false | java.lang.String |
ボタン上に表示する文字列を指定します
|
successString | false | false | java.lang.String |
DB登録が成功した時、遷移する画面のURLを指定します。
successString="/par/FEL01" のように指定すると、成功した際、/par/FEL01に遷移します。
|
Variables |
No Variables Defined. |
Output Generated by
Tag Library Documentation Generator.
Java, JSP, and JavaServer Pages are trademarks or
registered trademarks of Sun Microsystems, Inc. in the US and other
countries. Copyright 2002-4 Sun Microsystems, Inc.
4150 Network Circle
Santa Clara, CA 95054, U.S.A.
All Rights Reserved.