Questions tagged [seam]

JBoss Seam is an open source enterprise framework in Java. Because it fulfills some of the missed features of Java technologies such as JavaServer Faces and Enterprise Java Beans, Seam has positioned itself as the prototype for Java EE specifications.

JBoss Seam is an open source enterprise framework in Java. It includes among its features

  • Integrates presentation layer and server side business and persistence logic transparently
  • Dependency injection
  • Universal contextual model
  • Built-in persistence layer by using mediator pattern
  • Transaction management
  • A powerful event model
  • Bult-in Security model
  • Built-in application generator (customizable)

Because it fulfills some of the missed features of Java technologies such as JavaServer Faces (presentation layer) and Enterprise Java Beans (server side business logic), Seam has positioned itself as the prototype for Java EE specifications such as Contexts and Dependency Injection for the Java EE platform (contextual model), JavaServer Faces 2.0 JSR-314 (presentation layer) and Bean validation JSR-303 (validation).

Although Seam has built-in support for some Java EE technologies, you are free to choose the technology that fits better your needs.

Recommended readings

1371 questions
7
votes
3 answers

SEAM: Effective use of @BypassInterceptors?

I was wondering what advice the community could give me on the use of the @BypassInterceptors annotation when programming with Seam? I've been reading up on increasing Seam application performance, and without fail every article mentions that…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
7
votes
1 answer

Call javascript function with if JSTL

Is there a way to call a javascript function inside an if with JSTL? Here's the code CALL JS FUNCTION HERE
David
  • 840
  • 6
  • 17
  • 37
7
votes
1 answer

ViewExpiredException after identity.logout(); in JBoss Seam

After my AuthenticationFilter redirect to login page, I would like to logout to user. That's why, I put identity.logout(); in my pre-render method checkPermission(...) of login.xhtml. But, I get the ViewExpiredException when the user login again. My…
Zaw Than oo
  • 9,651
  • 13
  • 83
  • 131
7
votes
2 answers

a different object with the same identifier value was already associated with the session when trying to persist entity

I have a slight problem that I don't know how to solve. Could you help me please? When I am trying to persist entity I get next exception: 12:47:39,398 ERROR [org.black.dmitriy.entityHome.ScheduleHome] (http--127.0.0.1-8080-1) …
user1767476
  • 73
  • 1
  • 1
  • 4
6
votes
3 answers

Manual Rollback of transactions in Seam

This is a similar problem to Forcing a transaction to rollback on validation error The scenario is this: A user edits a page, the transaction is set to MANUAL so only if we call flush it would be committed to the database. Now the user wants to…
Ben
  • 1,922
  • 3
  • 23
  • 37
6
votes
3 answers

Hibernate/JPA - Entity listener not being called properly

I'm trying to leverage EntityListener objects and callback methods within my Seam/Hibernate/JPA application. I'm using a Seam 2.2-managed persistence context on JBoss 5.1 with PostgreSQL 9.1 on the backend. I have the following entity…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
6
votes
2 answers

CDI missing @ViewScoped and @FlashScoped

Why is Java EE 6 CDI missing the @ViewScoped and @FlashScoped annotations? (especially the former makes me wonder, because CDI stems from the Seam world, which already knew the very similar ScopeType.PAGE...) What are the recommended workarounds…
Kawu
  • 13,647
  • 34
  • 123
  • 195
6
votes
7 answers

JBoss Seam tutorials

Let's say that I'm new to JBoss Seam, is there a way to get my skills up to speed? Are there any good tutorials?
yoitsfrancis
  • 4,278
  • 14
  • 44
  • 73
6
votes
4 answers

Using a4j:support to update the model and view, ready for the next button/submit action

The Problem We have a swing based front end for an enterprise application and now are implementing a (for now simpler) JSF/Seam/Richfaces front end for it. Some of the pages include fields that, when edited, should cause other fields to change as a…
Gyan aka Gary Buyn
  • 12,242
  • 2
  • 23
  • 26
6
votes
4 answers

Two web apps on one domain with different context roots?

I have a problem. I have two web apps deployed as wars. Let's call them app1.war and app2.war. I would like app1.war to be accessed at the URL www.website.com and I would like app2.war to be accessible as www.website.com/anotherapp. I have my…
donakalz
  • 85
  • 1
  • 1
  • 6
6
votes
1 answer

Seam centralized exceptions

i'm using seam 2.2, primefaces as view presentation layer. I would write some kind of infrastructure in order to capture all exceptions. For example i put in a facelets following piece of code:
6
votes
1 answer

Hibernate/JPA: Mapping entities to different databases

I have an application which manages 3 databases. I use hibernate with JPA on seam framework. So I have a persitence.xml file with three persitence-unit like this (I remove properties for db2 and db3):
Kiva
  • 9,193
  • 17
  • 62
  • 94
6
votes
1 answer

JBoss Seam Design Patterns?

I've really taken a liking to the JBoss Seam application framework. Since the notion of injection/outjection and tight integration between JSF/EJBs/JPA is relatively scarce among Java application frameworks, I was looking for some good resources…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
6
votes
3 answers

JSF -- Alternative to "rendered="?

We're developing a Java web app that utilizes JSF (Richfaces through Seam) for its UI. I've read several articles that indicate that using the "rendered=" attribute on UI components results in a pretty substantial performance hit. We have several…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
6
votes
2 answers

Using Seam in a single legacy WAR of an otherwise Weld-enabled EAR

We are using Wildfly 8.2.0.Final, Maven 2.2.1, Seam 2.2.0.GA, and Weld 2.2.6.Final. We have an EAR file with a legacy WAR, a new WAR, and a bunch of other modules. The legacy WAR relies on Seam, but the new WAR and the rest of the modules in the EAR…
mattalxndr
  • 9,143
  • 8
  • 56
  • 87