JSF / PrimeFaces与HTML5存储方法的兼容性 [英] JSF / PrimeFaces compatibility with HTML5 Storage methods

查看:161
本文介绍了JSF / PrimeFaces与HTML5存储方法的兼容性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JSF / PrimeFaces是否支持HTML5存储方法(sessionStorage / localStorage)?

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

推荐答案

未开箱即用。但是您可以将必要的HTML / JS代码包装在自定义JSF组件中。我们之前的一位实习生已经这样做了。您可以在此Google代码库中找到它。查看 POC-SessionStorage 部分源代码。您可以在本论文中找到一篇文章。

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.

到目前为止,这只是生成正确的HTML / JS代码并挂钩JSF ajax事件的问题。

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

这篇关于JSF / PrimeFaces与HTML5存储方法的兼容性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆