seam

entitymanger return null when putting in generic dao

hi; I am using seam with tomcate and icefaces the problem is when I inject entity manager in component bean it works well but if put it in generic DAO it returns null my code is like that: this the bean @Scope(ScopeType.PAGE) @Name("TestBean") public class TestBean { public void test(ActionEvent actionEvent) { Roles entity = new Rol...

gwt seam application doubt

Hi i have an application running on JBoss Seam 2, which uses rich faces as its presentation layer. My question is can I do away with rich faces and use gwt. what are the stuff that must take into account ? Is it possible ? ...

How do I send JSon as BODY In a POST request to server from an Android application?

Hi, I am working on my first Android Application. Now wat I want to do is to make a POST request to a restfull service running on server and I want the BODY of this request to be a JSon String. I am using GSon to generate the JSon to send to server. The code I am using to make the POST request follows: HttpPost requisicao = new Http...

Facelet was modified messages

I see this information in my jboss console, when my pages don't render properly. Does anyone know what this means? 14:22:46,403 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1 :54:54 PM, flushing component applied @ 2:22:43 PM 14:22:46,404 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1 :54:54 PM, flushing ...

Jpa, Seam updating entity

Hi there, I've got a Stateful Session bean where I create a object (in this case a user object) and saving it in my db. Now I just want so update this entry which doesn't work - a NullPointerExceptionis thrown instead. What is my fault here? Bean @Stateful @Scope(ScopeType.SESSION) @Name("Userdata") public class UserdataBean implement...

Problem with RestEasy and JSON

Hi, I am using RestEasy to marchal entities to JSON. That works okay but somehow every thing is represented as a String. e.g. @XmlRootElement(name="TestObject") public class TestObject { private Long value; public Long getValue(){ return value; } } Instead of creating something like: {TestObject:{value:1234}} It ...

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 adding this annotation can increase performance. My question is, where should it be applied? ...

How to instantiate a Home interface in a Seam Rest service if the Home interface has an User reference?

Hi, I am developing my first Seam + Android application and I am facing some new scenarios as expected. Now specifically for this app, I decided not to keep any state because probably 80% to 90% of the server calls on the REST service will be specifically to do a simple synchronization and the client is gone for a while, so there is(p...

seam-gen doesn't generate @ManyToMany relation

I am having problems generating a app(using "seam generate" after "seam create-project") With identifying relationship like Role , User and User_has_Role. It generates the 3 one-to-many , many-to-one entities instead of 2 @manytoMany entities. I have seen a similar question here http://stackoverflow.com/questions/2073199/seam-gen-doesnt-...

<rich:listShuttle> -- Preventing duplicates?

I have a data model in which I have an Item that can belong to one or more Categories. I'm trying to display a <rich:listShuttle /> allowing the user to select which Categories the Item should belong to. I'm using RichFaces and Seam 2.2.x, and haven't run into any problems in setting the values initially. My source is a list of the de...

Make sure you do not have two SeamPhaseListener instance installed

What does this mean message imply? The code works fine on JBoss 5.1 with Seam 2.2.1 CR2, but the same code fails to run on JBoss 6.0 M5 WARN [org.jboss.seam.Component] Exception calling JavaBean @PreDes troy method: shiftList: java.lang.IllegalStateException: No phase id bound to cu rrent thread (make sure you do not have two SeamPhas...

Jump to a state not defined on the jbpm pageflow.

Hi there. I have a pageflow with 4 steps, And I want to add a rule/state in the page flow so that if I return a navigation that is not defined in the page flow, it will go to a failsafe state. The goal of this is to be able to define a template with some predefined links, and be ab...

For TestNG, what is the proper method for pre-populating the data source containing a complex model when it will be queried using Hibernate?

I wish to write tests for our Seam Framework-based web site's internal search engine that uses Hibernate + Lucene indexing (on DB2) for queries. What is the best solution for populating the data source before the TestNG suite is run when the project's data model is quite complex considering entity relationships and field constraints? For...

could not acquire lock on a component

I get this error sometimes on a session scoped component, still haven't figured out what is causing this to fail. Any ideas? ERROR [Exceptions] handled and logged exception javax.el.ELException: org.jboss.seam.core.LockTimeoutException: could not acquire lock on @Synchronized component: importUser ...

Using the Seam framework without Stateful Session Beans?

Has anyone had success building a SEAM Application without using Stateful session beans? There is some confusion on a new project in which I think several stakeholders have essentially 'banned' stateful session beans... but some development is being done in SEAM. Most of the literature on SEAM encourages the use of Stateful Session B...

How to autoSize table cells generated via iText

How to autoSize table cells which was generated by seam pdf plugin (via iText) ...

How to externalize properties from JPAs persistence.xml?

I would like to put some of the hibernate configuration in a property file to make it editable without build and deploy. I tried to solve my problem by following the instructions from http://stackoverflow.com/questions/1989672/create-entity-manager-without-persistence-xml app.properties: hibernate.show_sql=true hibernate.dialect=org...

How does component instantiation work with respect to scope type

Even though I have specified the scope type as method, it gets instantiated in CONVERSATION scope. > UserHome userHome = (UserHome) Component.getInstance(UserHome.class, ScopeType.METHOD); This is quite confusing, can someone explain this behavior? ...

<a4j:commandLink> Not Rerendering

I'm trying to display a shopping cart in my application (Seam/RichFaces), and have included a "remove from cart" <a4j:commandLink /> next to each item to remove the item from the cart. When I click the link it is supposed to rerender the cart contents to show that the item has been removed. However, when I click the link, nothing happe...

Unable to view detail of an Object, if rendered via a @Factory method

I have the following code in my entity query class, which I use to display a List objects. The objects do get displayed properly when I use the @Factory method name ("users") to iterate through all members in a rich:dataTable. But when I click on particular user to go the detail page, the following gets tacked on as a page parameter (e.g...