seam

Seam-gen isn't working properly.. log4j acuses an error

Hello Seam Users, I'm having a couple problems with my Seam start up. I did the ./seam generate to reverse my current postgres db, which contains 4 tables, first I though everything was okay, just a warning message, but when I imported the project into eclipse, I saw that none of my packages had any class. This is the error that seam ...

What is the purpose of `wire()` and `isWired()` in Seam?

I am checking out Seam 2.2.0.GA, and using seam generate-entities it generated Home classes with the methods wire() and isWired(). What are these methods and what purpose do they serve? ...

Persisting a list of elements with composite keys

I'm using java persistence to save a list of entities that are associated to another entity. Here's a quick rundown of where I'm having some problems. @Entity public class Offer implements Serializable { @Id private Long offerId; @OneToMany @Column List<OfferCategory> offerCategories; } @Entity public class OfferCategory implem...

Seam 2.2GA + JBoss AS 5.1GA + Postgres 8.4

Hello Stackoverflow Users, Sorry for the big wall of text, but its mostly logs Thx for any help in any of my problems I've been trying to get help from Seam forums, but in vain. I'm trying this Setup mentioned in the title, but unsuccessfully. I have it all installed correctly and the problems start with the seam-gen. This is my bu...

Is there a way to use EL to get the current value of an h:inputText field?

Hi, I'm new to JSF and EL, and was wondering if there is a way to use EL to get the current value of an h:inputText field. Am I doing it wrong, or is it possible at all? Thanks, -Ben ...

How can I validate a field as required depending on another field's value in SEAM?

I'm trying to create a simple custom validator for my project, and I can't seem to find a way of getting seam to validate things conditionally. Here's what I've got: A helper/backing bean (that is NOT an entity) @RequiredIfSelected public class AdSiteHelper { private Date start; private Date end; private boolean selected; /* g...

Single column in JSF DataTable displaying wrong data

We are using JSF, Seam, and Hibernate. I am debugging a view that has a JSF Datatable that is getting its data from an EntityQuery. The EntityQuery has only the method getEjbql defined and is returning a query like "select viewA from ViewA viewA". The JSF DataTable is displaying the data correctly except for one column which is displayin...

How do I get a child object to edit using the same form in Seam?

I have a class, let's call it Task. Task can have sub-tasks. Sub-tasks can have sub-tasks, etc. I have a Seam JSF page that very nicely allows you to edit all the fields of any given Task. I also have a list of sub-tasks, and I want a user to be able to click on that subtask, and begin to edit it. So here's how I have that I've imple...

When I persist, the entity doesn't show up in the list view.

I'm trying to add a new entity and then after a successful commit, redirect them to the list action. Here's a summary of what I'm doing: @Name("offerAction") @Scope(ScopeType.CONVERSATION) public class OfferAction implements Serializable { @In private EntityManager entityManager; private List<OfferSite> offerSites; @Factory("off...

SEAM 2 with CAS Client 3

Hi i wounder if anyone know of any guide for SEAM 2 and CAS client 3 or newer out there? ...

Reading files inside a JAR file

Hi, I am trying to read database scripts in a Jar file so that I can split up my import.sql files as many times as I see fit. For instance, I have several projects or modules that provide reference data, so I have a few separate scripts in each project that declares that. Instead of having one large import.sql, my approach was to spli...

JBoss Seam - Can't @In annotations be used at the same time with accessor methods for different properties?

Hi, I generated a new form using sean-gen (seam new-form) and added another field to it using an @In annotation: @Stateful @Name("dummy") public class DummyBean implements Dummy { @Logger private Log log; @In StatusMessages statusMessages; @In private String bar; private String foo; public void doStuff() { ...

Trimming inputs in JBoss Seam

I am making a web application using JBoss Seam 2.2.0, and I want to trim my inputs before receiving them, even before the Hibernate Bean Validation phase. Is this possible? I saw someone using a PhaseListener to do the same functionality. Is this the best way to do it? ...

Hotfixing Code running inside Web Container with Groovy

I have a webapp running that has a bug. I know how to fix it in the sources. However I cannot redeploy the app as I would have to take it offline to do so. (At least not right now). I now want to fix the code "at runtime". Surgery on the living object, so to speak. The app is implemented in Java and is build on top of Seam. I have add...

error in combobox using SEAM 2.1.2 and JBOSS 4.2.3GA

Hi, I'm trying to create a combobox on a sean project and the sean tags are not recognizing my session bean method, but if i display the list in a simple table everything is ok. My session bean PaisSB.java: package br.com.logical.prepark.session; import java.util.List; import javax.persistence.EntityManager; import org.jboss.seam.S...

Maven To copy jar file from local folder

Hi I am using seam to develop my application and running it on weblogic 10.1MP Using maven2 to build the application and did not find the jboss-seam-wls-compatible.jar file in any repository. In maven how I can copy this jar from my local folder to the target/WEB-INF/lib folder. ...

Seam Best practices

Is there any document or article regarding the seam best practices. ...

Accessing the value of a Richfaces calendar during validation.

I am trying to validate a field based on another field's value. <h:form id="item"> <s:validateAll/> <h:selectBooleanCheckbox id="selected" value="#{bean.selected}" validator="selectedValidator"/> <rich:calendar id="startDate" value="#{bean.startDate}"/> </h:form> However, inside my validator. public void validate(FacesContext c...

Question about Seam context scope

Hi guys, I'm in doubt about using roles for different scopes for my seam components. For example: My project has a table called Parameter that stores all global parameters for the project as URLs, admin e-mail and etc ... For this table there is a simple CRUD interface for administration. So, reading the seam 2.1.2 documentation i un...

Need to run Seam Webservice on Weblogic

HI, I am having a webservice running successfully on JBoss App Server. However, when I try deploying the webservice example on Weblogic 10.0 MP1 after making the necessary changes I get the message that "No business interface, component interface or web service endpoint interface found for Session Bean". In the generated EAR file there ...