ajax-update

Make multiple dependent / cascading selection components in JSF

自闭症网瘾萝莉.ら 提交于 2020-05-24 07:06:08
问题 I am trying to make 4 dependent / cascading selection components. In this question, the selection component happens to be a <h:selectOneMenu> , but this is of course applicable on any other kind of selection component, such as <h:selectManyCheckbox> , <p:selectCheckboxMenu> , etc. When the user chooses an item from the first menu, the second menu will show dependent data and when the user chooses item from the second one , the third one will show dependent data and so on. The user will see

Make multiple dependent / cascading selection components in JSF

99封情书 提交于 2020-05-24 07:06:06
问题 I am trying to make 4 dependent / cascading selection components. In this question, the selection component happens to be a <h:selectOneMenu> , but this is of course applicable on any other kind of selection component, such as <h:selectManyCheckbox> , <p:selectCheckboxMenu> , etc. When the user chooses an item from the first menu, the second menu will show dependent data and when the user chooses item from the second one , the third one will show dependent data and so on. The user will see

Primefaces - update datatable with commandButton doesn't work

那年仲夏 提交于 2020-05-12 22:27:59
问题 I'm facing some problems by updating a datatable with a commandButton. This is the xhtml file: <div class="grid_16"> <h:form id="list"> <p:messages></p:messages> <p:dataTable styleClass="result-table" var="user" id="usersList" value="#{listUsersController.users}" widgetVar="userTable" paginator="true" rows="10" paginatorAlwaysVisible="false"> <f:facet name="header"> Listado de usuarios </f:facet> <p:column> <f:facet name="header"> <h:outputText value="#{cms['users.username']}" /> </f:facet> #

Primefaces - update datatable with commandButton doesn't work

半世苍凉 提交于 2020-05-12 22:26:43
问题 I'm facing some problems by updating a datatable with a commandButton. This is the xhtml file: <div class="grid_16"> <h:form id="list"> <p:messages></p:messages> <p:dataTable styleClass="result-table" var="user" id="usersList" value="#{listUsersController.users}" widgetVar="userTable" paginator="true" rows="10" paginatorAlwaysVisible="false"> <f:facet name="header"> Listado de usuarios </f:facet> <p:column> <f:facet name="header"> <h:outputText value="#{cms['users.username']}" /> </f:facet> #

Primefaces - update datatable with commandButton doesn't work

拟墨画扇 提交于 2020-05-12 22:22:28
问题 I'm facing some problems by updating a datatable with a commandButton. This is the xhtml file: <div class="grid_16"> <h:form id="list"> <p:messages></p:messages> <p:dataTable styleClass="result-table" var="user" id="usersList" value="#{listUsersController.users}" widgetVar="userTable" paginator="true" rows="10" paginatorAlwaysVisible="false"> <f:facet name="header"> Listado de usuarios </f:facet> <p:column> <f:facet name="header"> <h:outputText value="#{cms['users.username']}" /> </f:facet> #

Primefaces - update datatable with commandButton doesn't work

荒凉一梦 提交于 2020-05-12 22:22:02
问题 I'm facing some problems by updating a datatable with a commandButton. This is the xhtml file: <div class="grid_16"> <h:form id="list"> <p:messages></p:messages> <p:dataTable styleClass="result-table" var="user" id="usersList" value="#{listUsersController.users}" widgetVar="userTable" paginator="true" rows="10" paginatorAlwaysVisible="false"> <f:facet name="header"> Listado de usuarios </f:facet> <p:column> <f:facet name="header"> <h:outputText value="#{cms['users.username']}" /> </f:facet> #

Primefaces JSF update after validation failed doesn't work

旧时模样 提交于 2019-12-04 16:30:18
问题 I have a problem with the validation of a <p:inputText> and updating its content. Basically when the inputText validation fails, it never gets updated again. Here's a simple example to clarify: The Facelet: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"

Primefaces JSF update after validation failed doesn't work

若如初见. 提交于 2019-12-03 10:34:29
I have a problem with the validation of a <p:inputText> and updating its content. Basically when the inputText validation fails, it never gets updated again. Here's a simple example to clarify: The Facelet: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"> <h:head> </h:head> <body> <h1>Test</h1> <h:form id="list" prependId=

Cascading p:selectOneMenu model value not set

China☆狼群 提交于 2019-11-29 12:51:37
i have an application where i have a cascading dropdown, a simple dropdown and a submit commandButton. i wish to show report in datatable by selecting various criteria from the dropdowns. all works fine except when i wish to select the criteria from child dropdown. it doesnt bind with its value in the managed bean(found that by debugging). here's my code: xhtml: <h:outputText value="Exchange"/> <p:selectOneMenu style="width: 150px" value="#{reportBean.exchange}"> <f:selectItem itemLabel="--select--" itemValue="--select--"/> <f:selectItem itemLabel="NSE" itemValue="nse"/> <f:selectItem

Cascading p:selectOneMenu model value not set

旧时模样 提交于 2019-11-28 06:11:36
问题 i have an application where i have a cascading dropdown, a simple dropdown and a submit commandButton. i wish to show report in datatable by selecting various criteria from the dropdowns. all works fine except when i wish to select the criteria from child dropdown. it doesnt bind with its value in the managed bean(found that by debugging). here's my code: xhtml: <h:outputText value="Exchange"/> <p:selectOneMenu style="width: 150px" value="#{reportBean.exchange}"> <f:selectItem itemLabel="-