primefaces

Input given in JSF page does not set that value to managed bean variable [duplicate]

☆樱花仙子☆ 提交于 2019-12-24 13:02:50
问题 This question already has answers here : commandButton/commandLink/ajax action/listener method not invoked or input value not set/updated (12 answers) Closed 2 years ago . Am a newbie to JSF. Am using JSF 2 and primefaces 4.0 in my application. As stated in the Title, the input value given in the xhtml page, does not set the value to the ManagedBean. I have tried all the possible combination. growlMessage.xhtml <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"

How to update a specific cell on a PrimeFaces dataTable

≡放荡痞女 提交于 2019-12-24 12:08:56
问题 In my dataTable I am linking each article with a specific task. On the click of a commandButton a list of tasks shows up, so I want on the select of a task, update a specific cell in the dataTable ( outputText with id="columnTache" ) without updating the rest of my dataTable . <p:dataTable value="#{myController.articleList}" id="tabArticle" var="article" rowKey="#{article.id}" > <p:column headerText="quantite" > <pe:inputNumber value="#{article.quantite}" /> </p:column> <p:column headerText=

Removing gutters from p:layout

不问归期 提交于 2019-12-24 11:50:41
问题 I'm using PrimeFaces 5.0. I'm having a trouble setting gutter in <p:layout> . <p:layout id="templateLayout" fullPage="false"> <p:layoutUnit id="header" position="north" size="155" gutter="0"> </p:layoutUnit> <p:layoutUnit position="west" id="leftPanel" size="225" gutter="0"> </p:layoutUnit> <p:layoutUnit position="east" size="200" gutter="0"> </p:layoutUnit> <p:layoutUnit id="content" position="center" size="2500" style="z-index: 1;" maxSize="2500" gutter="0"> </p:layoutUnit> <p:layoutUnit id

dynamic images in datatable using primefaces, images not showing in datatable [duplicate]

夙愿已清 提交于 2019-12-24 11:36:40
问题 This question already has answers here : Display dynamic image from database or remote source with p:graphicImage and StreamedContent (4 answers) Closed 4 years ago . I am using primfaces 3.5 version to show images from my database in datatable, but unfortunately instead of actual images "image" is getting written in column, here is my xhtml file <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1

selectCheckboxMenu filter values not reset on refresh

Deadly 提交于 2019-12-24 11:36:25
问题 In my dataTable, I want to use selectCheckboxMenu as a filter on one of columns (like in this example on Color column). My column looks like this: <p:column filterBy="#{record.typeString}" filterMatchMode="in"> <f:facet name="filter"> <p:selectCheckboxMenu label="Types" onchange="PF('dataTable').filter();" panelStyle="width:125px" scrollHeight="150"> <f:selectItems value="#{myBean.typeStrings}" /> </p:selectCheckboxMenu> </f:facet> <f:facet name="header"> <h:outputText value="Type"/> </f

Loading PrimeFaces Schedule JSF page through ajax into another JSF page

杀马特。学长 韩版系。学妹 提交于 2019-12-24 11:35:06
问题 When I run the prime faces "Scheduler" component as a normal "xhtml" page, everything is going fine, but when I try to load the "schedule.xhtml" page through AJAX into another "xhtml" page, then I am getting unexpected behavior like : The "schedule.xhtml" page is not loading the default events attached with its Java class (those events are sample ones). No events are fired like ("addEvent", "onEventSelect", "onDateSelect", "onEventMove", "onEventResize") I am running JSF 2.2 Mojarra 2.2.0

primefaces and jqplot plugin

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 11:11:14
问题 What is the different (if there is) between primefaces chart and http://www.jqplot.com/index.php ? Its look like the examples in the jqlot website has much more functionality options Thanks 回答1: As already pointed out PrimeFaces uses jqPlot to render the charts. Regarding the functionality options I can't fully agree. You can always use the extender option of PrimeFaces charts. By writing an extender function you gain access to the jqPlot configuration object before the actual rendering

Column Filter Watermark is Not Showing in PrimeFaces in 6.0.19 Onwards

你离开我真会死。 提交于 2019-12-24 11:09:54
问题 Since PrimeFaces 6.0.19 onwards including 6.0.20 and 6.1.x(6.1.1 and 6.1.2) our code for column filter watermark is not working as below: <h:form id="myForm"> <p:dataTable id="myTable"> <p:column id="column2" filterBy="column2"> <f:facet name="header"> <p:watermark for="@(#myForm\\:myTable\\:column2\\:filter)" value="Watermark 2" /> <h:outputText value="Column2" /> </f:facet> </p:column> </p:dataTable> </h:form> Before the version 6.0.19, our code is working well. I hope you can give us some

JSF Lifecycle performed 2 times with PrimeFaces ajax

别来无恙 提交于 2019-12-24 10:58:53
问题 I use PrimeFaces 3.3.1 with Apache MyFaces 2 on WebSphere Application Server. My BackingBean is SessionScoped. I have a form with a selectOneButton should update the whole form. <h:form id="options"> <p:panelGrid> <p:column rowspan="2" style="width:115px;"> <p:selectOneButton value="#{graph.diagramdata}" id="diagramdata"> <f:selectItem itemLabel="WAS-Diagramm" itemValue="1" /> <f:selectItem itemLabel="PSC-Diagramm" itemValue="2" /> <p:ajax listener="#{graph.changeView }" update=":options"/> <

f:ajax listener not fired for h:selectBooleanCheckbox

非 Y 不嫁゛ 提交于 2019-12-24 10:57:48
问题 The event doesn't get fired in my controller. This is the code. View: <ui:repeat var="operation" value="#{trade.operationsSortList}"> <tr class="operations"> <th class="empty_cell"></th> <td id="operation" class="operation_cell color">#{operation.operation}</td> <td class="color">#{operation.time}</td> <td class="color">#{operation.coment}</td> <td class="color"> <h:form> <h:selectBooleanCheckbox> <f:ajax event="click" listener="#{controller.onDelete}" /> <f:attribute name="trade" value="#