facelets

Expose items of a list while iterating within composite component

浪子不回头ぞ 提交于 2020-01-05 20:23:30
问题 I'm iterating over a list of items in composite component. I want to expose each item of the list so that they could be used within the child component of this composite component, to create a template for how to display all items in the list. Here is my Composite Component implementation: customList.xhtml <ui:component xmlns="http://www.w3.org/1999/xhtml" xmlns:cc="http://java.sun.com/jsf/composite" xmlns:ui="http://java.sun.com/jsf/facelets"> <cc:interface> </cc:interface> <cc

Expose items of a list while iterating within composite component

China☆狼群 提交于 2020-01-05 20:23:19
问题 I'm iterating over a list of items in composite component. I want to expose each item of the list so that they could be used within the child component of this composite component, to create a template for how to display all items in the list. Here is my Composite Component implementation: customList.xhtml <ui:component xmlns="http://www.w3.org/1999/xhtml" xmlns:cc="http://java.sun.com/jsf/composite" xmlns:ui="http://java.sun.com/jsf/facelets"> <cc:interface> </cc:interface> <cc

selectItems java.lang.IllegalArgumentException

人走茶凉 提交于 2020-01-05 08:14:14
问题 I really have given this quite some time before posting it, but I just don't seem to narrow down to the source of the trouble. I have this "basically" simple code, let's just say that once I click on a <p:commandButton> , an action is fired that fills an ArrayList which is to be invoked on a <p:dataTable> . My <p:commandButton> is : <p:commandButton value="Afficher" actionListener="#{fieldController.fillListFields()}" ajax="false"/> as for my my <p:dataTable> , it's like this : <p:dataTable

Referencing CDI managed bean from Facelets error page

谁说我不能喝 提交于 2020-01-04 04:12:06
问题 I'm having a hard time trying to get a generic error-page to work in a (really simple) WAR project that uses JSF 2, Facelets and CDI. My application server is WebLogic 12c, which should support all of this out-of-the-box, but it fails to show the error page. When I deploy the exact same WAR to a Glassfish application server, it works. I'm leaning towards blaming WebLogic for being buggy in the CDI department, but could use some additional expertise to see if my approach is wrong. Here's what

after filtering Empty rows blank rows displayed while paging in the datatable using Primefaces

谁说胖子不能爱 提交于 2020-01-03 17:27:09
问题 I have problem with datatable using Primefaces 2.2.1 and JSF 2.0. I have used filtering and paging in the datatable. When I try to filter the selected data is displayed and when i remove the filter the entire data is displayed. But after this when i try to use paging then suddendly all the rows becomes blank(empty) See screenshot below Any suggestions. Please help. .xhtml file <p:dataTable var="user" value="#{userManagedBean.searchUsersResults}" selection="#{userManagedBean.selectedUser}"

Invoke ActionListener of Backing Component in Composite Component

喜欢而已 提交于 2020-01-03 05:54:09
问题 try to write a composite component that allows mutltiple text inputs. I read that it is possible to define a backing component for a composite component, so I don't have to write a renderer nor a handler. What I couldn't figure out is how to delegate actions declared in composite's xhtml to the backing component. I guess i did not yet quite understand the concept of this. Does anybody has an Idea? I am using Tomcat 7, EL 2.2, Spring 3, Mojarra 2.1.7 This is the way i'd like to use the

eclipse not giving any help on CTRL + Space [duplicate]

我的梦境 提交于 2020-01-03 05:23:16
问题 This question already has an answer here : EL proposals / autocomplete / code assist in Facelets with Eclipse (1 answer) Closed 4 years ago . When I was using .jsp file in eclipse was giving me help for tags... Where I was adding taglibs... <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %> Now I converted .jsp to .xhtml in which I can't add above taglibs instead I have to use <html xmlns="http://www.w3c.org/1999/xhtml"

JSF template, include a piece of HTML in each page

本秂侑毒 提交于 2020-01-03 02:53:04
问题 I can't figure out how to include a piece of HTML (say a little table ) in each of the pages of my web app. Say this is the table I want to include, so I made a template: <?xml version ... ?> <!DOCTYPE ..."> <html xmlns="... all the required namespaces ..."> <head> </head> <body> <table> <tr><td>first</td><td>second</td><td>third</td><td>...</td></tr> </table> </body> </html> then I have the code that uses it: <?xml version ...?> <!DOCTYPE ..."> <html xmlns="... all required namespaces ...">

JSF template, include a piece of HTML in each page

三世轮回 提交于 2020-01-03 02:53:02
问题 I can't figure out how to include a piece of HTML (say a little table ) in each of the pages of my web app. Say this is the table I want to include, so I made a template: <?xml version ... ?> <!DOCTYPE ..."> <html xmlns="... all the required namespaces ..."> <head> </head> <body> <table> <tr><td>first</td><td>second</td><td>third</td><td>...</td></tr> </table> </body> </html> then I have the code that uses it: <?xml version ...?> <!DOCTYPE ..."> <html xmlns="... all required namespaces ...">

FaceletContext is Null

假装没事ソ 提交于 2020-01-02 13:31:46
问题 I have a JSF 2.0 project that I am unable to obtain a FaceletContext from. Here is the setup from my web.xml: <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <context-param> <param-name>facelets.DEVELOPMENT</param-name> <param-value>true</param-value> <