primefaces

Unwanted Autofills

那年仲夏 提交于 2020-01-15 08:13:11
问题 I am having a problem in my web application. I seem to have been experiencing auto-fill in my username and password field. It is ok when I do a log in, the problem is it still does the auto-fill even in the create account page, even though I named my textFields(InputText) different from the other. I have tried this in both chrome and firefox, it still the same. Here are some screenshots of the application and codes. For the create account page <p:outputLabel id="userLabel" value="Username*" /

Assign dynamic ids to hidden fields when iterating over a collection

馋奶兔 提交于 2020-01-15 07:59:05
问题 Is there a way to assign dynamic ids to h:inputHidden components? EDIT1 I am trying to assign the ids inside a ui:repeat tag when iterating over a collection of elements. 回答1: It is not possible to set the ID based on the iteration value of an <ui:repeat> . But you don't need it anyway. They will by default already get dynamic and unique IDs based on the iteration index. E.g. <h:form id="form"> <ui:repeat value="#{bean.list}" var="item"> <h:inputHidden id="hidden" value="#{item.value}" /> <

Assign dynamic ids to hidden fields when iterating over a collection

左心房为你撑大大i 提交于 2020-01-15 07:58:08
问题 Is there a way to assign dynamic ids to h:inputHidden components? EDIT1 I am trying to assign the ids inside a ui:repeat tag when iterating over a collection of elements. 回答1: It is not possible to set the ID based on the iteration value of an <ui:repeat> . But you don't need it anyway. They will by default already get dynamic and unique IDs based on the iteration index. E.g. <h:form id="form"> <ui:repeat value="#{bean.list}" var="item"> <h:inputHidden id="hidden" value="#{item.value}" /> <

Primefaces, dataexporter and watermark

流过昼夜 提交于 2020-01-15 07:54:06
问题 i have a dataTable with filtered columns and using watermark to set input value and save some space in header, but when try to use dataExport the pdf file is rendered with some kind of reference from waterMark, like: Column Title org.primefaces.component.watermark.Watermark@46339a4c The desired column content (...) and the structure of my xhtml is basically: <h:form id="formID"> <p:commandButton value="Export"ajax="false"> <p:dataExporter type="pdf" fileName="file" preProcessor="#{my.stuff}"

p:panelGrid inside p:panelGrid, how to remove borders in an outer p:panelGrid?

瘦欲@ 提交于 2020-01-15 07:32:12
问题 I have an outer <p:panelGrid> and I use it for layout (I know regarding the element <p:layout> but couldn't achieve same results with it as with <p:panelGrid> ). Inside this <p:panelGrid> I have various elements <p:dataTable> , another <p:panelGrid> , etc... I need to remove borders in an outer <p:panelGrid> but everything I've done affect borders of the internal elements as well. I tried nth-child(n) , I tried catch specific borders with #form\\:outer-panel-grid tr, #form\\:outer-panel-grid

How to show a popup in primefaces with the requiredMessages, only if these messages exist?

大城市里の小女人 提交于 2020-01-15 05:04:06
问题 I want to show a popup with the requiredMessages of some inputText fields when I click on a submit button. But just only in case of there are those messages. I have tried with bean variable and javascript on the oncomplete tag, but I'm not able to make it work properly. If I put visible="true" in p:dialog, the popup is always displayed, although I try to control it from the commandButton. Now, I have this, but the popup is never displayed: <h:inputText id="Scheme" required="true"

How to show a popup in primefaces with the requiredMessages, only if these messages exist?

谁说胖子不能爱 提交于 2020-01-15 05:03:12
问题 I want to show a popup with the requiredMessages of some inputText fields when I click on a submit button. But just only in case of there are those messages. I have tried with bean variable and javascript on the oncomplete tag, but I'm not able to make it work properly. If I put visible="true" in p:dialog, the popup is always displayed, although I try to control it from the commandButton. Now, I have this, but the popup is never displayed: <h:inputText id="Scheme" required="true"

primefaces datatable is showing blank rows. Showing the same number of rows as the records in backed list

谁都会走 提交于 2020-01-14 18:55:40
问题 Thanks to all those who are responding to the problems of the developers. I am facing some issue with primefaces 5.0 in datatable. i am having one datatable with 14 records into that backed by list as usual. It was working fine till the time i added spring into my JSF application. list backed in datatable is getting data from database though one method which is setting the values into the list(not filling data in getter method). now when i am checking in getter of the list, it is having 14

target=“_blank” in h:commandlink not opening page in new tab of browser

余生长醉 提交于 2020-01-14 12:32:18
问题 My h:commandLink is opening/previewing the pdf document on same page/window when h:commandlink used with target="_blank". I want it to be opened in new tab of the browser where can be the error? Preview.xhtml code: <h:commandLink id="DocUpoadPreview" action="#{documentController.previewUploadedFile}" value="Preview" target="_blank" > </h:commandLink> In previewuploadedFile() action encription/decryption and some other process with pdf is required that is why necessary to use and that is why

Changing width filter inputbox primefaces datatable

自古美人都是妖i 提交于 2020-01-14 08:08:09
问题 Hi how do i apply the ccs style for the filter inputbox in a primefaces datatable, trying to use filterstyle this way: <p:column styleClass="placaColumna" filterStyle="width=16px" headerText="Placa" filterBy="# {bandeja.placa}"><h:outputText value ="#{bandeja.placa}"/></p:column> thanks :D 回答1: Your inline style CSS syntax is incorrect. It should be like this. filterStyle="width: 16px;" 回答2: You can also use an CSS class with the option filterStyleClass Don't forget to use !important in your