jsf

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> #

Using EL variable of <c:set> inside Facelets <ui:repeat> tags

China☆狼群 提交于 2020-05-11 08:23:07
问题 I have a Home . Each Home has a list of Room s. Each Room has zero or more Person s. I would like to count total persons of each home. But I can't add a new variable to record person count in any backing beans or entity. So I'd like to count it in the view only via <c:set> . My first attempt look like: <c:set var="personCount" value="${0}" /> <ui:repeat var="home" value="#{mybackingBean.homes}"> <ui:repeat var="room" value="#{home.rooms}"> ${personCount += room.persons.size()} </ui:repeat> <h

Can't execute Javascript in jsf page

前提是你 提交于 2020-05-10 06:20:04
问题 I'm new to jsf. I have been trying to do a simple Javascript function with commandbutton. I tried many times but wasn't even able to do an alert message. This is part of my code. Please can anyone guide me, and tell what is wrong, and what I should do to make it run? <?xml version="1.0" encoding="UTF-8"?> <!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

Can't execute Javascript in jsf page

你离开我真会死。 提交于 2020-05-10 06:19:28
问题 I'm new to jsf. I have been trying to do a simple Javascript function with commandbutton. I tried many times but wasn't even able to do an alert message. This is part of my code. Please can anyone guide me, and tell what is wrong, and what I should do to make it run? <?xml version="1.0" encoding="UTF-8"?> <!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

Can't execute Javascript in jsf page

寵の児 提交于 2020-05-10 06:19:21
问题 I'm new to jsf. I have been trying to do a simple Javascript function with commandbutton. I tried many times but wasn't even able to do an alert message. This is part of my code. Please can anyone guide me, and tell what is wrong, and what I should do to make it run? <?xml version="1.0" encoding="UTF-8"?> <!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

TinyMCE .js files not found when using JSF h:outputScript

孤街醉人 提交于 2020-05-09 07:38:31
问题 I have a JSF 2.0 Webapplication into which I d'like to include TinyMCE 3.5. The way I included it is like below: <composite:implementation> <h:outputScript name="tiny_mce/tiny_mce.js"/> <h:outputScript name="js/tinymce_init.js"/> <h:inputTextarea rows="5" cols="80" styleClass="tinymce" value="#{cc.attrs.value}"/> </composite:implementation> Now everything works fine. The only problem I have is that "tiny_mce.js" has some references to other js files in the tiny_mce folder. These references

JSF,Servlet和JSP有什么区别?

夙愿已清 提交于 2020-04-25 08:16:03
问题: How are JSP and Servlet related to each other? JSP和Servlet如何相互关联? Is JSP some kind of Servlet? JSP是某种Servlet吗? How are JSP and JSF related to each other? JSP和JSF如何相互关联? Is JSF some kind of prebuild UI based JSP like ASP.NET-MVC? JSF是一种基于预构建UI的JSP,如ASP.NET-MVC吗? 解决方案: 参考一: https://stackoom.com/question/8n6j/JSF-Servlet和JSP有什么区别 参考二: https://oldbug.net/q/8n6j/What-is-the-difference-between-JSF-Servlet-and-JSP 来源: oschina 链接: https://my.oschina.net/u/4438370/blog/3420824

JSF WebApp with Tomcat (which version?)

孤街浪徒 提交于 2020-04-17 20:38:11
问题 I want to develop a JSF 2 web application, but I'm confused about setting up the environment files, i.e. web.xml and faces-config.xml I would like to use JSF 2 (.xhtml), Tomcat 9.0 and Open JDK 11.0.2 I have seen this page: http://tomcat.apache.org/whichversion.html but I am not clear on the exact meaning of the columns, in particular (for the Tomcat 9.0.31 row) Servlet Spec 4.0: does it mean I have to set web-app version = "4.0" in the web.xml file? JSP Spec 2.3: what should I set? EL 3.0

confirmDialog commandButton does not redirect/ does nothing if you wait for a longer period of time/ idle time session

流过昼夜 提交于 2020-04-17 20:08:01
问题 I have a JSF page where a popup would appear if he is idle for some period of time. 3 min 10 min etc If he is idle for some period of time a confirmDialog box would comeup with a message - "Your session has expired." and a command button id="quitConfirm" OK Upon clicking the button ID it redirects to the home page or what ever path that you mentioned To test this I deployed this in my local weblogic server and after a wait time of 4 min or so clicked on the commandButton OK it redirected as