JSF / PrimeFaces compatibility with HTML5 Storage methods

后端 未结 1 836
借酒劲吻你
借酒劲吻你 2021-01-15 03:53

Do JSF / PrimeFaces support well HTML5 Storage methods (sessionStorage / localStorage)?

相关标签:
1条回答
  • 2021-01-15 04:09

    Not out the box. But you can just wrap the necessary HTML/JS code in custom JSF components. One of our previous interns have done that. You can find it in this Google Code repository. Check the POC-SessionStorage part for the source code. You can find a writeup in this thesis.

    To the point, it's merely a matter of generating the right HTML/JS code and hooking on JSF ajax events.

    0 讨论(0)
提交回复
热议问题