[jboss-user] [JBoss Seam] - Re: Problem with SFSB passivation

2006-08-02 Thread c_eric_ray
Is this problem similar or the same as when the session times out and the @Destroy method is invoked. Then when a user access that page after the time out an exception is thrown and the application is unrecoverable. In doing some testing I discoverd that if when the user is logged in and the

[jboss-user] [JBoss Seam] - Cannot get @In to work

2006-08-01 Thread c_eric_ray
code snippet... | @In @Out(scope=ScopeType.SESSION) | private boolean delete = false; | jsf snippet... | h:column | f:facet name=header | h:outputText value=#{pkgHeaders.delete} / | /f:facet | h:selectBooleanCheckbox value=#{delete} /

[jboss-user] [JBoss Seam] - Re: Cannot get @In to work

2006-08-01 Thread c_eric_ray
Tried that already and got the following exception... | javax.ejb.EJBException: java.lang.IllegalArgumentException: could not set field value: packages.delete | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69) | at

[jboss-user] [JBoss Seam] - Re: Cannot get @In to work

2006-08-01 Thread c_eric_ray
No luck resolving the exception when using @In(required=false) Any ideas on what is wrong. Thanks. Eric Ray View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3962272#3962272 Reply to the post :

[jboss-user] [JBoss Seam] - Help injecting the SessionContext

2006-08-01 Thread c_eric_ray
I need the SessionContext an this isn't working @In(required=false,value=sessionContext) private SessionContext sessionContext; I get the following error. In fact, I get this error everytime I use @In(required=false) regardless of what property it's annotating. | javax.ejb.EJBException:

[jboss-user] [JBoss Seam] - Re: problem with Starting conversations with GET requests

2006-07-31 Thread c_eric_ray
try | @In(create=true) @Out(scope=ScopeType.SESSION) | private Reguser reguser; | the create=true will instantiate Reguser when seam trys to inject it the @Out annotation will allow reguser to live across multiple requests View the original post :

[jboss-user] [JBoss Seam] - Re: Problem testing seam using EntityManager

2006-07-31 Thread c_eric_ray
has anyone experienced this problem? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3961955#3961955 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3961955 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - Interesting problem with seam and DataModel and hibernate

2006-07-31 Thread c_eric_ray
Here's the session bean snippet... | @Out(scope=ScopeType.SESSION) | private DataModel openPackages = new ListDataModel(); | | private String opQuery = from PackageEntity p, OfficeEntity o where p.office.id = o.id and p.code = 'OPN' and o.id = 1; | | @Create |

[jboss-user] [JBoss Seam] - Re: Interesting problem with seam and DataModel and hibernat

2006-07-31 Thread c_eric_ray
Solved my own problem. I apologize if I've wasted your time. needed to modify my query from | from PackageEntity p, OfficeEntity o where p.office.id = o.id and p.code = 'OPN' and o.id = 1 | to this | select p from PackageEntity p, OfficeEntity o where p.office.id = o.id and p.code =

[jboss-user] [JBoss Seam] - Re: org.hibernate.LazyInitializationException: Seam or Hiber

2006-07-26 Thread c_eric_ray
Okay, I figured out where to annotate for EAGER. However, I still need to better understand lazy initialization. Advice and suggestions greatly appreciated. Thanks. Eric Ray View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3961072#3961072 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Problem starting converstaion and setting state from HTT

2006-07-21 Thread c_eric_ray
I was using a url fragment and that is incorrect. You should use the filename of the view that contains the component in question. However, petemuir suggested an even cleaner solution (IMO) because it's contained in the code and alleviates the need for the xml file. Here's what I did instead

[jboss-user] [JBoss Seam] - can i do this...

2006-07-21 Thread c_eric_ray
I know I can use @DataModel but I want try the following and it seems logical to me but it doesn't work. | @Name(package) | class ... { | @In(create=true) @Out(scope=ScopeType.CONVERSATION) | private ListPackageEntity packages; | } | then in my web page do this... |

[jboss-user] [JBoss Seam] - Re: can i do this...

2006-07-21 Thread c_eric_ray
The docs say if you annotate the property you don't need getters and setters. ...from the manual... anonymous wrote : The next two annotations control bijection. These attributes occur on component instance variables or property accessor methods. | | @In I'll add G/S and see if that

[jboss-user] [JBoss Seam] - Re: can i do this...

2006-07-21 Thread c_eric_ray
btw, i've already used the @DataModel and @Factory annotations and it all works great. i'm just exploring here to make sure i understand what it is i'm doing thanks. eric ray View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3959977#3959977 Reply to the post :

[jboss-user] [JBoss Seam] - Injecting UserPrincipal

2006-07-21 Thread c_eric_ray
I'm trying to inject the UserPrincipal object and I get an exception instead. I've tried everything I know and I can't get this to work. Is this legal? here's the code | @In | public UserPrincipal userPrincipal; | | public UserPrincipal getUserPrincipal() { | return

[jboss-user] [JBoss Seam] - Re: can i do this...

2006-07-21 Thread c_eric_ray
works just like you said. a few thoughts... so i can outject a property and reference the property directory. i thought i had to name the component with @Name and then outject the property. then i would reference as follows - component.property. however, by outjecting a property, i bypass

[jboss-user] [JBoss Seam] - Re: I have come to the conclusion that Page Actions do not w

2006-07-20 Thread c_eric_ray
Yes, I agree. It works. It wasn't clear to me that the view-id property was the actual name of the file. I'm using facelets and was replacing the file extension with .jsf. I needed to leave it as .xhtml. Once I figured that out, it worked just fine. I though I needed to use the DEFAULT_SUFFIX

[jboss-user] [JBoss Seam] - Problem starting converstaion and setting state from HTTP GE

2006-07-19 Thread c_eric_ray
I have a simple page using the standard login form using j_security_check. JBoss is configured to authenticate against an LDAP server. Once authenticated the welcome-page is rendered and it simply does this... meta http-equiv=Refresh content=0; URL=extract/index.jsf When index.jsf is rendered I

[jboss-user] [JBoss Seam] - I have come to the conclusion that Page Actions do not work

2006-07-19 Thread c_eric_ray
anyone else with the same experience...and how did you work around this to get the behavior that page actions are supposed to give. Eric Ray View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3959398#3959398 Reply to the post :

[jboss-user] [Security JAAS/JBoss] - Credential caching question

2006-07-14 Thread c_eric_ray
Hi guys, I'm have a problem that I'm unable to solve regarding credentials caching. I have an ldap user that can authenticate with ldap but is not authorized to use the application. I want to let the user know that they have authenticated but failed authorization and to trying logging in with

<    1   2