Gavin - I appreciate your quick responses - thanks.

Why not have Seam throw an exception on startup if this file is missing then?  
If I must always have it, and it's not there, then isn't this somewhat of a 
fatal condition for startup?

Also, I added the seam.properties file - now, on initial visit to my /main.seam 
page, I can see in the console that a new User object is being created, 
however, on submit, the SimpleLogin action I created is not getting created and 
invoked.  The SimpleLogin class looks like this:


  | @Name(value = "simpleLogin")
  | @Scope(ScopeType.STATELESS)
  | public class SimpleLogin {
  | 
  |     private final Log log = LogFactory.getLog(SimpleLogin.class);
  | 
  |     @In(required = true) @Out
  |     private User user;
  | 
  |     @In(create=true)
  |     private Session appssoDB;
  | 
  |     @In(create=true)
  |     private FacesMessages facesMessages;
  | 
  |     public SimpleLogin() { log.info("new SimpleLogin()"); }
  | 
  |     public String login() {
  |         log.info("login() - (in) user = "+user);
  |         final User u = (User)appssoDB.createQuery("from User where 
aNumber=:aNumber")
  |             .setParameter("aNumber",user.getaNumber())
  |             .uniqueResult();
  |         log.info("login() - (out) user = "+u+" (if null, user does not 
exist)");
  |         if (user == null) {
  |             facesMessages.add("Invalid A Number");
  |             return "login";
  |         } else {
  |             return "loggedIn";
  |         }
  |     }
  | }
  | 
  | 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938989#3938989

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938989


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to