faces-config

faces-config with from-outcome not being string (boolean) fails with NullPointerException

时光毁灭记忆、已成空白 提交于 2019-12-12 02:03:13
问题 I've been using JSF 2.1 with mojarra-2.1.20 , and I've configured in my faces-config.xml a navigation case like this: <navigation-rule> <from-view-id>/loggedOut.xhtml</from-view-id> <navigation-case> <from-action>#{sessionManager.isLoggedIn}</from-action> <from-outcome>true</from-outcome> <to-view-id>/login.xhtml</to-view-id> <redirect /> </navigation-case> </navigation-rule> The action is executed using seam-faces viewAction (similiar to JSF 2.2 new tag). All has been working fine. Today I

faces-config.xml in JAR file behaves differently on two Dominos

£可爱£侵袭症+ 提交于 2019-12-11 03:59:07
问题 I have distribution package for beans. To save some work to developers it contains faces-config.xml declaring beans used by the JAR - inside META-INF directory of JAR. JAR is inside WebContent\WEB-INF\lib and referenced in build path of NSF. Development server works with this setup and does not require any change to faces-config.xml inside NSF. But database made as copy or refreshed via template from development server does not work - web page fails with error: Error while executing

Eclipse Faces Config Editor not working

南楼画角 提交于 2019-12-11 00:44:26
问题 Summary The Faces Config Editor in Eclipse does not open when editing faces-config.xml. This is in a JavaServer Faces project. Details Eclipse 3.7.2 Eclipse m2e 1.0.1 m2e-wtp plugin 0.15 I've seen this question already (How to activate Faces configuration editor in Eclipse?), but when I add the Faces facet to my project it no longer compiles. Probably because I imported a Maven project, rather than using the Eclipse WTP project creation wizard. I have the Maven directory structure (which I

How to activate Faces configuration editor in Eclipse?

ぐ巨炮叔叔 提交于 2019-12-10 18:06:19
问题 When I make a JSF2.0 project in eclipse, the opening of it's faces-config.xml file always starts the faces configuration editor. But now I have a Google AppEngine project and I have added JSF2 (and PrimeFaces) manually. And when I open the faces-config.xml file, the faces configuration editor doesn't start so I can edit this file only through xml source. How can I activate the Faces Configuration Editor for this project? 回答1: Add the JSF facet in the Project Facets section of the project's

Faces Navigation not really working in JSF2

白昼怎懂夜的黑 提交于 2019-12-08 09:56:32
问题 I'm using JSF 2.0 this is my faces-config.xml <?xml version="1.0" encoding="UTF-8"?> <!-- This file is not required if you don't need any extra configuration. --> <faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"> <navigation-rule> <from-view-id>/pages/test/test.html</from-view-id> <navigation-case> <from

Faces Navigation not really working in JSF2

送分小仙女□ 提交于 2019-12-06 15:46:19
I'm using JSF 2.0 this is my faces-config.xml <?xml version="1.0" encoding="UTF-8"?> <!-- This file is not required if you don't need any extra configuration. --> <faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"> <navigation-rule> <from-view-id>/pages/test/test.html</from-view-id> <navigation-case> <from-outcome>write</from-outcome> <to-view-id>/pages/test/test-write.html</to-view-id> </navigation-case> <

How to register a (Component)SystemEventListener for all UIInputs

谁都会走 提交于 2019-12-06 04:46:47
问题 I am trying to have a custom SystemEventListener that registers for all instances of type UIInput and reacts to their postValidate -Events. Based on an example I found on the web I managed to get one running for HtmlInputText by registering it in the faces-config.xml as follows: <system-event-listener> <source-class>javax.faces.component.html.HtmlInputText</source-class> <system-event-class>javax.faces.event.PostValidateEvent</system-event-class> <system-event-listener-class>com.ourcompany

JSF faces config file outside WEB-INF?

笑着哭i 提交于 2019-12-01 04:41:25
When creating multiple faces config files, it is correct to have the faces-config.xml outside of WEB-INF? The JSF spec does not seem to be very clear about this (Section 10.1.3) If yes, how should this faces-config.xml be declared in web.xml? the paths generated by IDE's (like Eclipse/JDev) generally use something like: <context-param> <param-name>javax.faces.CONFIG_FILES</param-name> <param-value>/WEB-INF/faces-config1.xml</param-value> </context-param> Now, if my faces-config.xml is outside WEB-INF -- is it correct to declare the param-value as something like "/WebContent/WEB-INF/faces

JSF faces config file outside WEB-INF?

蓝咒 提交于 2019-12-01 02:38:33
问题 When creating multiple faces config files, it is correct to have the faces-config.xml outside of WEB-INF? The JSF spec does not seem to be very clear about this (Section 10.1.3) If yes, how should this faces-config.xml be declared in web.xml? the paths generated by IDE's (like Eclipse/JDev) generally use something like: <context-param> <param-name>javax.faces.CONFIG_FILES</param-name> <param-value>/WEB-INF/faces-config1.xml</param-value> </context-param> Now, if my faces-config.xml is outside

FacesContext not injectable in Wildfly 14 with JSF 2.3 (Mojarra, main module)

 ̄綄美尐妖づ 提交于 2019-12-01 00:37:47
I have a bean: import javax.faces.context.FacesContext; import javax.faces.view.ViewScoped; ... @Named @ViewScoped public class SimpleBean implements Serializable { private static final long serialVersionUID = 1L; @Inject protected FacesContext facesContext; ... } According to https://arjan-tijms.omnifaces.org/p/jsf-23.html#1316 this should work with 2.3 ... When deploying to Wildfly 14, this results in: 13:02:33,516 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 72) HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect 13:02:33,563 INFO [org.hibernate.envers.boot