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
6
votes
3 answers

Forcing a transaction to rollback on validation errors in Seam

Quick version: We're looking for a way to force a transaction to rollback when specific situations occur during the execution of a method on a backing bean but we'd like the rollback to happen without having to show the user a generic 500 error…
Chris Williams
  • 11,647
  • 15
  • 60
  • 97
6
votes
3 answers

Concurrent call to conversation

I'm using Seam and getting a "Concurrent call to conversation" error. What does this mean? I have a button that takes 5 min to process. I get this error within 2 minutes. Setting the concurrent-request-timeout to 10 min does not seem to work. Is…
bhargav
  • 111
  • 1
  • 2
  • 6
6
votes
3 answers

Inject Bean into CDI Context programmatically?

Is it possible to manually Inject a bean into a CDI context? With the JBoss Seam framework, I could always do something like Contexts.getConversationContext().set("foo", bar); and the Bean would become part of that context. Is it possible to do…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
6
votes
1 answer

Servlet Filter not working when exception is thrown

What am I trying to do? I am trying to generate new timestamped tokens from server side that client can use in their subsequent request What I have tried? I have a Servlet filter which wraps around REST calls and looks like @WebFilter(urlPatterns =…
daydreamer
  • 87,243
  • 191
  • 450
  • 722
6
votes
2 answers

Manual Transactions with Seam POJO

What is best practice for using Database Transactions with Seam when not using EJBs - ie. when deploying Seam as a WAR? By default Seam JavaBeans support Transactions. I can annotate a method with @Transactional and that will ensure that a…
Damo
  • 11,410
  • 5
  • 57
  • 74
6
votes
3 answers

How do I prevent form resubmission in Seam?

I have a simple form that I don't want accidentally submitted multiple times. I can easily block the user from multiple clicks when they first see the page, but I have no control over them hitting the back button. So, having worked with Struts, I…
Jon Bristow
  • 1,675
  • 3
  • 27
  • 42
6
votes
4 answers

Seam Problem: Could not set field value by reflection

I'm having a problem with my Seam code and I can't seem to figure out what I'm doing wrong. It's doing my head in :) Here's an excerpt of the stack trace: Caused by: java.lang.IllegalArgumentException: Can not set java.lang.Long field…
Lee Theobald
  • 8,461
  • 12
  • 49
  • 58
6
votes
2 answers

How do you unit test Jboss Rules (Drools) rules?

I have written a few Drools rules for my Seam application and am wondering how I go about unit testing these. Does anybody have any sample code that can show me how to go about doing this?
Aaron Chambers
  • 1,354
  • 2
  • 12
  • 27
6
votes
1 answer

Seam PDF - Aligning "p:data" keys to the left

I have the following code to generate a pdf from data:
Vinicius Seufitele
  • 885
  • 1
  • 6
  • 15
6
votes
4 answers

How to re-render a RichFaces component after a4j link is invoked

Hoping someone can help me with a slight hurdle I've come up against in regards to re-rendering of RichFaces components after an a4j link/button has performed it's action. A simplified version of my problem is as follows: I have 2 output components…
Aaron Chambers
  • 1,354
  • 2
  • 12
  • 27
6
votes
4 answers

Java Regular Expression, match everything but

I would like to match everything but *.xhtml. I have a servlet listening to *.xhtml and I want another servlet to catch everything else. If I map the Faces Servlet to everything (*), it bombs out when handling icons, stylesheets, and everything…
Walter White
5
votes
2 answers

What will probably be the biggest changes (losses) switching from Seam 2 to plain JavaEE 6?

Question pretty much says it all, though explicitly I'm looking for the things I will probably miss about Seam 2 in a Java EE 6 environment ("losses"). For my latest (small) project JavaEE 6 or more specifically JSF 2 was a fix requirement, so using…
Kawu
  • 13,647
  • 34
  • 123
  • 195
5
votes
1 answer

Seam 2, how to get the servletcontext?

I'm in seam 2. How can I get the servlet context? I can do this: ServletContexts servletContexts = ServletContexts.getInstance(); But this is not the ServletContext.
Phil
  • 46,436
  • 33
  • 110
  • 175
5
votes
1 answer

Seam bijection and Weld

I'm developing a JAVA EE 6 app. I'm using CDI extensively, My question is, are @Inject and @Produces the same as @In and @Out for Seam? Are @In and @Out annotations still used now that we have CDI?
arg20
  • 4,893
  • 1
  • 50
  • 74
5
votes
2 answers

How to specify rewrite pattern in pages.xml

I am having many xhtml files in several folders. I want to rewrite the url as from http://localhost:8080/folder1/file1.seam to http://localhost:8080/folder1/file1 In file1.page.xml I gave The above provided…
Achaius
  • 5,904
  • 21
  • 65
  • 122