IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
作成 2004/4/27 更新 2004/4/28 カスタムコンポーネントに関するメモです。まだハローぐらい。 JSFではコンポーネントを作成して登録することができます。 最初のカスタムコンポーネント 作るもの カスタムコンポーネントに必要なクラスは以下です。 UIコンポーネントクラス タグクラス レンダラー また、これらのクラスを次の設定ファイルに登録します。 TLDファイル faces-config.xml UIコンポーネントがレンダラを兼ねることもできるようですが、 ここでは別のクラスとして作成します。 JSP 最初に作成するコンポーネントを利用するJSP側のコードを見てみます。 リスト cust1.jsp <%@ taglib uri="WEB-INF/test.tld" prefix="myh" %> ... <myh:hello value="こんにちわ"/> 指定したvalu
The open-source /url/#{rewriting} solution for Servlet, JSF, and Java EE PrettyFaces is an OpenSource URL-rewriting library with enhanced support for JavaServer Faces – JSF 1.1, 1.2 and 2.0 – enabling creation of bookmark-able, pretty URLs. PrettyFaces solves the “RESTful URL” problem elegantly, including features such as: page-load actions, seamless integration with faces navigation, dynamic view
JSF 2.0のアクションってELの新機能のMethod使えるんですな。これは世界が変わりますぞ。 JSF 1.xまでは引数なしの戻り値Stringがアクションだった。 <h:commnadButton action="#{Hoge.hogeAction}" value="押してね♪"/> public String hogeAction(){ //なんかのロジック return null;//画面遷移なし } これがJSF2.0ではこうかける。 <h:commnadButton action="#{Hoge.hogeAction(123)}" value="押してね♪"/> public String hogeAction(int no){ //なんかのロジック return null;//画面遷移なし } ボタンを押したときに引数で「123」という数値がわたってくる。 でも固定のパラメ
WARNING - OUTDATED CONTENT! This article is targeted on JSF 1.x. For JSF 2.x, please checkout this article. Passing action parameters from JSF to backing beans This can be done in several ways, with f:setPropertyActionListener, f:attribute and f:param. f:setPropertyActionListener: with the h:commandLink and h:commandButton tags you can trigger a method of the backing bean using the action or the a
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く