jsf-2

java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy

前提是你 提交于 2019-12-21 17:22:32
问题 I am trying to deploy my project on JBoss 6.0. I am using Netbeans 7.0.1, Spring 3.0.2 and JSF2.0. The project is running fine in Tomcat. But when I trying to deploy on JBoss, I am getting the following error: *** DEPLOYMENTS IN ERROR: Name -> Error vfs:///C:/jboss-6.0.0.Final/server/default/deploy/WebApplication3.war -> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///C:/jboss- 6.0.0.Final/server/default/deploy/WebApplication3.war DEPLOYMENTS IN ERROR: Deployment "vfs

How to detect a field value change in a JSF 2.0 page

时光怂恿深爱的人放手 提交于 2019-12-21 17:05:30
问题 I am using JSF 2.0 to develop a pretty big and complex page which contains numerous fields. Thre would be quit command button at the buttom of the page and when ever user selects the quit option I need to detect whether user has entered any value on one of the fields of the page. I am using the null check of each field values in the backing bean to do that now, but that's a very tedious and repeative job. I was wondering is there any smart solution for that ?? Any help will be highly

How to deploy a JSF 2.1 webapp in Oracle Weblogic 12.1?

╄→尐↘猪︶ㄣ 提交于 2019-12-21 16:58:08
问题 I am trying to deploy a JSF 2.1 webapplication to a Weblogic 12.1 application server, but the deployment fails with the following exception <javax.enterprise.resource.webcontainer.jsf.config> <BEA-000000> <Critical error during deployment: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.oracle.injection.integration.jsf.WeblogicFacesConfigResourceProvider cannot be cast to com.sun.faces.spi.ConfigurationResourceProvider at com.sun.faces.config.ConfigManager.initialize

When is session created during JSF login?

落花浮王杯 提交于 2019-12-21 13:08:12
问题 In JSF, it seems that sessions are created before a successful login. i.e. simply requesting the login page causes a new session to be created. It seems very wasteful (and vulnerable to DDoS attacks) to create a session for each request received, rather than each successfully logged in user. The code below is pretty generic, but shows the kind of simple scenario I'm referring to. index.xhtml: <html> <body> <h:form id="login"> <h:outputLabel for="username">Username</h:outputLabel> <p:inputText

Multiple validators for one input

让人想犯罪 __ 提交于 2019-12-21 12:43:28
问题 Is it possible to have multiple validators for one input in JSF 2.0? For example, say that I will write a username and the username must have 8 characters. And if OK, then check if the username does not exist in the database. <ice:inputText id="username" value="#{createClient.username}" maxlength="15"> <-- something like this --> <f:validator validatorId="usernameValidator" validatorId="usernameExistValidator" /> </ice:inputText> <ice:message for="username" /> 回答1: This is absolutely possible

Migrating from facelets 1.1 to faclets 2.0 - FaceletViewHandler

天大地大妈咪最大 提交于 2019-12-21 10:49:39
问题 I have read the following post which was very helpful Migrating from JSF 1.2 to JSF 2.0 but I am having a problem with the migration as I have a custom view handler which extends from FaceletViewHandler - this is not part of faclets 2. I am migrating on JBoss 4.2.2 the following: - JSF 1.2 to JSF 2.0 I also want to migrate the faclets - which i have a problem described above. In my application, I am also using Tomahawk - is there any problem with this migration? Thanks in advance. Elico. 回答1:

Migrating from facelets 1.1 to faclets 2.0 - FaceletViewHandler

老子叫甜甜 提交于 2019-12-21 10:49:04
问题 I have read the following post which was very helpful Migrating from JSF 1.2 to JSF 2.0 but I am having a problem with the migration as I have a custom view handler which extends from FaceletViewHandler - this is not part of faclets 2. I am migrating on JBoss 4.2.2 the following: - JSF 1.2 to JSF 2.0 I also want to migrate the faclets - which i have a problem described above. In my application, I am also using Tomahawk - is there any problem with this migration? Thanks in advance. Elico. 回答1:

JSF Adoption and Popularity

ぃ、小莉子 提交于 2019-12-21 09:26:55
问题 Just a general question, open for discussion... I'm very much liking JSF so far, I'm new to it, but I prefer it to Struts. From a professionals standpoint, do you see a strong future for JSF ? Is it worth an investment as a young programmer to learn JSF 2.0 over Struts or another similar framework ? Should I stick to regular JSP ? Is Ajax really simpler through JQuery than JSF ? I like new technologies and I like what I see so far from JSF but I want to be practical as well, and a lot Google

java.lang.LinkageError: loader constraint violation: when resolving interface method javax.servlet.jsp.JspApplicationContext.getExpressionFactory() [duplicate]

懵懂的女人 提交于 2019-12-21 09:21:23
问题 This question already has answers here : java.lang.LinkageError: javax.servlet.jsp.JspApplicationContext.getExpressionFactory (6 answers) Closed 4 years ago . I am using JSF 2.0 in Eclipse IDE. When I tried to implement JSP and Servlet, I get the following error: java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory() Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/jasper

Couldn't access FacesContext.getCurrentInstance() from Self Spawned Thread

孤者浪人 提交于 2019-12-21 06:04:47
问题 Couldn't get "FacesContext.getCurrentInstance()" in self spawned thread. Required to update the components dynamically based on a back-end process. Achieved the same by creating a thread for monitor the process and call back the component updation along with p:poll. However, seems "FacesContext.getCurrentInstance()" is not available for the new thread. Just getting NPE while calling any utility methods that relies with FacesContext.getCurrentInstance() from the newly spawned thread. Is there