[seam-commits] Seam SVN: r8480 - trunk/examples/wicket/src/web/org/jboss/seam/example/wicket.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Jul 17 14:49:21 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-07-17 14:49:20 -0400 (Thu, 17 Jul 2008)
New Revision: 8480

Modified:
   trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Main.java
Log:
Ajax for paging

Modified: trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Main.java
===================================================================
--- trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Main.java	2008-07-17 18:29:30 UTC (rev 8479)
+++ trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Main.java	2008-07-17 18:49:20 UTC (rev 8480)
@@ -23,6 +23,7 @@
 import org.apache.wicket.Component;
 import org.apache.wicket.PageParameters;
 import org.apache.wicket.ajax.AjaxRequestTarget;
+import org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigator;
 import org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton;
 import org.apache.wicket.markup.html.WebMarkupContainer;
 import org.apache.wicket.markup.html.WebPage;
@@ -32,11 +33,9 @@
 import org.apache.wicket.markup.html.form.TextField;
 import org.apache.wicket.markup.html.link.BookmarkablePageLink;
 import org.apache.wicket.markup.html.link.Link;
-import org.apache.wicket.markup.html.navigation.paging.PagingNavigator;
 import org.apache.wicket.markup.html.panel.ComponentFeedbackPanel;
 import org.apache.wicket.markup.repeater.Item;
 import org.apache.wicket.markup.repeater.data.DataView;
-import org.apache.wicket.model.IModel;
 import org.apache.wicket.model.PropertyModel;
 import org.jboss.seam.annotations.In;
 import org.jboss.seam.annotations.security.Restrict;
@@ -121,13 +120,6 @@
             item.add(new Label("hotelZip", hotel.getZip()));
             item.add(new BookmarkablePageLink("viewHotel", org.jboss.seam.example.wicket.Hotel.class).setParameter("hotelId", hotel.getId()));
          }
-
-         @Override
-         public boolean isVisible()
-         {
-            return true;
-            //return Identity.instance().isLoggedIn() && hotelSearch.getHotels().size() > 0;
-         }
          
       };
       
@@ -139,7 +131,7 @@
       
       
       // Add a pager
-      hotels.add(new PagingNavigator("hotelPager", hotelDataView)
+      hotels.add(new AjaxPagingNavigator("hotelPager", hotelDataView)
       {
          @Override
          public boolean isVisible()




More information about the seam-commits mailing list