seam

Seam not injecting Stateful EJB dependencies

I have not been able to find a solution to this problem and my post to the Seam forum has gone unanswered. I am hope someone here can help. I am a noob working with Seam, so I am sure I am just doing something stupid. Any help anyone can give me would be greatly appreciated... I have wasted hours and gotten nowhere. I used the jboss to...

How to configure nginx for JBoss?

How would I configure nginx to handle static content and delegate or pass dynamic content to JBoss? Thank you. ...

Question: Richfaces tabPanel - using the same page for the different tabs changing the content dinamically

I am using Seam 2.1.2 and RichFaces 3.3.2.SR1. <a4j:form> <rich:tabPanel switchType="ajax"> <rich:tab label="TAB 1" actionListener="#{outControl.tab1}" immediate="true"> <ui:include src="/pages/agenda/TabContain.xhtml" /> </rich:tab> <rich:tab label="TAB 2" actionListener="#{outControl.tab2}"> ...

Seam Custom Validation

Hi, I'm trying to implement a custom validation annotation in Seam. We have a list of objects, lets call it arrayA, and arrayA is different dependent on today's date. Next we have an input field stringB, stringB is some value in arrayA going through a transformation function funcC(...). So basically, we can validate stringB using th...

why tuckey UrlRewriteFilter outbound-rule mapping did not work ?

hi, i'm using the urlrewritefilter to pretty up my product links for a better google indexing (removing product parameter). example: .../product/snowboarda is transferred via url rewriting rule to .../product.seam?product=snowboarda rewriting rule <rule> <from>^/product/([a-zA-Z]+)$</from> <to>/product.seam?product=$1</to> ...

start and call a method of seam component on jboss startup

Possible Duplicate: How can I start a process on the start of a Seam application Hi, I am using JBoss 4.2.1 GA. I want my jboss server to load and call a method in my seam component on the server startup I have used init-method in my components.xml and I also have used @create annotation tag. Can anyone help me or point me ...

Seam IE Illegal Navigation Error

Hi, I am running a Seam application on Java 1.5, JBoss 4.2.1 I get a warning message on the application called "Illegeal Navigation" This does not come up in Firefox or Chrome browser but come up in IE Can anyone tell me a fix for the same ? ...

strange "String index out of range: 0" error

Hi, I have a huge application and at some point, when a redirect is involved i received this strange error: Caused by java.lang.StringIndexOutOfBoundsException with message: "String index out of range: 0" java.lang.String.charAt(String.java:687) com.sun.faces.application.ViewHandlerImpl.getActionURL(ViewHandlerImpl.java:652) org.jbo...

Java Seam IllegalStateException

Hi, In my code I am reading a list from a serialized file. On the click of a button the following happens: I update the database with the help of the data from the list object I then also navigate to the next screen java.lang.IllegalStateException: Attempted to invoke a Seam component outside an initialized application So what is t...

JBoss Seam: component installed in JNDI, access of component says Not Bound

My SFSB Seam component is bound to JNDI on deployment, as evidenced by this log message: Component: example, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class:com.purecharger.action.ExampleAction, JNDI: purecharger/ExampleAction/local My interface: @Local public interface Example { public List<String> getExample(); ...

In Seam what's the difference between injected EntityManager and getEntityManager from EntityHome

I am testing a Seam application using the needle test API. In my code I am using the getEntityManager() method from EntityHome. When I run the unit tests against an in memory database I get the following exception: java.lang.IllegalStateException: No application context active at org.jboss.seam.Component.forName(Component.java:1945) at ...

JBoss Seam: components injected into POJOs, but not Session Beans

I have a Seam component that handles login, with the name "authenticator": @Name("authenticator") public class AuthenticatorAction implements Authenticator { @PersistenceContext private EntityManager em; @In(required=false) @Out(required=false, scope = SESSION) private User user; public boolean authenticate...

dynamic richfaces dataTable, ajax4jsf, and reRendering

I have a rich dataTable that's defined inside of an a4j:outputPanel, and that's bound to a session-scoped backing bean that creates the HtmlDataTable. By itself, that part of my code is working fine, and the dataTable looks good. On another part of the page, there are some basic text links that I'm creating as a4j:commandLinks, and whe...

seam Concurrent call to conversation

seam Concurrent call to conversation . what is that about ? I have a button that takes 5 min to process. i get this error within 2. i have set the concurrent-request-timeout to 10 min. does not seem to work. is there a way to block all other requests until the first one has completed its response ?. ...

Seam Equivalent of Spring PersistenceUnitPostProcessor

We have a very comfortable setup using JPA through Spring/Hibernate, where we attach a PersistenceUnitPostProcessor to our entity manager factory, and this post processor takes a list of project names, scans the classpath for jars that contain that name, and adds those jar files for scanning for entities to the persistence unit, this is ...

TransactionRequiredException on OptimisticLockException

Hi there. I have the following class that generates sequencial Card Numbers. I'm trying to recover from OptimisticLockException, by calling recursively the same method. however, i'm getting TransactionRequiredException. Dows anyone knows how to recover from OptimisticLockException in my case? Thanks a lot in advance @Name("simpleAutoI...

Hibernate, EHCache, Read-Write cache, adding item to a list

Hi all, I have an entity that has a collection in it. The collection is a OneToMany unidirectional relationship storing who viewed a particular file. The problem I am having is that after I load the entity and try to update the collection, I don't get any errors, but the collection is never updated: Entity: @OneToMany(cascade = Casc...

JBoss Seam: In ScopeType.PAGE I get: java.lang.IllegalStateException: No conversation context active

Hi all, I have a page-scoped component, which has an instance variable List with data, which I display in a datatable. This datatable has pagination, sorting and filtering. The first time gate into the page, I get this appended in my URL: ?conversationId=97. The page works correctly, and when I change datatable pages no now component i...

Jboss Seam: Enabling Debug page on WebLogic 10.3.2 (11g)

Hi all, SKIP TO UPDATE 3 I want to enable the Seam debug page on Weblogic 10.3.2 (11g). So, I have done the following: I have the jboss-seam and jboss-seam-debug jars as dependency in both my ejb and web maven projects (both are modules of my superproject) I put this context parameter in my web.xml: <context-param> <param-nam...

Seam on Linux Problems

Hi, When a seam application on JBOSS using java 1,5 is deployed in Unix platform, I am getting this error. errorjava.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi ronment.java:62) It runs fine on w...