开发者

How can I provide JSF2 with a custom PartialViewContext implementation?

I want to be able to process generi开发者_JAVA百科c AJAX requests that do more than just updating an existent component. How can I override the default PartialViewContext in the FacexContext?


It would appear you can specify your own PartialViewContextFactory in the faces-config file, like this:

<faces-config ...>
    <application>
        <factory>
            <partial-view-context-factory>
                com.yourcompany.jsfextention.MyPartialViewContextFactory
            </partial-view-context-factory>
        </factory>
        ...
    </application>
    ...
</faces-config>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜