primefaces

p:commandLink not invoked when placed in p:dataTable in p:dialog [duplicate]

跟風遠走 提交于 2019-12-25 05:25:26
问题 This question already has answers here : commandButton/commandLink/ajax action/listener method not invoked or input value not set/updated (12 answers) Closed 3 years ago . I use primefaces and I want to download a file with different formats(pdf, jpg, png, ) from database but I don't succed to realise this I have seen a lot of topic like this but their methods don't work for me here is the html : <ui:repeat value="#{histCommController.selectedCommande.listFichiers}" var="jjjjj"> <tr> <td> <h

Conditional display of p:overlayPanel

别来无恙 提交于 2019-12-25 05:24:58
问题 How can I show/hide the overlay panel conditionally from @ManagedBean based on some result. In the below code: p:overlayPanel is for p:commandButton . I want to show overlay panel conditionally from Action method. Right now it is showing every time I click the commandbutton. <h:form id="form"> <h:outputLabel value="Town Name:"/> <h:inputText value="#{myBean.town}"/> <p:commandButton id="checkBtn" value="Check" action="#{myBean.action}"/> <p:overlayPanel widgetVar="overL" id="over" for=

primeFaces fails to upload file to db

杀马特。学长 韩版系。学妹 提交于 2019-12-25 05:22:46
问题 I am trying to upload a file (picture) which is part of a Product object to a database. The file upload is successful according to the jsf confirmation. However, when persisting Product the persistence is completed successfully without the picture. The server is not returning any stack. This is my form (simplified): <h:form enctype="multipart/form-data"> <h1><h:outputText value="Create New Product"/></h1> <h:panelGrid columns="2"> <h:outputLabel value="Name:" for="name" /> <h:inputText id=

MouseOver in JSF datatable

让人想犯罪 __ 提交于 2019-12-25 05:20:12
问题 I need some help on including a mouseover event for a datatable column in JSF. Can you please let me know how to include a popup list on mouseover a jsf column. Below is the code corresponding to my JSF column. <p:column style="text-align: left;" styleClass="foo" rendered="#{demandBean.screeRenderVo.adjustedRenderer}" > <f:facet name="header"> <h:outputText id="AdjustedID" value="#{demandBean.dmdScreenLabelVO.adjustedValue}"/> </f:facet> <h:inputText id="AdjustedValueID" value="#{car

How to render an element whose id is automatically generated in JSF?

微笑、不失礼 提交于 2019-12-25 05:12:07
问题 I have primefaces'datatable placed on primefaces tabView.. I m using filtering on it. As new values are updated in the grid, I want to re-render the filters. The filter id is generated as: tabViewId:ActiveTabIndex:DatatableID:ColumnName_filter. On value change of input text, I want to re-render the filter. <p:column width="40"> <h:inputText id="vendorInputTxt" value="#{articlePromo.proveedor}" styleClass="inputTextStyle"> <f:ajax event="change" render=":categoryTabView:0:promotionDetail

change color of inputtext at row level on selectOneMenu(Dropdown) change in Datatable

核能气质少年 提交于 2019-12-25 05:06:52
问题 I am using primefaces(v.3.0) datatable in my application. In Datatable there are two columns , one column is inputtext and other is SelectOneMenu(dropdown). Now I want to change inputtext color with some cases like.. 1.if SelectOneMenu value get selected as "Single" input textbox color will be "green" for that particular pID only. 2.if SelectOneMenu value get selected as "Married" input textbox color will be "red" for that particular pID only. 3.if SelectOneMenu value get selected as

PrimeFaces update single row of datatable from dialogue

回眸只為那壹抹淺笑 提交于 2019-12-25 04:57:21
问题 I have a requirement where I am using rowExpension inside a datatable. which opens another datatable(sub table). Below sub table I have one edit button. upon clicking edit it opens model dialogue and once I click save it closes the dialogue but I am not able to find a way to update that particular sub table. Below is the code snippet of subtable & dialogue. Can anybody suggest me a way to update the particular subtable for which the edit button is clicked. <p:rowExpansion id="partyRows"> <p

jsf: redirecting from bean on primefaces ajax event

会有一股神秘感。 提交于 2019-12-25 04:48:16
问题 I have this selectable PrimeFaces Tree with an Ajax listener on selection in my index.xhtml: <p:tree value="#{seccionesArbolView.root}" var="node" selectionMode="single" > <p:treeNode> <h:outputText value="#{node.nombre}" /> </p:treeNode> <p:ajax event="select" listener="#{seccionesArbolView.onNodeSelect}"></p:ajax> </p:tree> The listener method is on a session scoped named bean, and should redirect to another page (grupal.xhtml) with some GET parameters. I tried this: public String

p:datatable with selectionMode as multiple

早过忘川 提交于 2019-12-25 04:42:57
问题 As per the primefaces document the selection should be a array. In the below code bean.selectedUsers is defined as "HasUsersVO[] selectedUsers" but the value of datatable is List. I am getting cast error as pasted at the bottom when i click the OK button after the datatable got filled. <p:dataTable id="userListTable" value="#{bean.peopleVOList}" var="user" rowClasses="odd even" selection="#{bean.selectedUsers}" rowKey="#{user.userGuid}" <p:column selectionMode="multiple" style="width:18px"> <

p:calendar value not set in backing bean

余生长醉 提交于 2019-12-25 04:34:25
问题 Hi I am using PrimeFaces. I have a <p:calendar> in a dialog box and I would type date manual . But my date is not setting in bean's variable. It works for dataSelect event but don't work keypress or keydown event. I am wondering it is also working outside dialog box. Here is my code: <p:calendar readonlyInput="false" id="Date1" rendered="true" navigator="true" showButtonPanel="true" styleClass="form-control cal_input" showOn="both" pattern="#{sessionManager.defaultDateFormat.substring(0,11)}"