かずきのBlog

C#やJavaやRubyとメモ書き

目次

Blog 利用状況

ニュース

わんくまBlogが不安定になったため、前に書いてたはてなダイアリーにメインを移動します。
かずきのBlog@Hatena
技術的なネタは、こちらにも、はてなへのリンクという形で掲載しますが、雑多ネタははてなダイアリーだけに掲載することが多いと思います。
コメント
プログラマ的自己紹介
お気に入りのツール/IDE
プロフィール
経歴
広告
アクセサリ

書庫

日記カテゴリ

[NetBeans][Java]Visual Web JSFのページフラグメントのボタンで画面遷移したい

Visual Web JSFのプロジェクトには、ページフラグメントという機能がある。
各画面の共通部分(ヘッダーとか)を個別に作りこむといった感じに使ったりする。

ここに張ったボタンで画面遷移をするには、faces-config.xmlに下のようなナビゲーションの定義をすればいける。

    <navigation-rule>
        <navigation-case>
            <from-outcome>goPage1</from-outcome>
            <to-view-id>/Page1.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>goPage3</from-outcome>
            <to-view-id>/Page3.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>

要は、from-view-idのないnavigation-ruleを作るだけ。これで、前ページ共通のナビゲーションの定義が出来る。
後は、ここで定義したfrom-outcomeの値をページフラグメントのボタンクリックでreturnするだけ。

投稿日時 : 2008年6月6日 0:21

Feedback

# www.burberryoutletonline2013.com 2012/10/17 18:56 http://www.burberryoutletonline2013.com

I truly enjoy reading through on this website, it has got wonderful content. "One should die proudly when it is no longer possible to live proudly." by Friedrich Wilhelm Nietzsche.

# www.supercoatsale.com 2012/10/17 18:57 http://www.supercoatsale.com

As soon as I observed this web site I went on reddit to share some of the love with them.

# mens shirts 2012/10/27 22:33 http://www.burberryoutletonlineshopping.com/burber

I do consider all of the ideas you have introduced for your post. They are really convincing and will definitely work. Nonetheless, the posts are too brief for beginners. May you please prolong them a little from next time? Thanks for the post.
mens shirts http://www.burberryoutletonlineshopping.com/burberry-men-shirts.html

タイトル
名前
Url
コメント