What does the PF function do in Primefaces
2015-11-19 22:51
656 查看
The
is a part of PrimeFaces's JavaScript API. It looks up a Javascript object that is the backbone of the JSF component on the client-side. Here is its definition (source):
a shortcut for
which just looks-up a Javascript object in global scope, and so the Javascript object can also be retrieved using
The PrimeFaces's Javascript API has no official documentation online, so to understand what you can really "do" with the Javascript object, you'll need to take a deep dive into PrimeFaces.
"Intro
To PrimeFaces widgetVar" blog post
PrimeFaces
source code
PFfunction
is a part of PrimeFaces's JavaScript API. It looks up a Javascript object that is the backbone of the JSF component on the client-side. Here is its definition (source):
PF = function(widgetVar) { var widgetInstance = PrimeFaces.widgets[widgetVar]; if (!widgetInstance) { PrimeFaces.error("Widget for var '" + widgetVar + "' not available!"); } return widgetInstance; };
PFis
a shortcut for
PrimeFaces.widgets['someWidgetId'],
which just looks-up a Javascript object in global scope, and so the Javascript object can also be retrieved using
window['someWidgetId'].
The PrimeFaces's Javascript API has no official documentation online, so to understand what you can really "do" with the Javascript object, you'll need to take a deep dive into PrimeFaces.
See also
"IntroTo PrimeFaces widgetVar" blog post
PrimeFaces
source code
相关文章推荐
- primeFaces中 <p:dataList>简单使用
- primefaces中<p:fileDownload>控件的使用
- PrimeFaces 4.0 使用 <p:fileDownload> 标签实现文件下载
- 通过 <p:commandButton> 的 oncomplete 属性实现其它按钮的激活与反激活
- primefaces frozenColumns width
- primefaces dataExporter export invisible dataTable rows
- JSF 2.0(基于Primefaces 3.4.2) 中文乱码的处理方案
- Primefaces 中e.offset(...)问题的处理
- PrimeFaces双击表格行跳转到新页面
- PrimeFaces Table 自动换行
- Primefaces Table 选中行时不消除已选中的Checkbox
- PrimeFaces Ajax Callbacks [ (xhr, status, args) ]
- Programatically Adding Ajax Actions to UIComponents
- PrimeFaces 核心源码 js
- JSF级联操作使用开源类库PrimeFaces之autoCompelte
- Primefaces+JSF中页面组件update刷新问题,求大神解惑!
- primeFaces标签无法正常显示
- 理解PrimeFaces process/update和JSF f:ajax execute/render属性
- primmefaces遍历map
- 从Richfaces 4.5迁移到Primefaces 6.2