primefaces

MethodExpression not firing in HtmlCommandLink

岁酱吖の 提交于 2021-02-16 22:43:25
问题 I have a dynamically generated Datatable, like this DataTable dataTable = new DataTable(); dataTable.setValue(relatorioVOList); dataTable.setVar("rVO"); Column checkBoxColumn = new Column(); checkBoxColumn.getChildren().add(this.viewComponentBuilder.createExpressionTextWithLink("#{rVO.iRelatorio}","#{rVO.nNome}")); dataTable.getColumns().add(checkBoxColumn); public HtmlForm createExpressionTextWithLink(String iRelatorioExpressionValue, String valueExpressionValue) { HtmlForm form = new

MethodExpression not firing in HtmlCommandLink

一个人想着一个人 提交于 2021-02-16 22:41:36
问题 I have a dynamically generated Datatable, like this DataTable dataTable = new DataTable(); dataTable.setValue(relatorioVOList); dataTable.setVar("rVO"); Column checkBoxColumn = new Column(); checkBoxColumn.getChildren().add(this.viewComponentBuilder.createExpressionTextWithLink("#{rVO.iRelatorio}","#{rVO.nNome}")); dataTable.getColumns().add(checkBoxColumn); public HtmlForm createExpressionTextWithLink(String iRelatorioExpressionValue, String valueExpressionValue) { HtmlForm form = new

widgetVar cannot be used in p:fileUpload

守給你的承諾、 提交于 2021-02-16 18:51:29
问题 I want to remove the error message when choosing a wrong type of file. I followed the link http://forum.primefaces.org/viewtopic.php?f=3&t=23853 . <p:fileUpload fileUploadListener="#{userProfileUpdateController.upload}" widgetVar="fileuplaodWgt" allowTypes="/(\.|\/)(gif|jpe?g|png)$/" description="Select Images" update="userPhoto" mode="advanced"/> and I import <h:outputScript name="library.js" library="script"></h:outputScript> In library.js $(document).ready(function(){ alert(fileuplaodWgt);

p:panelGrid Layout Issue

一曲冷凌霜 提交于 2021-02-11 15:31:17
问题 How can I achieve the layout as shown below? First Name [_________] Last Name [_________] Street [_________] I tried some from https://www.primefaces.org/showcase/ui/panel/panelGrid.xhtml But ended up as below, First Name[_______]Last Name[_________] Street[_________] Below is the code that I have tried <p:panelGrid columns="4" layout="flex" columnClasses="p-col-12 p-md-3 p-xl-2, p-col-12 p-md-9 p-xl-4, p-col-12 p-md-3 p-xl-2, p-col-12 p-md-9 p-xl-4" contentStyleClass="p-align-baseline ui

Duplicate headers in primefaces data table

不羁岁月 提交于 2021-02-11 14:34:26
问题 When I use stickyHeader=true on primefaces data table I see two headers generated. Second is 5 rows below the actual header and it is happening on all my pages. Anybody had this issue and got it resolved? <p:dataTable var="product" value="#{productBean.products}" stickyHeader="true"> <p:column headerText="Name"> <h:outputText value="#{product.name}" /> </p:column> <p:column headerText="Year"> <h:outputText value="#{product.year}" /> </p:column> <p:column headerText="Active"> <h:outputText

Dynamic p:menu works in PrimeFaces 3.5, not in >4.0

我的未来我决定 提交于 2021-02-11 12:10:00
问题 I'm updating a project from Primefaces 3.5 to 4.0 and I've got problem with menu. I can't understand how to create dynamically a simple menu like this: <p:menu> <p:submenu> <p:menuitem value="jump" action="myTransition" /> </p:submenu> </p:menu> I try to set the command of the item with the name of the transition, defined in my Spring web flow configuration, with no result. DefaultMenuItem itemNone = new DefaultMenuItem(); item.setCommand("myTransition"); The plain menu work fine, but if I

p:fileUpload - Validate form prior to upload

≡放荡痞女 提交于 2021-02-10 16:19:33
问题 I would like to be able to trigger validation on my form prior to being allowed to select the files for upload when clicking on the "Choose" button of the fileUpload control in Primefaces. Is this possible? At present the user can click on "Choose" and "Upload" without validation kicking in. This is preventing my document from saving but the attachments are being created. I know I could hide the fileUpload control until the form is successfully validated and saved but I would prefer to invoke

p:fileUpload - Validate form prior to upload

女生的网名这么多〃 提交于 2021-02-10 16:15:22
问题 I would like to be able to trigger validation on my form prior to being allowed to select the files for upload when clicking on the "Choose" button of the fileUpload control in Primefaces. Is this possible? At present the user can click on "Choose" and "Upload" without validation kicking in. This is preventing my document from saving but the attachments are being created. I know I could hide the fileUpload control until the form is successfully validated and saved but I would prefer to invoke

primefaces orderlist not getting updated with the changed order

两盒软妹~` 提交于 2021-02-09 11:08:17
问题 I have a primefaces p:orderList which is displayed in a popup on click of a button. When I change the order of Items in the orderlist, and click on Save Order button on the popup, I'm not seeing the list with the changed order. PFB my code - <p:commandButton ajax="true" id="toolOrderButton" value="Tool Order" onclick="toolOrderPopup.show()" type="button"/> <p:dialog header="Tool Order" severity="alert" widgetVar="toolOrderPopup" appendToBody="true"> <p:orderList id="toolOrderList"

primefaces orderlist not getting updated with the changed order

ε祈祈猫儿з 提交于 2021-02-09 11:07:38
问题 I have a primefaces p:orderList which is displayed in a popup on click of a button. When I change the order of Items in the orderlist, and click on Save Order button on the popup, I'm not seeing the list with the changed order. PFB my code - <p:commandButton ajax="true" id="toolOrderButton" value="Tool Order" onclick="toolOrderPopup.show()" type="button"/> <p:dialog header="Tool Order" severity="alert" widgetVar="toolOrderPopup" appendToBody="true"> <p:orderList id="toolOrderList"