seam

SEAM: Component "disinjected" "too soon" in interceptor?

Hello, Let's say I have the following interceptor in a SEAM app: public class MyInterceptor { @In private Monitor myMonitor; @AroundInvoke public Object aroundInvoke(InvocationContext ctx) throws Exception { try { myMonitor.a(); return ctx.proceed(); } finally { myMonitor.b(); } } } myMoni...

How to inject a Spring bean into a Seam context?

I need to inject a Spring bean into a Seam context. Unless I declare the spring bean as a EJB, I cannot get it injected into other seam-managed components. But when I do this, all the spring injected fields are usless cause Seam creates new instances at run-time. I also tried to add the <seam:component/> element to the spring bean defi...

Javascript confirmExit unless redirect is going to a error.seam

Bascially I have a page for editing Events that needs to warn a user of unsaved changes when moving page. If the server throws an error I use Seams redirect filter to go to error.xhtml, however this pops up the confirm dialog and allows users to cancel the page redirect and remain on the broken editing page. Can I change the below code ...

Binding more than one input field to a backing bean property by using Java Server Faces ?

Hi, Suppose i have a month, day and year select. One select for each one. And now i need to bind them to a single backing bean property - java.util.Date. How do i get my goal ? ...

How do i retrieve a JSF component value by using EL ?

Hi, Before going on, see this question Its JSF form is shown again as follows <f:view> <h:form> <div> <label>Id</label> <input type="text" name="accountId"/> </div> <div> <label>Amount</label> <input type="text" name="amount"/> </div> <h:comman...

Many instances of an application scoped Seam component

Hi, I have a Seam component annotated like this: @AutoCreate @Name("asyncServiceManager") @Scope(ScopeType.APPLICATION) public class AsyncServiceManager { The classes that use it are configured like this: @In("#{asyncServiceManager}") private AsyncServiceManager asyncServiceManager; When running the code, I see that the class Asyn...

Jboss Seam Booking Example Extract Shared Libs From Ear

Example Booking Application, which JBoss Seam is shipped with, build into EAR file of about 7 MB. That's pretty much if you consider deploying this package to a remote Jboss server and possibly redeploying it package many times during your regular work. Lib files like richfaces and jsf-facelet make the lion's share of that EAR size. Why...

JBoss Seam using LDAP Indetity Store and JPA Identity Store together

Hello all, I've been recently working on a JBoss Seam project (v2.1.1) where I want to autheticate against LDAP/AD and store premissions in a custom DB schema. The documentation states that this is possible and I saw a text-book example that doesn't work for me since the DB schema is managed by Hibernate. Has anyone out there done some...

Seam unit test can't connect to JBoss4.0.5GA

Does anybody know how to connect with JBoss4.0.5GA in Seam2.2.0GA unit test? I'm using Seam2.2.0GA with the embeded JBoss to run the unit test, the module needs to call old JBoss server (EJB2, because the vendor locked in JCA has to deploy on old JBoss). it's typical seam test case, and I can't get it connect to JBoss4.0.5GA by using jbo...

Losing Class Custom Annotation For Proxy Classes

Hi, I am using Seam to inject beans to my controller using @In annotation. The injected class has a custom annotation, when calling injectedClass.getClass().getAnnotation(annotationClass) it returns null. When debug I found that Seam passes a proxy instance so getClass() returns InjectedClass_$$_javassist_seam_5 which doesn't have my c...

Hibernate - Entity Manager Factory

Hi all, I have been recently running into an issue in which my web application will not start properly and the stack trace doesn't indicate exactly what happened. I have been able to isolate it to an event listener that I wrote. Whenever I attempt to activate it, I get a very generic exception: org.jboss.seam.InstantiationException: ...

seam shutdown listener

Hi all, I would like to observe when the application is about to shutdown. I thought this code block would work, but it never catches that event. My component is an event scoped component, I only want it to live for the scope of that event. @Observer("org.jboss.seam.preDestroyContext.APPLICATION") @Transactional public void o...

Intercepting the end of the HTTP Session with Seam

I need to intercept the end of each request a user does against a Seam web app. While Filters seem to be the right tool for catching requests before they hit your business logic, Interceptors seem to be useful as advices for individual classes... Thanks! ...

jboss seam deployment error

I am the beginner to jboss seam. I got the following error while deploying: 16:47:06,675 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider 16:47:06,707 INFO [InjectedDataSourceConnectionProvider] Using provided datasource 16:47:06,753 WARN [JBossManag...

Seam application Architecture

I need to implement quite big system in Seam. I'm considering the way of designing the architecture. If it's good to use page controllers or application controllers or front controller or every each of them. If it's helpful to use backend bean or maybe there's no need to do that. If you have any suggestion or link to helpful article I wi...

i got this exception while deploying seam application,

Problem starting service jboss.j2ee:ear=registration-ear.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3 java.lang.NullPointerException at org.jboss.ejb.txtimer.DatabasePersistencePolicy.listTimerHandles(DatabasePersistencePolicy.java:165) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun....

Session size in JEE/Seam Application

Hi all, I'm running into problems with the size of my Sessions with my Web Application that is based on the Jboss Seam Framework. I am using MessAdmin to investigate and it is reporting that as soon as a User logs in, their session size jumps from 50KB to 55MB (ouch). This seems crazy as I keep very few Objects in the Conversation/Sess...

JSF ReRender support with selectBooleanCheckbox

I have a JSF page on which I want to have a checkbox that, when clicked, will add/remove certain other form fields from the page. Here is the (simplified) code I currently have for the checkbox: <h:selectBooleanCheckbox title="showComponentToReRender" value="#{backingBean.showComponentToReRender}"> <a4j:support event="onsubmit" reRe...

rich:dataTable sorting issue (ajax) + rich:datascroller 'next' control does not go passed page 2

Hello, I am using Richfaces 3.3.0, Facelelts 1.1.14 and Seam 2.1.1. I have an issue my rich:dataTable component and sorting. I noticed a pattern... the very first click on the table on a column header has no effect then all subsequent clicks on any header actually performs previously requested order. I tried many different things, but...

Seam internationalization redirection

Good evening all. Is there a standard way to do the redirection/rewrite of a specific url to a different one? Imagine an user accessing the following view: http://www.something.com/us/download.xhtml?id=2 I want to set the Locale from the previous view and redirecting to http://www.something.com/download.xhtml?id=2 <page view-id="/us/...