seam

Is RESTful JSF possible?

青春壹個敷衍的年華 提交于 2019-12-03 06:32:23
I recently sat down to port a simple Rails app I have to JSF (using Seam) to get a feel for which I would be more productive in. The Rails app is RESTful, which I like. Upon starting into JSF, I was surprised to learn, perhaps incorrectly, that JSF only support POSTs, which makes it inherently non-RESTful. I searched around a bit but cannot find a satisfactory answer. JSF/Seam appears to be very popular, but it doesn't make sense to me that it would forbid all HTTP methods but POST. Is it true that JSF inherently does not allow for a RESTful architecture, or am I wrong and RESTful JSF is

How to conditionally style a row in a rich:dataTable

心不动则不痛 提交于 2019-12-03 05:43:11
How can I change the style of a particular row based on a condition? I can use JSF EL in rich:column style class attribute, but I have to write for each column. I want to change the entire row. Thanks I do as you've already mentioned and put the style on the column. However you could always try wrapping all of your columns in a <rich:columnGroup> which is supposed to output a <tr> and place your conditional style on that. EDIT: (in response to comment): if the header facets in your columns are being broken then you can separate them into a column group as well. Should work - you may not even

Seam in JBoss Application Server 7?

我们两清 提交于 2019-12-03 03:04:55
Which Seam framework version is supported in JBoss AS 7? I am planning to use Seam2.2.2, is it compatible with Jboss AS 7? jan groth Yes and no. If you visualize yourself the timeline of Seam, the answer comes from alone: Seam 2.x was created to ease development against Java EE 5 and to serve as an incubator for future standards, mainly Java EE 6 and JSF 2 Java EE 6 took the ideas from Seam 2 (and others) to specify CDI (and improve APIs like JSF) Seam 3 brings new ideas to Java EE 6 and serves as an incubator for future standards, mainly Java EE 7 and JSF 2.x Yes, Seam 2 is - more or less -

Unique Constraint Over Multiple Columns

前提是你 提交于 2019-12-02 21:43:14
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 in the entity mapping? Thanks in advance There is no Hibernate annotation that checks uniqueness before

JSF doesn't interpreted in seam

与世无争的帅哥 提交于 2019-12-02 18:24:42
问题 Hy guys, I installed jboss-seam on weblogic 10.3 (with many problem :( ) but now it's work, my application is deployed. But now, I have a new problem, my JSF isn't interpreted and the JSF code appears in HTML. Here is my web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http:/

JSF doesn't interpreted in seam

喜夏-厌秋 提交于 2019-12-02 12:15:34
Hy guys, I installed jboss-seam on weblogic 10.3 (with many problem :( ) but now it's work, my application is deployed. But now, I have a new problem, my JSF isn't interpreted and the JSF code appears in HTML. Here is my web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <listener> <listener-class>com.sun.faces

Configuring Infinispan CacheProvider in Seam 2.3

微笑、不失礼 提交于 2019-12-02 03:29:12
I am trying to migrate my Seam 2.3 application to use Infinispan for caching within JBoss AS7. I've looked at the Blog example within the Seam 2.3 distribution, and have copied the jGroupsConfig.xml and infinispan.xml files into my web application's source path and modified my components.xml to specify the appropriate cache provider. However, when I run something like this... public class MyClass { ... @In CacheProvider cacheProvider; ... public void myMethod() { this.cacheProvider.get("abcd"); } ... } ...I get an error saying the Infinispan cache cannot be started. There are no further errors

How to map IceFaces <ice:selectInputDate> component on a java.util.Calendar field?

自作多情 提交于 2019-12-02 02:04:47
Does anybody knows how can component <ice:selectInputDate> be mapped on a java.util.Calendar field, not java.util.Date ? I am using from IceFaces version 1.8.2, the component <ice:selectInputDate> . This component requires to be bound with a java.util.Date proeprty. For example, value="#{bean.myDate}" , the myDate field must be of type java.util.Date . But I need my date field to be of type java.util.Calendar . My trials: I have tried to use standard converter or a custom one: Standard one: <f:convertDateTime pattern="dd/MM/yyyy" /> it formats correct the value in GUI, but when setting it on

seam-mail does not work on JBoss AS 6

别来无恙 提交于 2019-12-01 13:40:58
Im using JBOSS Seam 2.0 with JBoss 6 to send emails. I'm getting java.lang.UnsupportedOperationException when I try to send emails, can anybody shed some light as to why? The full stack trace is as follows: Exception in MailBean ::: sendMail -> : java.lang.UnsupportedOperationException at com.ey.SkillTracker.bean.administration.MailBean.sendMail(MailBean.java:572) [:] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_13] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_13] at sun.reflect.DelegatingMethodAccessorImpl.invoke

seam-mail does not work on JBoss AS 6

被刻印的时光 ゝ 提交于 2019-12-01 11:02:20
问题 Im using JBOSS Seam 2.0 with JBoss 6 to send emails. I'm getting java.lang.UnsupportedOperationException when I try to send emails, can anybody shed some light as to why? The full stack trace is as follows: Exception in MailBean ::: sendMail -> : java.lang.UnsupportedOperationException at com.ey.SkillTracker.bean.administration.MailBean.sendMail(MailBean.java:572) [:] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_13] at sun.reflect.NativeMethodAccessorImpl.invoke