コマンド・コンポーネントに新規アクション・メソッドを設定する手順は、次のとおりです。
「バインドActionプロパティ」ダイアログが表示されます。
自動コンポーネント・バインディングが有効な状態のJSFページ
<h:commandButton value="button0"
binding="#{backing_untitled1.commandButton1}"
action="#{backing_untitled1.commandButton_action}"/>
自動コンポーネント・バインディングが無効な状態のJSFページ
<h:commandButton value="button0"
action="#{somebean.someaction}"/>
デフォルトのアクション・メソッド・コード
...
public String commandButton_action()
{
// Add event code here...
return null;
}
...
...
public String someaction()
{
// Add event code here...
return null;
}
...
JSFアプリケーションの作成
Webページおよび設計ツールの操作
HTMLページの操作
JSPページの操作
Copyright © 1997, 2009, Oracle. All rights reserved.