I made a three-line patch on the booking example, still a trivial change; here 
is the patch:
--- booking/src/org/jboss/seam/example/booking/HotelSearchingAction.java        
2007-06-27 08:37:23.000000000 +0200
  | +++ 
booking-broken/src/org/jboss/seam/example/booking/HotelSearchingAction.java 
2007-08-03 01:26:12.000000000 +0200
  | @@ -30,6 +30,7 @@
  |     private int page;
  | 
  |     @DataModel
  | +   public List<Hotel> getHotels(){ return hotels; }
  |     private List<Hotel> hotels;
  | 
  |     public void find()
  | diff -ur booking/src/org/jboss/seam/example/booking/HotelSearching.java 
booking-broken/src/org/jboss/seam/example/booking/HotelSearching.java
  | --- booking/src/org/jboss/seam/example/booking/HotelSearching.java      
2007-06-27 08:37:19.000000000 +0200
  | +++ booking-broken/src/org/jboss/seam/example/booking/HotelSearching.java   
    2007-08-03 01:28:01.000000000 +0200
  | @@ -1,7 +1,8 @@
  |  //$Id: HotelSearching.java,v 1.12 2007/06/27 00:06:49 gavin Exp $
  |  package org.jboss.seam.example.booking;
  | 
  | -import javax.ejb.Local;
  | +import javax.ejb.Local;
  | +import java.util.List;
  | 
  |  @Local
  |  public interface HotelSearching
  | @@ -19,5 +20,7 @@
  |     public boolean isNextPageAvailable();
  | 
  |     public void destroy();
  | +
  | +   public List<Hotel> getHotels();
  | 
  |  }
(I just moved the annotation from the field to a new getter with the same name, 
and declared the getter in the interface)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070347
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to