问题标签 [primefaces-mobile]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
513 浏览

jsf - 如何使用数据列表中的标签:primefaces mobile?

对不起,我只是英语和primefaces mobile的初学者。

我想在数据列表中使用 ui:repeat 来执行以下操作:

但它在primefaces mobile中不起作用。我没有错误消息,并且“ui-repeat”内部的所有信息都没有显示。请帮忙。PS:我正在使用 primefaces mobile 0.9.4 和 primefaces 5.0

0 投票
1 回答
365 浏览

jsf - 如何在 PrimeFaces Mobile 页面中布置按钮?

我想创建一个移动网页(基于 PrimeFaces Mobile),如下所示:

图 1

图像及其下方 - 两个按钮。

我为此编写了以下 xhtml 页面:

但相反,我得到了这个观点:

图 2

如何更改我的 xhtml 文件以获得所需的布局?

0 投票
1 回答
1440 浏览

jsf-2 - Primefaces Mobile Navigation/Render after submit commandButton

I am new to mobile development and have trouble rendering a pm:page after invoking a method on managed bean.

My page has a primefaces overlaypanel with a button to search and a datatable for display the result. The method is invoked correctly but the page with the outcome is never displayed (pm:page id="resultados"). The method is very simple and only assembles a list of Strings.

According to the primefaces user guide and searching the internet, I tried the following

I've tested it with PrimeFaces 5.0 and 5.1

Below is the full source code

xhtml page

0 投票
1 回答
1250 浏览

mobile - Primefaces Mobile 模板 facelets

我正在使用 PrimeFaces Mobile(社区 PrimeFaces 5.1)开发移动应用程序,并成功使用不同页面之间的导航。现在我想创建一个包含固定顶部和菜单的模板,并在我的所有页面上重复使用它。

最好的方法是使用嵌套页面?还有其他选择吗?

如果有人可以向我展示一个使用带有固定顶部和/或菜单的模板 PrimeFaces Mobile 的简单示例,我将不胜感激。我的代码如下

模板移动.xhtml

page1.xhtml

0 投票
1 回答
1100 浏览

jquery-mobile - 如何更改 PrimeFaces Mobile 的图标数据列表?

我有一个问题 我在更改 DataList Primeface Mobile 图标时遇到问题。我根据风格研究:<p class="ui-li-aside" />带来图标和位置,我尝试创建自己的风格并添加图标对我不起作用。

default.css(创建的样式)

在此处输入图像描述

0 投票
2 回答
2876 浏览

jsf - 与元素类型“p:dataList”关联的属性“pt:data-inset”的前缀“pt”未绑定

我有以下 Primefaces 页面和控制器。

控制器

当我访问该页面时,出现以下错误:

第 31 行是这样的:

我该如何解决这个错误?

0 投票
1 回答
575 浏览

jsf - 如何计算 ah:outputLink 被点击的次数?

我有一个带有以下代码的 PrimeFaces 页面:

当用户点击 时h:outputLink,我希望发生两件事:

  1. item.url在浏览器中打开一个带有 URL 的新页面。
  2. 方法likeditems.itemLinkClicked(item)被调用(在该方法中,我更新了特定链接被点击的次数)。

第一件事已经开始工作了(target="_new")。

如何在第一个停止工作的情况下实现第二个(更新链接被点击次数的方法调用)?

0 投票
1 回答
1770 浏览

jsf-2 - PrimeFaces Mobile 请求 undefined/undefined.css 和 undefined/undefined.js,导致 JSF1064 警告和 404 错误

当我将 a 添加<p:selectBooleanButton>到我的 PrimeFaces Mobile 页面时,我在服务器日志中收到以下警告

以及浏览器控制台中的以下错误:

404(未找到)http://localhost:8080/ewpmob/javax.faces.resource/undefined/undefined.js.xhtml?ln=primefaces&v=5.1.7

这是如何引起的,我该如何解决?

0 投票
2 回答
711 浏览

jsf - Primefaces Mobile commandButton 不适用于 ActionListener

我提出了以下问题。完成后单击对话框中的按钮(弹出),actionListener 属性不起作用,即不调用 Backingbean。

奇怪的是,在 PrimeFaces 展示的版本中,此代码完美运行,只有移动设备失败。另一个好奇是javascript函数按钮是成功的,是什么让我觉得是手机版ajax的问题​​这里是代码

这是一个backingbean

任何想法 Como esta 问题已解决。或者如何在没有 ajax 的情况下运行方法 addcart 。从已经非常感谢你了。问候,圣地亚哥

0 投票
0 回答
472 浏览

java - 值 PrimeFaces p:selectBooleanCheckbox 在 dataGrid 中未选中

当我从 java.sun.com/jsf/html 更改 selectBooleanCheckbox

到 PrimeFaces 选择BooleanCheckbox

不使用来自 bean 的值。

p:selectBooleanCheckbox 的值始终为 false。item.use 值是什么并不重要。

编辑:我添加了模型。这很简单:

和实体 ScannedItem:

注意:我正在使用来自primefaces 5.1.1的primefaces mobile