开发者

How can I provide JSF2 with a custom PartialViewContext implementation?

开发者 https://www.devze.com 2023-01-12 23:13 出处:网络
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

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

精彩评论

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