[jboss-cvs] jboss-seam/examples/glassfish/src/org/jboss/seam/example/booking ...
Michael Yuan
michael.yuan at jboss.com
Mon Feb 26 13:32:33 EST 2007
User: myuan
Date: 07/02/26 13:32:33
Modified: examples/glassfish/src/org/jboss/seam/example/booking
AuthenticatorAction.java HotelBookingAction.java
Log:
Glassfish example that really works this time. :)
Revision Changes Path
1.3 +1 -1 jboss-seam/examples/glassfish/src/org/jboss/seam/example/booking/AuthenticatorAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AuthenticatorAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/glassfish/src/org/jboss/seam/example/booking/AuthenticatorAction.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- AuthenticatorAction.java 26 Feb 2007 09:43:28 -0000 1.2
+++ AuthenticatorAction.java 26 Feb 2007 18:32:33 -0000 1.3
@@ -22,7 +22,7 @@
public boolean authenticate()
{
- List results = em.createQuery("select u from User u where u.username=#{org.jboss.seam.security.identity.username} and u.password=#{org.jboss.seam.security.identity.password}")
+ List results = em.createQuery("select u from User u where u.username=#{identity.username} and u.password=#{identity.password}")
.getResultList();
if ( results.size()==0 )
1.7 +2 -2 jboss-seam/examples/glassfish/src/org/jboss/seam/example/booking/HotelBookingAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: HotelBookingAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/glassfish/src/org/jboss/seam/example/booking/HotelBookingAction.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- HotelBookingAction.java 26 Feb 2007 09:43:28 -0000 1.6
+++ HotelBookingAction.java 26 Feb 2007 18:32:33 -0000 1.7
@@ -1,4 +1,4 @@
-//$Id: HotelBookingAction.java,v 1.6 2007/02/26 09:43:28 myuan Exp $
+//$Id: HotelBookingAction.java,v 1.7 2007/02/26 18:32:33 myuan Exp $
package org.jboss.seam.example.booking;
import static javax.persistence.PersistenceContextType.EXTENDED;
@@ -42,7 +42,7 @@
@Out(required=false)
private Booking booking;
- @Out(required=false)
+ @Out(required=false, scope=SESSION)
List<Booking> bookings;
@In
More information about the jboss-cvs-commits
mailing list