Integrate JQuery with JSF

前端 未结 2 559
小蘑菇
小蘑菇 2020-12-17 06:02

I have a JSF application that uses mostly Richfaces. I would like to introduce a more feature-rich grid control, such as the jQuery-based jqgrid. Is it possible to get JSON

2条回答
  •  我在风中等你
    2020-12-17 06:24

    You could also use JAX-RS for REST services that return JSON objects. JAX-RS and JSF are both part of Java EE 6. Additionally with new JEE6 dependency injection (CDI) you can easily share session state across both JSF managed beans and JAX-RS services - a JSF managed bean can be @Inject'ed into a service class.

提交回复
热议问题