primefaces

how to forward to a new page on click a tab of tabview

时光怂恿深爱的人放手 提交于 2020-01-15 15:47:09
问题 I have a page named Tabview1 which composed of tabview. Tabview1.xhtml: <p:tabView> <p:tab title="1"> <ui:include src="/Apanel.xhtml"/> </p:tab> <p:tab title="2"> </p:tab> <p:tab title="3"> </p:tab> </p:tabView> I want to forward to the page Tabview2.xhtml if click on the tab named 2 . Tabview2.xhtml: <p:tabView> <p:tab title="1"> </p:tab> <p:tab title="2"> <ui:include src="/Bpanel.xhtml"/> </p:tab> <p:tab title="3"> </p:tab> </p:tabView> Who can help me ? 回答1: Tabview creates a list with one

<p:ajax> not firing when choosing null value

ぐ巨炮叔叔 提交于 2020-01-15 15:26:26
问题 I have the following p:selectOneMenu : <p:selectOneMenu widgetVar="selectELclUpdateLcl" style="font-size:11px;" value="#{tabparam.selectedDataEntite}" appendTo="@this" id="selectedDataEntite" required="true" requiredMessage="Entité obligatoire" converter="entiteConverter"> <p:ajax event="change" listener="#{tabparam.enableBloc}" update="sBloc sTLocal sEtage" /> <f:selectItem noSelectionOption="true" itemLabel="-- Entités --" value="#{null}"></f:selectItem> <f:selectItems value="#{tabparam

Center component on jsf page

自古美人都是妖i 提交于 2020-01-15 10:23:27
问题 I was trying to center the component in jsf page, it looks sth like this: <p:panel header="Enter your credentials:" style="vertical-align:middle;"> <h:panelGrid columns="2" styleClass="panelGridCenter"> <h:outputText value="Login: " /> <p:inplace id="Login"> <p:inputText value="Enter login" /> </p:inplace> </h:panelGrid> </p:panel> I've tried to enter sth like this: style="vertical-align:middle;" I've tried to use a css class (I've had almost no experience with css): .panelGridCenter { margin

Center component on jsf page

删除回忆录丶 提交于 2020-01-15 10:23:20
问题 I was trying to center the component in jsf page, it looks sth like this: <p:panel header="Enter your credentials:" style="vertical-align:middle;"> <h:panelGrid columns="2" styleClass="panelGridCenter"> <h:outputText value="Login: " /> <p:inplace id="Login"> <p:inputText value="Enter login" /> </p:inplace> </h:panelGrid> </p:panel> I've tried to enter sth like this: style="vertical-align:middle;" I've tried to use a css class (I've had almost no experience with css): .panelGridCenter { margin

Primefaces TreeTable frozen columns

痴心易碎 提交于 2020-01-15 09:47:33
问题 is it possible to make the first two columns of a primefaces treetable frozen? This is my TreeTable: <h:form id="mmvUebersicht"> <p:treeTable id="massnahmenUebersichtTable" value="#{mmvOrganisationseinheitenTreeHandler.root}" var="_tree" selection="#{mmvOrganisationseinheitenTreeHandler.selectedNode}" selectionMode="single" scrollable="true" scrollHeight="500"> <p:ajax event="expand" listener="#{mmvOrganisationseinheitenTreeHandler.onNodeExpand}" /> <ui:remove> <p:ajax event="select" update="

JSF Primefaces Pagination with Backend [duplicate]

偶尔善良 提交于 2020-01-15 09:22:25
问题 This question already has answers here : Primefaces DataTable + JPA / Hibernate Pagination (2 answers) Closed 11 months ago . Maybe it's a bit weird, but I don't know how to get the pagination of PrimeFaces to my backend. I know there is the showcase and there are multiple answers here but I'm questioning if it really has to be like this. Additionally my project is not structured with DAO and things, which leaves me in the dark. I use a Spring Boot config. The grounding of the whole project

Primefaces - custom component for live filtering in dataTable

被刻印的时光 ゝ 提交于 2020-01-15 09:13:35
问题 PrimeFaces has very well done filter for p:dataTable. It is great from UX site, because the filter field is in column header, so there's no doubt what you are filtering, and it's working live - the data changes as you type (well, only if you make a short pause, but it's in my opinion exactly what user expects). Now I'd like to place something custom in the header that would act as filter. So, my idea was to place a component in header facet: <p:column ...> <f:facet name="header"> <some

Primefaces - custom component for live filtering in dataTable

孤街浪徒 提交于 2020-01-15 09:13:10
问题 PrimeFaces has very well done filter for p:dataTable. It is great from UX site, because the filter field is in column header, so there's no doubt what you are filtering, and it's working live - the data changes as you type (well, only if you make a short pause, but it's in my opinion exactly what user expects). Now I'd like to place something custom in the header that would act as filter. So, my idea was to place a component in header facet: <p:column ...> <f:facet name="header"> <some

Ajax update has no effect, Firefox errors: XML or text declaration not at start of entity

爱⌒轻易说出口 提交于 2020-01-15 08:21:07
问题 I have small form which will receive values from a class. However pressing the button will not update the selectOneMenu. Refreshing the form will correctly fill the menu with the correct items. I was expecting update="instrument"/> to refresh the content of the menu. But I guess I am missing something. Note that the method in the bean are getting called on button press. The list is filled and also the int is set when choosing an item. <h:form id="listForm"> <p:outputLabel for="instrument"

Unwanted Autofills

我们两清 提交于 2020-01-15 08:13:39
问题 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*" /