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...
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 ?
...
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...
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 ...
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...
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 ...
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? ...
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...
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-...
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...
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...
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...
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...
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
...
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 which was generated by seam pdf plugin (via iText)
...
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...
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?
...
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...
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...