primefaces

further continuing of double press

让人想犯罪 __ 提交于 2019-12-24 10:56:48
问题 In a previous question BalusC gave me good advice on how a button, in place of a commandButton is useful for non ajax navigation. In particular it updates the destination address in the http: position which is useful for the user to bookmark a page. I tried to use this information to my advantage until I came upon a problem. In a button I tried to use outcome="#{backing.something}" to find out that it gives me a null result. This looks like a timing problem in that action="#{}" is evaluated

How to select all in primefaces dataTable with liveScroll

我与影子孤独终老i 提交于 2019-12-24 10:49:20
问题 I'm using primefaces v5.3 dataTable with liveScroll="true" and selectionMode="multiple". Header checkbox selects only visible rows and when i scroll down new rows appear non selected. I want header checkbox to select all rows: visible and invisible. Selection of only visible rows is meaningless and useless. Is it possible to fix? I tried to add all table data to selection by processing "toggleSelect, rowSelectCheckbox and rowUnselectCheckbox" events. It works on backend, but in UI rows are

how to resize an iframe to fit the enclosing panel

我只是一个虾纸丫 提交于 2019-12-24 10:39:21
问题 I am using PrimeFaces 3 for this. I have an iframe element inside a p:panel which is enhanced with a p:resizable component. What I want is to automatically resize the iframe on load and on resize event so that it fits the available width and height of the panel. Note that in this example, there is a p element with some text in it before the iframe . So the relative origin of the iframe isn't a constant. Here is the template code: <h1>Page To Test Stuff</h1> <script type="text/javascript">

Primefaces layout bug

拟墨画扇 提交于 2019-12-24 10:34:47
问题 I'm using Primefaces 3.0.M4 with JSF2. I created a page divided into some layout units. In one layout unit I have a selectOneMenu. When the page is rendered the select works just fine, but if I collapse the layout unit and restore it back, the select doesn't work anymore. I can see it, I click it but nothing happens. Is there a solution to this? 来源: https://stackoverflow.com/questions/7790277/primefaces-layout-bug

Change icon from jQuery UI to FontAwesome in PrimeFaces

牧云@^-^@ 提交于 2019-12-24 10:09:22
问题 I have a PrimeFaces p:tree and I was able to add font awesome expanded and collapsed icons using this, but there is an arrow icon before that which is from PrimeFaces and I was not able to figure out how to switch it font awesome arrows ( fa-arrow-circle-down and fa-arrow-circle-right ), or changing the color to white also suffices my need. I have looked at the Firebug and found that the PrimeFaces arrow is from an image url("/permitweb-1.0/faces/javax.faces.resource/images/ui-icons_616161

PrimeFaces fileUpload event doesn't fire

╄→尐↘猪︶ㄣ 提交于 2019-12-24 10:04:08
问题 In my application running on Apache Tomcat 6 I use fileUpload from PrimeFaces 3.0.M3. But it don't works correctly. When I upload files its appears in upload directory, but event not fired. Can somebody help me? My view code: <h:form prependId="false" id="uploadForm" enctype="multipart/form-data"> <p:fileUpload id="uploadControl" fileUploadListener="#{fileUploadBean.uploadHandler}" mode="advanced" /> </h:form> FileUploadBean class source: @ManagedBean @RequestScoped public class

PF's graphicImage doesn't render

倖福魔咒の 提交于 2019-12-24 09:59:02
问题 I'am using JSF/PF anf I can't make a graphicImage work. Reviewing the tons of topics published on forums, this PF's graphicImage seems to be so tricky. I am obviously doing somethig wrong, but, as long as I am replicating code that worked for others (see post), it must be something in the environment of the component. I hope to find a solution here, i'm stuck for weeks. Thanks Here is my original question in PF forum: I encounter a problem rendering the image. I have followed the code

CustomContent in Primefaces selectOneMenu without persisting object

你说的曾经没有我的故事 提交于 2019-12-24 09:58:59
问题 I am using the Primefaces SelectOneMenu (http://www.primefaces.org/showcase-labs/ui/selectOneMenu.jsf) with the "Custom content" version as described in the demo. The problem is that the columns only work if the actual value of the field, which is bound to the dropdown field, is of the type of the Object used as the value . The following works (if Bean.field is of type SelectObject ): <p:selectOneMenu value="#{bean.field}" var="x"> <f:selectItems value="#{valuesBean.getSelectItems()}" var="bt

Primefaces FileUpload Extensions Filter

北城以北 提交于 2019-12-24 09:52:37
问题 I need to view only some list of extensions in the dialog not even choosing them as a possible variant of file. Using p:FileUpload. 回答1: Per the Primefaces Development Guide 2.2, allowTypes - Semi colon separated list of file extensions to accept. The following is an attribute of the fileUpload component tag. 来源: https://stackoverflow.com/questions/6343184/primefaces-fileupload-extensions-filter

Change Update attribute dynamicaly in Primefaces

ε祈祈猫儿з 提交于 2019-12-24 09:39:57
问题 I am looking for a way to change the update attribute of a primefaces command button from the backing bean after the form submit. What i am trying to achieve is to update the component id's based on the results from backing bean method. For example, i am trying to update the form and the growl message with a command button, now if some error has happened from the backing bean(not validation error), i need to update only the growl message and the form shouldn't be updated. <p:commandButton