primefaces

Primefaces RowToggle - How to differentiate between Row Expansion and Row Collapse?

北城余情 提交于 2020-01-04 15:18:12
问题 I am using Prmefaces 3.5. I use the RowToggler in a datatable. Whenever the RowToggle button is clicked, I use to do some database access operations and display a grid with the the accessed data. Whenever the toggle button is clicked the below listener is called, in which the operations are done <p:ajax event="rowToggle" listener="#{controller.onRowToggle}" But the problem lies in calling this method. Not only when the row is expanded, this method is called, but also when the row is collapsed

Style the Header on a PrimeFaces dialog

偶尔善良 提交于 2020-01-04 15:14:17
问题 I'm using a PrimeFace Dialog in JSF. The problem is that a PrimeFaces dialogs header is gray in color and my client thinks it similar to an inactive object because the windows uses gray to indicate that something is inactive. So is there any way to style the Header background color of a PrimeFace dialog? The code of a PrimeFace Dialog: <p:commandButton id="modalDialogButton" value="Modal" onclick="dlg2.show();" type="button"/> <p:dialog id="modalDialog" header="Modal Dialog" widgetVar="dlg2"

Image icon is not displayed inside text field when auto complete is enabled in the browser

孤人 提交于 2020-01-04 14:12:10
问题 This is my code. I inserted a icon inside the text field at the left. When auto complete feature is enabled in the browser, image getting disappeared by the autocomplete. What should i do, to make the icon displayed even when the autocomplete feature is enabled inside the browser ? input.usernm{ font-size: 14px;font-weight: normal; text-indent: 8px;text-transform: uppercase;height: 10px;background: url(resources/images/userimg.png) no-repeat 8px 7px;width: 183px; } <h:inputText styleClass=

JSF2.0 + Primefaces 3.0.1 + jquery 1.6.4 + p:commandLink + IE8 throws Unexpected call to method or property

懵懂的女人 提交于 2020-01-04 09:30:12
问题 Team, i am running the described setup on a maven based jetty (8.0.1) and get some strange exceptions in IE8 (only!). The Error that IE is given me, looks like: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0) Timestamp: Wed, 29 Feb 2012 14:09:38 UTC Message: Unexpected call to method or property access. Line: 23 Char: 22640 Code: 0 URI: http://127.0.0.1:8080/javax.faces.resource/jquery/jquery.js.jsf?ln=primefaces&v=3.0.1 The described piece of

Unable to paste the context in Primefaces Extension pe:inputNumber using mouse

岁酱吖の 提交于 2020-01-04 06:43:08
问题 We've been using Primefaces (v 3.5) and Primefaces Extensions (v 0.7.0) in our project and it's been great, cheers for the developers and community! The inputNumber component takes care of pretty much all of our needs when dealing with decimal fields. The one thing that isn't working is when the user paste a value into the field using the mouse right button then paste option . When that happens, it seems these values aren't processed, since when I submit the form they are cleared, no matter

Why does JSF null out a nested class successfully instantiated in the backing bean?

人走茶凉 提交于 2020-01-04 06:00:52
问题 For the sake of clarity (and brevity) I am listing just the key segments of my code. I have a backing bean MemberView containing two nested classes: private Person person; private Member member; that are instantiated when the page loads: @PostConstruct public void init() { person = new Person(); member = new Member(); } with the appropriate getters and setters. I have a web page, member.xhtml, that utilizes PrimeFaces and displays nested class properties: <p:inputText value="#{memberView

How to conditionally render or style a row of primefaces dataTable?

好久不见. 提交于 2020-01-04 05:30:10
问题 Inside my p:dataTable , I am trying to render only the rows I need. Code: <h:form id="f"> <p:dataTable var="order" value="#{mbOrderController.ordersList}"> <f:facet name="header">#{msg.orders}</f:facet> <p:column sortBy="#{order.orderNr}" headerText="#{msg.order_number}"> <p:outputLabel value="#{order.orderNr}" rendered="#{order.type.label == 'Shoes'}" /> </p:column> <p:column sortBy="#{order.date}" headerText="#{msg.date}"> <p:outputLabel value="#{order.date}"> <f:convertDateTime pattern="dd

How to reset dropdown on primefaces commandButton reset type

[亡魂溺海] 提交于 2020-01-04 05:21:10
问题 How to reset the value of p:selectOneMenu on pressing p:commandButton on type reset. The code i have is as follows <h:form id="form"> <p:panelGrid columns="2" cellspacing="10" > <f:facet name="header">Login</f:facet> <p:outputLabel value="Username" /> <p:inputText value="#{user.username}" /> <p:outputLabel value="Password" /> <p:password value="#{user.password}"></p:password> <p:outputLabel value="Locale" /> <p:selectOneMenu > <f:selectItem itemValue="Select Country" itemLabel="Select Country

How to address the surrounding naming container in jsf?

限于喜欢 提交于 2020-01-04 05:08:27
问题 I have a jsf 2.0 page with a <p:dataTable> and inside this table a <p:commandButton> that should delete an item from this table with an ajax request. The deleting itself works fine, but I do not know how to identify the surrounding <p:dataTable> for the render update . <lots of naming containers> ... <p:dataTable id="dataTable" var="userItem" ... /> <p:column> <p:commandButton action="#{userController.doDelete(userItem.id)}" value="delete" update="?????"/> <!-- How to address the dateTable? -

Primefaces download file from datatable [duplicate]

为君一笑 提交于 2020-01-04 04:40:13
问题 This question already has an answer here : How and when should I load the model from database for h:dataTable (1 answer) Closed 3 years ago . I have this weird issue with File Download option not being called from the XHTML. I am very new to JSF, so it might be something basic that I am screwing up, but any help would be appreciated. This is my XHTML <p>Files List</p> <h:form prependId="false"> <p:dataTable value="#{pc_ArchiveFiles.archiveFiles}" var="fs" paginator="true" rows="5"