seam2

Facebook social plugins and JSF

半城伤御伤魂 提交于 2020-01-01 20:04:43
问题 I have to integrate the Facebook social plugins into a JSF application. This recommends that I add the fbml namespace to the xhtml file that it's rendered in the response. I have in my XHTML file: <!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:ui="http://java.sun.com/jsf/facelets" ... xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://ogp.me/ns#"> But the fb

Facebook social plugins and JSF

ぐ巨炮叔叔 提交于 2020-01-01 20:01:01
问题 I have to integrate the Facebook social plugins into a JSF application. This recommends that I add the fbml namespace to the xhtml file that it's rendered in the response. I have in my XHTML file: <!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:ui="http://java.sun.com/jsf/facelets" ... xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://ogp.me/ns#"> But the fb

cast error with addCallbackParam in primefaces

社会主义新天地 提交于 2019-12-25 05:25:38
问题 Using the requestContext demo example in my system http://www.primefaces.org/showcase-labs/ui/requestContext.jsf I am getting the following error Caused by: java.lang.ClassCastException: org.primefaces.context.DefaultRequestContext cannot be cast to org.primefaces.context.RequestContext at org.primefaces.context.RequestContext.getCurrentInstance(RequestContext.java:38) [primefaces-3.4.1.jar:] the error occur when the java command running RequestContext context = RequestContext

Heartbeat while having a long-lasting request

橙三吉。 提交于 2019-12-24 06:45:09
问题 How can I implement a heartbeat with JSF 1.2, RichFaces 3.x using SEAM 2.x which also works during a long-lasting request executed by an user? Currently, we've got a heartbeat (to avoid session timeout) using <aj4:poll action="#{bean.keepAlive}" ... /> which does not work during long-lasting requests on the server. Using an own eventsQueue="heartbeat" allows that the required heartbeat is sent even while executing a long-term request but leads us into a org.jboss.seam

How to add custom filters in JBoss Seam

…衆ロ難τιáo~ 提交于 2019-12-22 01:19:50
问题 I am new to JBoss Seam. I have been having issues with a small project am working on. The project has some errors and unfortunately for me I cannot find out the exact cause of the errors. I get a javax.servlet.ServletException. Please could someone tell me how to add custom filters so that I would be able to trap errors properly. 回答1: If you want to trap all synchronous exceptions happening in Seam, you extend the Exceptions class in Seam. @Name("org.jboss.seam.exception.exceptions") @Scope

Unique Constraint Over Multiple Columns

梦想与她 提交于 2019-12-20 10:17:15
问题 I am using SEAM 2/Hibernate along with PostgreSQL 9 database. I have the following table Active Band =========== active_band_id serial active_band_user text active_band_date timestamp active_band_process integer I would like to add a constraint that ensures each new entry has a unique combination of active_band_user and active_band_date. There could potentially be many attempted inserts per second so I need this to be as efficient as possible, is there a SEAM / hibernate annotation I can use

WebLogic 10.5.3 + Seam 2.2.1: Application does not start

穿精又带淫゛_ 提交于 2019-12-13 02:54:13
问题 we have a WAR packaged web application which works on a development machine. It consists of Java EE 5 + Seam 2.2.1 + Hibernate 3.3.1. It uses an Oracle 10g XE database and runs on the latest Tomcat 6 using JDK 1.6.0_24. The system is a 64bit Windows 7 Pro and uses Firefox 6. Now, we tried to migrate the application to Oracle WebLogic 10.3.5. We followed the Seam manual for specifying the datasource, deploying the JSF lib and configuring the necessary xml-Files. In parallel to that, we

How to deployee jboss seam 2.1.2 IN Jboss 7

喜夏-厌秋 提交于 2019-12-12 05:13:17
问题 Now I am using Jboss-seam 2.1.2 ,jsf 2.0 ,richfaces and jpa till now i am used jboss-as 4.2.2 now I want to migrate jboss-as-7.1.1.Final. so now i am make sampleDemo project using seam-gen using jboss- seam 2.1.2 and deplyed in jboss 7 finally I got one issue in jboss 7 its not allow <jta-data-source>sampleDemoDatasource</jta-data-source> its not allow in jboss7 changed to persistence.xml <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema

Help me to understand SEAM and Hibernate?

落花浮王杯 提交于 2019-12-10 15:37:54
问题 I want to use SEAM Framework with Hibernate but do not want to use EJB. I cannot use EJB. First question is, can I use EntityManager? or is EntityManager a part of EJB? How can I get access to use Hibernate in my SEAM component? Thanks, Philip 回答1: With Seam, you can use either Hibernate or JPA (EntityManager). It works regardless of EJB. You can use plain POJO if you want. How can I get access to use Hibernate in my SEAM component ? Here goes Hibernate settings WEB-INF/components.xml

Migrating JSF-Application to Weblogic 12

此生再无相见时 提交于 2019-12-10 13:47:13
问题 We developed a Seam 2 based Java EE 5 application and it runs on Weblogic 11g. Now I tried to deploy the same WAR file to the new Weblogic 12c (12.1.1.0 on my local Windows 7 machine) by following the same steps as on the previous WLS, including the deployment of the required JSF 1.2 library. The deployment and start of the application works fine, but when I open the URL in the browser, I get an 500 error and the logfile shows the following exception: java.lang.UnsupportedOperationException