运行 primefaces mobile 所需的 jar 文件是什么
我想使用带有jsf2.0和primefaces-3.0.M2的Primefaces Mobile制作一个表单,但是在jboss服务器中部署并在浏览器(桌面)上运行后,外观和感觉并不那么好 伟大的。我是否缺少一些 jar 文件?还有没有模拟器可以让我检查和运行移动网页。我正在使用展示示例 http://www.primefaces.org/showcase -labs/mobile/index.jsf
I want to make a form using Primefaces Mobile with jsf2.0 and primefaces-3.0.M2, but after deploying in jboss server and running it on browser(desktop), the look and feel is not so great. Am i missing some jar files?? Also is there any emulator where i can check and run the mobile webpages. I am using the showcase example at http://www.primefaces.org/showcase-labs/mobile/index.jsf
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您的移动/非移动应用程序是分开的,则必须在 faces-config.xml 中插入以下行(
如果您的移动/非移动视图位于同一应用程序中),则必须
这里是一个简单的 ViewHandler 类,它使用 Spring Mobile 功能在移动和非移动页面之间切换。
然后将 ViewHandler 注册到 faces-config.xml
如果您想使用 Android 模拟器测试您的应用程序,您可以下载并安装 sdk-android
要执行此操作,请执行以下操作此链接:http://developer.android.com/sdk/index.html。
然后,按照这篇文章“让您的 Android 模拟器读取开发计算机上的虚拟主机” -
If your mobile/no mobile applications are separated, you have to insert in your faces-config.xml the following line
if your mobile/no mobile views are in the same application you have to
Here a simple ViewHandler class that uses the Spring Mobile functionalities to switch between mobile and non-mobile pages.
Then register the ViewHandler into the faces-config.xml
If you want to test your application with an android emulator you can download and installate the sdk-android
To do this follow this link: http://developer.android.com/sdk/index.html.
Then, follow this post to "Getting Your Android Emulator to Read Virtual Hosts on your Development Machine" - http://dillieodigital.wordpress.com/2012/03/19/soup-to-nuts-getting-your-android-emulator-to-read-virtual-hosts-on-your-development-machine/
首先,您需要的只是 Primefaces jar,但由于 M4 版本已经发布,您应该更新您的类路径(请注意,如果您使用 Netbeans,删除它的库是一个有点马虎,请仔细检查一下
lib
文件夹中是否只有一个库 - M4)。另外,请在此处发布您的代码,并小心使用新的命名空间:
Firstly, all you need is the Primefaces jar, but since the M4 version is out you should update your classpath(be careful that if you use Netbeans, the library removing it's a little sloppy, double check that you have only one library-M4 in the
lib
folder).Also, please post your code here, and be careful to use the new namespaces: