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
5
votes
2 answers

changing anotations from JBoss Seam to CDI (JEE6)

We are migrating our App from JBoss Seam to CDI (JEE6), so we are changing some anotations like @In and @Out, there's a lot of information that we have found helpful, but we have some troubles trying to find out how to replace anotations with…
4
votes
1 answer

Seam 2.2 App on JBoss 7.1?

We have deployed our JBoss Seam 2.2 application on JBoss 5.1 with PostgreSQL as the database. It makes use of EJBs, JPA (Hibernate), JSF (Richfaces and Primefaces), Servlets, and JMS queues and topics. Recently, we've decided to migrate the…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
4
votes
2 answers

How to use view scope in case of CDI in JSF 2.0

I created a JSF 2.0 project in Netbeans 6.9. I am starting using CDI. After creating project when i tried to add scope, then i noticed that there is no viewscope in it. I want to know that are the conversation scope and view scope refer to same…
Basit
  • 8,426
  • 46
  • 116
  • 196
4
votes
1 answer

SEAM redirect page from backing bean

I have a proper newbie SEAM question, I want to redirect the user to a different page from a backing bean I know in most cases you should use pages.xml however there could be a number of different pages depending on the bean logic so it seems like…
DaveB
  • 2,953
  • 7
  • 38
  • 60
4
votes
3 answers

JBoss AS or Tomcat for Seam Application? And why?

We're about to deploy a Java web application built using JBoss Seam as the application framework. We'll be deploying in a clustered setup, as this is an e-commerce application and we're concerned about both high-availability and performance. We've…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
4
votes
2 answers

Mock/Test Super class call in subclass..is it possible?

I am looking for a solution to mock the super call in subclass ButtonClicker. Class Click { public void buttonClick() throws java.lang.Exception { /* compiled code */ } } Class ButtonClicker extends Click { @Override public void…
Himalay Majumdar
  • 3,883
  • 14
  • 65
  • 94
4
votes
4 answers

How can I call a JavaScript function after every a4j AJAX response?

I am working on a web app using JSF w/Seam. I want to be able to call a JavaScript function after every ajax response. I'm looking for a way to do this without putting an oncomplete attribute on every commandLink/commandButton on every page. I think…
iandisme
  • 6,346
  • 6
  • 44
  • 63
4
votes
1 answer

Is it OK to use JobStoreTX instead of JobStoreCMT for Quartz jobs in Seam?

Examples of using Quartz within Seam 2 are shown with both JobStoreTX, JobStoreCMT and RAMJobStore. Our project needs to persist jobs so we can do clustering, but I can't get JobStoreCMT to execute jobs. What is the difference between JobStoreCMT…
spikeheap
  • 3,827
  • 1
  • 32
  • 47
4
votes
2 answers

JSF/Seam: How to download and print a dynamically generated PDF file without user intervention?

I have a JSF/Seam web app which has a page with a form which, when submitted (button clicked), causes a PDF file to be dynamically created (in Java, server side) based on the form input. Currently what I have working is that the resulting PDF is…
mluisbrown
  • 14,448
  • 7
  • 58
  • 86
4
votes
5 answers

Tricks to speed up Jboss Seam debug cycle

We deploy and debug a Jboss Seam 2.0 EAR app from within eclipse, booting it on Jboss AS 4.2.2. Right now we need to reboot it every time we change the message bundle, pages.xml, components.xml, or the model, which takes up to 45 seconds. Is it…
Daan van Yperen
  • 674
  • 6
  • 26
4
votes
1 answer

java.sql.SQLException: Unable to obtain lock in 60 seconds

I'm tracking this error for a while now, it hapens on irregular basis unpredictibly and I haven't find a way to reproduce it for now. Our environment linux centos 5.3 hosting one jboss 5.1 app server linux centos 5.3 hosting one oracle 10g XE…
simonC
  • 4,101
  • 10
  • 50
  • 78
4
votes
1 answer

Java/JSF i18n long texts (terms,faq)

in most cases i just have a lot of short text strings combined somewhere in the page. But on a few occasions i have just a page with long static text, like terms or faq. Now, just put the paragraph also in the resource bundle or build a switch to…
webstrap
  • 1,004
  • 1
  • 10
  • 24
4
votes
1 answer

facelet tag performance

I have a file with large content to display. For example in displaying user profile, every EL expression in needs an userId as an argument to bean which is taken from the session context. I declared this userId in xhtml file as…
Achaius
  • 5,904
  • 21
  • 65
  • 122
4
votes
1 answer

Seam3/Weld - Could not find Entity Manager

I have a project (EJB 3.0, packaged as EAR) with a view (JSF 2.0) and persistence (JPA 2.0, Hibernate) layer. To avoid the lazy initialization support and other issues I tried to introduce a Seam Managed Persistence Context with Seam…
wintersolutions
  • 5,173
  • 5
  • 30
  • 51
4
votes
3 answers

How to make JSF / Seam pages accessible without JavaScript

I'm currently checking a complex web application for accessibility without JavaScript. We heavily rely on JSF and Seam to render the pages and I'm more than annoyed about the overall behaviour when JavaScript is turned off. Many links and buttons…
Daniel Bleisteiner
  • 3,190
  • 1
  • 33
  • 47