facelets

Why can't I see HTML 5 <dialog>?

寵の児 提交于 2021-02-18 08:01:12
问题 Here is my Facelets file: <!DOCTYPE html> <html lang="en" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"> <h:head> <title>Simple JSF Facelets page</title> </h:head> <h:body> Place your content here! <dialog> <dt>Sam</dt> <dd>Knock, Knock.</dd> <dt>Eric</dt> <dd>Who's there?</dd> <dt>Sam</dt> <dd>Justin.</dd> <dt>Eric</dt> <dd>Justin who?</dd> <dt>Sam</dt> <dd>Justin time for dinner!</dd> </dialog> </h:body> </html> What I see in the browser is only Place your

Adding action methods to a composite component

无人久伴 提交于 2021-02-16 05:11:58
问题 I am learning about composite components with JSF 2.0 and i want my component to be able to trigger methods from backing beans, so i created a simple example, but something is wrong. This is the component i created: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:composite="http://java.sun.com/jsf/composite"> <composite:interface> <composite:attribute name="attribute1"/> <composite:attribute name="attribute2"/> <composite:attribute name="actionBtnText"/

Adding action methods to a composite component

让人想犯罪 __ 提交于 2021-02-16 05:10:13
问题 I am learning about composite components with JSF 2.0 and i want my component to be able to trigger methods from backing beans, so i created a simple example, but something is wrong. This is the component i created: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:composite="http://java.sun.com/jsf/composite"> <composite:interface> <composite:attribute name="attribute1"/> <composite:attribute name="attribute2"/> <composite:attribute name="actionBtnText"/

JSF2: How are the *.taglib.xml files discovered in jsf-impl.jar?

泪湿孤枕 提交于 2021-02-07 09:17:57
问题 In jsf-impl.jar (which can be found on mvnrepository.com), the *.taglib.xml files are located in directory com/sun/faces/metadata/taglib/ . I don't understand how they're discovered in this case, because chapter 10.3.2 of the JSF 2 specification says: 10.3.2 Facelet Tag Library mechanism ... The run time must support two modes of discovery for Facelet tag library descriptors Via declaration in the web.xml, as specified in Section 11.1.3 “Application Configuration Parameters” Via auto

JSF2: How are the *.taglib.xml files discovered in jsf-impl.jar?

寵の児 提交于 2021-02-07 09:17:11
问题 In jsf-impl.jar (which can be found on mvnrepository.com), the *.taglib.xml files are located in directory com/sun/faces/metadata/taglib/ . I don't understand how they're discovered in this case, because chapter 10.3.2 of the JSF 2 specification says: 10.3.2 Facelet Tag Library mechanism ... The run time must support two modes of discovery for Facelet tag library descriptors Via declaration in the web.xml, as specified in Section 11.1.3 “Application Configuration Parameters” Via auto

How do I protect JSF 2.0 facelets against direct access?

流过昼夜 提交于 2021-02-07 02:50:31
问题 I have found one idea here, putting files under /WEB-INF is a way to block direct access: With Facelets, one can also put XHTML files under the /WEB-INF, if they are templates or included files (same restrictions as with JSP essentially). The page also presents a solution based on Java EE security, which allows direct XHTML access only to members of a specific user group. <security-constraint> <display-name>Restrict XHTML Documents</display-name> <web-resource-collection> <web-resource-name

How do I protect JSF 2.0 facelets against direct access?

折月煮酒 提交于 2021-02-07 02:50:01
问题 I have found one idea here, putting files under /WEB-INF is a way to block direct access: With Facelets, one can also put XHTML files under the /WEB-INF, if they are templates or included files (same restrictions as with JSP essentially). The page also presents a solution based on Java EE security, which allows direct XHTML access only to members of a specific user group. <security-constraint> <display-name>Restrict XHTML Documents</display-name> <web-resource-collection> <web-resource-name

Springboot Whitelabel Error Page with JSF (AWS)

和自甴很熟 提交于 2021-01-28 03:47:28
问题 I have an old (inherited) project that I need to deploy on AWS but I get some problems related to the template folder. This project has an index.xhtml on "src\main\webapp" instead of "src\main\resources\templates", I think it is beacuse it uses jsf but I'm new on Springboot and jsf pages. In the documentation I've got it says that in order to open the web you need to visit http://localhost:5000/index.jsf so to solve it I made a class with @Controller public class IndexController {

Changes in .xhtml file not reflected in browser, restart and build needed

空扰寡人 提交于 2021-01-27 06:28:56
问题 If I make changes in my .xhtml file, the changes are not getting reflected on the screen in my browser. To get it to work, I have to restart the server everytime. This seems unwieldy to me. I have added the following context parameters in my web.xml : <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <context-param> <param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name> <param-value>1</param-value> </context-param>

Changes in .xhtml file not reflected in browser, restart and build needed

旧时模样 提交于 2021-01-27 06:28:11
问题 If I make changes in my .xhtml file, the changes are not getting reflected on the screen in my browser. To get it to work, I have to restart the server everytime. This seems unwieldy to me. I have added the following context parameters in my web.xml : <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <context-param> <param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name> <param-value>1</param-value> </context-param>