[jboss-user] [JBoss Seam] - How to get client IP when user logs in

2008-01-10 Thread jgreene
Sorry if this isn't the right forum for this question, but I'm hoping Seam provides a way to do this. I've seen the form entry pointed to by this link: http://www.jboss.org/?module=bbop=viewtopict=102272 and have tried the proposed solution a couple ways, but still cannot see how to get the

[jboss-user] [JBoss Seam] - Re: How to get client IP when user logs in

2008-01-10 Thread jgreene
Sorry, everyone - I found what looks to be a better forum post that may give me what I want. In case you're having the same problem... http://www.jboss.com/index.html?module=bbop=viewtopicp=3998636#3998636 - Joe View the original post :

[jboss-user] [JBoss Seam] - How to get http session id

2008-01-07 Thread jgreene
This may be more of a JSF question that a Seam one, and if so, I apologize. In my past web apps, I've been able to get the http session id by asking the HttpServletRequest for it, but that was in a servlet environment that I managed. Does the Seam API allow me to easily get the http session

[jboss-user] [JBoss Seam] - Re: How to get http session id

2008-01-07 Thread jgreene
I found a solution on this forum that seems to work. Here's the code and original forum link: | FacesContext facesContext = FacesContext.getCurrentInstance(); | ExternalContext externalContext = facesContext.getExternalContext(); | HttpSession session =

[jboss-user] [JBoss Seam] - trying to use s:selectItems... with Enum

2007-12-06 Thread jgreene
Hi - I've got an enum that I want to create a drop-down for, and use the ordinal values for the value attribute in the option... tags. But the selectItems component only has label attribute, and so I can't figure out how to tell the selectItems to use the enum's ordinal values for the option

[jboss-user] [JBoss Seam] - Re: identity authenticator method runs twice

2007-11-06 Thread jgreene
Thanks Shane - I'll have to try the latest of course, but when you say there's no guarantee how many times the authenticate method will be called, yet both issues have been resolved, what does that mean for those of us who write their own login method and configure it in components.xml using

[jboss-user] [JBoss Seam] - Re: identity authenticator method runs twice

2007-11-06 Thread jgreene
Fantastic! I look forward to seeing the docs. Any idea when they'll be updated? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4102257#4102257 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102257

[jboss-user] [JBoss Seam] - Re: identity authenticator method runs twice

2007-11-05 Thread jgreene
Pete - After seeing the JIRA ticket on this, and rereading the prior posts, it occurred to me that there may have been a little confusion about the login method that I was referring to. I was referring to my own login method that is configured in components.xml to serve as the authenticator

[jboss-user] [JBoss Seam] - Re: identity authenticator method runs twice

2007-11-05 Thread jgreene
Troy - Thanks for the info - looks like several of us are having this problem. Here's a link to the JIRA ticket I mentioned: http://jira.jboss.org/jira/browse/JBSEAM-2165 also, see Shane's previous post. Looks like another, more recent, ticket has just been created. Shane - Does the

[jboss-user] [JBoss Seam] - Re: identity authenticator method runs twice

2007-11-02 Thread jgreene
Thanks, Shane. That makes sense. Is it documented anywhere else, and is it configurable? I'd like to consider using the Identity feature, but we need to track failed logins and can't allow multiple login() executions with only one user action. View the original post :

[jboss-user] [JBoss Seam] - Re: identity authenticator method runs twice

2007-11-02 Thread jgreene
Pete - My login method was executing more than once because I put the following line in my components.xml file: security:identity authenticate-method=#{loginManager.login} / Of course, at the time, I wasn't aware that the authenticate method executed more than once. I certainly trust you

[jboss-user] [JBoss Seam] - identity authenticator method runs twice

2007-11-01 Thread jgreene
My app uses Seam, JSF, oc4j, and JSPs. I'm using the Identity feature in Seam to define my login authentication method. The funny problem I'm having is that when authentication fails (due to invalid password, for example), the login method actually executes twice. If I remove the line in

[jboss-user] [JBoss Seam] - Re: identity authenticator method runs twice

2007-11-01 Thread jgreene
Shane - Thanks for the reply. Sorry I didn't find anything on the forums - guess I didn't use the right search string. Please understand that I'm in my first Seam project, so don't know all the nuances, so I have to ask - why is there no guarantee how many times the authenticate method will

[jboss-user] [JBoss Seam] - How to modify a detached entity

2007-10-11 Thread jgreene
Hi - I've read about Seam's support for an extended persistence context, and have read about Seam conversations. I've got a Lazy Initialization problem that doesn't seem to quite fit the solutions I've read about - maybe I just can't quite see it. I've got an entity object with a lazy loaded

[jboss-user] [JBoss Seam] - Seam TLD namespace not recognized in jsp

2007-09-13 Thread jgreene
Hello - I'm having to convert a few facelets to jsps (don't ask), and we want to use jsp instead of jspx. But when I change the xmlns definition at the top of the page to %@ taglib uri=http://jboss.com/products/seam/taglib; prefix=s %, eclipse says it can't find the tag library descriptor for

[jboss-user] [JBoss Seam] - Re: Seam TLD namespace not recognized in jsp

2007-09-13 Thread jgreene
Sorry, silly mistake. I didn't realize jboss-seam-ui.jar was not in the project. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4084255#4084255 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084255

[jboss-user] [JBoss Seam] - conflicting phase listeners??

2007-07-17 Thread jgreene
We're getting started on our first JSF application using Seam, so this may be a pretty basic question. The web.xml file for my project right now uses org.jboss.seam.jsf.SeamPhaseListener as the sole phase listener. However, I need to integrate an ESRI map service into the app, and the sample

[jboss-user] [JBoss Seam] - Re: conflicting phase listeners??

2007-07-17 Thread jgreene
Thanks, Gavin. I've read, though, that using multiple phase listeners can cause problems like data becoming corrupted (whatever that means) and slower response since both phase listeners are executed. Are these things really an issue? Also, if I do include both phase listeners in my xml file

[jboss-user] [JBoss Seam] - No phase id bound to current thread...(false multiple SeamPh

2007-05-14 Thread jgreene
Hello - Maybe I've missed something, but is there a definitive solution yet to the error mentioned in this thread subject? I've seen this posted before, but still no solution. I've been running a simple Seam app at work using Tomcat, and it has been running fine. I added a couple of database

[jboss-user] [JBoss Seam] - No phase id bound to current thread (make sure you ...

2007-05-10 Thread jgreene
Hello - Is anyone aware if there is a well-defined solution to this problem yet? There are a few threads on this forum, but it seems like no one knows for sure why this happens. I've got a sample app that was working at work. I brought it home, added a few database tables and a couple of

[jboss-user] [JBoss Seam] - Update database record with EntityManager

2007-05-02 Thread jgreene
I've seen several examples for persisting entity objects, and even removing them from databases, but I can't seem to find a good example of how to use the EntityManager to update a database record for an entity. For example, if I have an Account entity object called acct, and I've made a few