[jboss-user] [JBoss Seam] - Custom Servlet and Conversation Propagation

2008-02-12 Thread reind
I have a custom servlet in my application where I'd like the conversation to span the whole session. I want all my entities managed for the duration of the http session. I'd use @PersistenceContext(EXTENDED), but this would only work if I merged all entity references that I got from other

[jboss-user] [JBoss Seam] - Re: When to use @PersistenceContext vrs @In EntityManager (S

2008-02-07 Thread reind
Sorry, I meant, ScopeType.SESSION instead of STATEFUL @Name | @Scope(SESSION) | @Stateful | public class FooImpl implenents Foo { Also, I understand that the SMPC is conversation scoped, but then what should I use in a Session scoped Session bean where there is no natural conversation

[jboss-user] [JBoss Seam] - Re: [Beginner]SLSB in seam

2008-02-07 Thread reind
Do you have a @Local or @Remote annotated interface with int getValue(); in it? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4127618#4127618 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4127618

[jboss-user] [JBoss Seam] - Re: NPE with migration to Seam 2.0.1- JBoss 4.2.2

2008-02-07 Thread reind
Make sure you have the following in components.xml component name=org.jboss.seam.ui.EntityConverter | property name=entityManager#{entityManager}/property | /component Incidentally, I think this component should have a lowerCamelCase name (entityConverter rather than EntityConverter) as

[jboss-user] [JBoss Seam] - Jboss 4.2.0 to 4.2.2 causes LazyInitializationExceptions

2008-02-07 Thread reind
I just recently moved my project to JBoss 4.2.2 from 4.2.0. I've noticed many LIEs where there weren't any before. I could not isolate the cause. I've moved the project back to JBoss 4.2.0 and the LIEs no longer occur. Anyone have any ideas / suggestions? | 22:02:27,095 ERROR

[jboss-user] [JBoss Seam] - Re: When to use @PersistenceContext vrs @In EntityManager (S

2008-02-07 Thread reind
I have a SFSB that is invoked in multiple requests without a clear Begin or End. It uses a SLSB to get a reference to an entity. Here's an example from my project (note this worked in 1.2.1): Foo is session scoped, so I expect its instance variables to stay around and managed. When I invoke

[jboss-user] [JBoss Seam] - When to use @PersistenceContext vrs @In EntityManager (SMPC)

2008-02-06 Thread reind
I've been experiencing some problems since switching to seam 2 with anonymous wrote : org.hibernate.LazyInitializationException: could not initialize proxy - no Session Is my understanding correct: One should use a SMPC in Seam components that are *not* session beans. @In EntityManager

[jboss-user] [JBoss Seam] - Re: When to use @PersistenceContext vrs @In EntityManager (S

2008-02-06 Thread reind
I've also noticed that if I find an entity using a EJB PersistenceContext EM, then I get LazyInitializationExceptions when trying to fetch a property of that entity in another bean that uses the SMPC EM. The only way I've found around this is to re-fetch the entity using the current EM. This

[jboss-user] [JBoss Seam] - Re: Only 1 messages.properties files loaded in 2 WARs

2008-02-04 Thread reind
pete: I've used the jboss-app.xml from the Registration example. I've since merged all messages into 1 properties file, which works for my project, but I've looked into it further in the hopes that it'll be of some use. I've created a JIRA bug and sample application: example app A: jboss-app

[jboss-user] [JBoss Seam] - Re: Only 1 messages.properties files loaded in 2 WARs

2008-02-04 Thread reind
JIRA ref: http://jira.jboss.org/jira/browse/JBSEAM-2579 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4126305#4126305 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4126305 ___

[jboss-user] [JBoss Seam] - Re: Only 1 messages.properties files loaded in 2 WARs

2008-01-31 Thread reind
In case this helps someone else... If I remove jboss-app.xml from app.ear/META-INF/ then the messages.properties file in each WAR is loaded for the appropriate context. With jboss-app.xml included, only one of the messages.properties files is loaded, the others are ignored. I'm not certain

[jboss-user] [JBoss Seam] - Only 1 messages.properties files loaded in 2 WARs

2008-01-30 Thread reind
I have an EAR that contains 2 WARs. I have different messages.properties for each WAR. I've not been able to get them both to work. The message bundle first accessed seems to apply to both WARs. In other words, if I go to localhost:8080/a/ then the messages from

[jboss-user] [JBoss Seam] - Re: Error: SessionBeanInterceptor.postConstruct

2008-01-29 Thread reind
Pete, That was it, we were using another 3rd party jar that I didnt mention that, for some reason, had it's own javax.interc eptor.InvocationContext.class that was getting loaded first. Works now. Thanks so much for your help. View the original post :

[jboss-user] [JBoss Seam] - Re: Ear with multiple web modules - problem with components.

2008-01-29 Thread reind
Took a while but I found a solution (or, rather, the cause) of this issue. I removed he MyFacesExtensionsFilter from every web.xml file and now Authentication works as expected: remove from web.xml filter | filter-nameMyFacesExtensionsFilter/filter-name | filter-class |

[jboss-user] [JBoss Seam] - Re: Component scope w/ multiple Wars - Effect on SeamLoginMo

2008-01-29 Thread reind
mrobinson28, Removing the MyFacesExtensionsFilter from web.xml worked for me. Give that a shot. http://www.jboss.com/index.html?module=bbop=viewtopicp=4124606#4124606 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4124607#4124607 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Error: SessionBeanInterceptor.postConstruct

2008-01-29 Thread reind
Hi Pete, I'm very grateful for your reply. I've significantly paired down the jars that I'm packaging: | asm-2.2.jar | asm-attrs-1.5.3.jar | commons-beanutils-1.7.0.jar | commons-digester-1.8.jar | commons-el-1.0.jar | commons-fileupload-1.0.jar | commons-lang-2.1.jar |

[jboss-user] [JBoss Seam] - Packaging EAR with multiple WARs

2008-01-28 Thread reind
How should EARs with multiple WARs be packaged? How'bout if they share the same JAR? my-application.ear/ | jboss-seam.jar | lib/ | jboss-el.jar | META-INF/ | MANIFEST.MF | application.xml | | a.war/ | META-INF/ |

[jboss-user] [JBoss Seam] - Error: SessionBeanInterceptor.postConstruct

2008-01-28 Thread reind
After adding a jboss-app.xml file to my ear/META-INF/ dir I've started seeing the following error when starting jboss 4.2.2: anonymous wrote : java.lang.RuntimeException: @javax.annotation.PostConstruct annotated method has the wrong signature - public void

[jboss-user] [JBoss Seam] - Re: Ear with multiple web modules - problem with components.

2008-01-22 Thread reind
Pete, Thanks for the reply. I'm creating a test app now, and will submit it to JIRA. Is there anything you suggest I try, in order to isolate the issue? I've only noticed this behavior because the following stopped working: security:identity authenticate-method=#{authenticator.authenticate} /

[jboss-user] [JBoss Seam] - Re: Ear with multiple web modules - problem with components.

2008-01-22 Thread reind
Ok, it's starting to make more sense (though the behavior has changed since since moving to seam 2 from 1.2) I have several components.xml files, each of which configure the Identity authenticate-method to use a different auth component method: a.war: security:identity

[jboss-user] [JBoss Seam] - Re: Ear with multiple web modules - problem with components.

2008-01-22 Thread reind
It looks like seam needs to be loaded multiple times - once for each web module - to configure the built in components differently. I had mostly the same structure using seam 1.2 and this worked, so I'm not sure what's changed. If I only have one module then it correctly invokes the

[jboss-user] [JBoss Seam] - Re: Component scope w/ multiple Wars - Effect on SeamLoginMo

2008-01-22 Thread reind
mrobinson28, Have you found a solution to this issue? I've run into the same thing: http://www.jboss.com/index.html?module=bbop=viewtopict=128164 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4122333#4122333 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Ear with multiple web modules - problem with components.

2008-01-22 Thread reind
I've filed a JIRA issue: http://jira.jboss.org/jira/browse/JBSEAM-2523 From what I've found it looks like the Identity component is not scopped to the appropriate WAR. If you have an EAR with multiple WARs it's not clear which Identy component (which components.xml configuration) will apply.

[jboss-user] [JBoss Seam] - Ear with multiple web modules - problem with components.xml

2008-01-21 Thread reind
I'm in the process of migrating from seam 1.2 to 2.0.1CR1 and I've run into a problem. My application is packaged as an ear, with multiple web modules (each with their own components.xml, pages.xml, etc). The java classes used by all web modules are packaged in a single jar. |

[jboss-user] [JBoss Seam] - Re: Ear with multiple web modules - problem with components.

2008-01-21 Thread reind
Ugly workaround: Everything works as expected if I: 1) start Jboss as normal 2) undeploy my ear (move it to a temp dir) 3) redeploy it (move it back into the deploy dir) Note. for this to work I must also package those extra dummy jars (they only have 1 file - seam.properties). But, if I just

[jboss-user] [JBoss Seam] - Re: Ajax, conversation and multiple requests..

2007-12-04 Thread reind
i had this exact same problem. You can somewhat improve things by adding a delays or queues as you've done but it is not a good solution as the problem can still occur - just less frequently, or under more rare circumstances. This can also occur if a user clicks on an a4j:commandButton too

[jboss-user] [JBoss Seam] - Re: Seam in clustered environment.

2007-11-27 Thread reind
Don't have any information for you, but I'm also going to be thinking of clustering shortly and would appreciate any insight. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4108206#4108206 Reply to the post :

[jboss-user] [JBoss Seam] - Changing message bundles without redeploying.

2007-08-23 Thread reind
What would is a good approach for changing message bundles at runtime? I'd like something similar to the locale selector, but with the ability to switch to messages defined in arbitrarily named '.properties' files. So, I'd like to switch to a localized version of 'foo' or 'bar' without

[jboss-user] [JBoss Seam] - Seam without JSF + Servlet

2007-08-13 Thread reind
My application is deployed as an EAR with multiple webapps. One of the webapps has a single servlet within which I'd like to use a Seam component. Seam works on the other JSF webapp in the same ear, but I can't get it to work on the servlet. I've added a context-filter for the same url-pattern

[jboss-user] [JBoss Seam] - Re: Seam without JSF + Servlet

2007-08-13 Thread reind
Needed the Seam Filter in web.xml... | filter | filter-nameSeam Filter/filter-name | filter-classorg.jboss.seam.web.SeamFilter/filter-class | /filter | filter-mapping | filter-nameSeam Filter/filter-name |

[jboss-user] [JBoss Seam] - Message bundle in an EAR is not working

2007-07-31 Thread reind
I have an ear packaged as: ear/ | a.war | /WEB-INF/faces-config.xml | a.jar | /com/example/a/Messages.properties | b.war | /WEB-INF/faces-config.xml | b.jar | /com/example/b/Messages.properties faces-config.xml in a.war has:

[jboss-user] [JBoss Seam] - Re: Message bundle in an EAR is not working

2007-07-31 Thread reind
That worked, thanks very much atao! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4069438#4069438 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069438 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Search Engines and Seam

2007-06-14 Thread reind
trickyvail wrote : Because the jsf components render xhtml elements I think maybe the engines are unhappy with the use of the .html extension (although MSN works fine). That's probably not a concern. Just use .html or .xhtml extension as you like and specify the correct DOCTYPE. View the

[jboss-user] [JBoss Seam] - Re: Best Practise: Form / Confirm / Save | Getting current p

2007-05-15 Thread reind
You can get the view id with: @In | FacesContext facesContext; | | ... | | facesContext.getViewRoot().getViewId() | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045891#4045891 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Conversation processing another request error when using

2007-05-14 Thread reind
This problem does not happen on non-conversational pages. I'm hoping there's a better solution than trying to set the requestDelay high enough to avoid issues. The problem with that approach is that the proper value for requestDelay depends on the responsiveness of the server (which depends

[jboss-user] [JBoss Seam] - Re: Conversation processing another request error when using

2007-05-14 Thread reind
cwash wrote : ... would be to be able to configure the conversation to abandon a currently processing request if a new one comes in. That's about what I was thinking. I haven't thought through the ramifications though and I'm not sure how doable it is. Another alternative would be for A4J

[jboss-user] [JBoss Seam] - Re: Conversation processing another request error when using

2007-05-14 Thread reind
cwash wrote : That sounds good to me, but will the a4j guys go for it? Let's hope so: https://ajax4jsf.dev.java.net/issues/show_bug.cgi?id=42 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045597#4045597 Reply to the post :

[jboss-user] [JBoss Seam] - Distinguishing between Error and Info FacesMessages

2007-05-09 Thread reind
I'd like to display Info and Error messages using FacesMessages. Perhaps using FacesMessage.SEVERITY_INFO and FacesMessage.SEVERITY_ERROR Is there anyway that I can display global FacesMessages that are INFO in one area and ERROR in another? Or at least set the styleClass based on which is the

[jboss-user] [JBoss Seam] - Re: Distinguishing between Error and Info FacesMessages

2007-05-09 Thread reind
Thanks, I should have RTFM first. Appreciate the tip. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044520#4044520 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044520 ___

[jboss-user] [JBoss Seam] - Conversation processing another request error when using A4J

2007-04-27 Thread reind
I have a simple select country selectOneMenu. I'm using a4j:support to re-render a province/state/region field based on my selection of country. I'm experiencing conversation processing another request errors if I change my country selection too quickly. Here's my view code: h:selectOneMenu

[jboss-user] [JBoss Seam] - Re: Conversation processing another request error when using

2007-04-27 Thread reind
petemuir wrote : Do the eventsQueue and requestDelay attributes not help? From what I've seen they should both be set by default... I've not set either of these myself. My understanding, as well, was that they were set by default. anonymous wrote : requestDelay Delay ( in ms. ) for send ajax