[seam-commits] Seam SVN: r8189 - trunk/examples/wicket/src/web/org/jboss/seam/example/wicket.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed May 14 09:52:15 EDT 2008
Author: pete.muir at jboss.org
Date: 2008-05-14 09:52:15 -0400 (Wed, 14 May 2008)
New Revision: 8189
Modified:
trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Confirm.java
trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Hotel.java
Log:
Can now just use Link
Modified: trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Confirm.java
===================================================================
--- trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Confirm.java 2008-05-14 13:52:07 UTC (rev 8188)
+++ trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Confirm.java 2008-05-14 13:52:15 UTC (rev 8189)
@@ -8,12 +8,12 @@
import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.link.Link;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.security.Restrict;
import org.jboss.seam.core.Conversation;
import org.jboss.seam.example.wicket.action.Booking;
import org.jboss.seam.example.wicket.action.HotelBooking;
-import org.jboss.seam.wicket.SeamLink;
@Restrict
public class Confirm extends WebPage
@@ -34,7 +34,7 @@
body.add(new OutputBorder("checkinDateBorder", "Check in", new Label("checkinDate", new SimpleDateFormat().format(booking.getCheckinDate()))));
body.add(new OutputBorder("checkoutDateBorder", "Check out", new Label("checkoutDate", new SimpleDateFormat().format(booking.getCheckoutDate()))));
body.add(new OutputBorder("creditCardNumberBorder", "Credit Card #", new Label("creditCardNumber", booking.getCreditCard())));
- body.add(new SeamLink("revise")
+ body.add(new Link("revise")
{
@Override
public void onClick()
@@ -42,7 +42,7 @@
setResponsePage(Book.class);
}
});
- body.add(new SeamLink("confirm")
+ body.add(new Link("confirm")
{
@Override
public void onClick()
@@ -51,7 +51,7 @@
setResponsePage(Main.class);
}
});
- body.add(new SeamLink("cancel")
+ body.add(new Link("cancel")
{
@Override
public void onClick()
Modified: trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Hotel.java
===================================================================
--- trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Hotel.java 2008-05-14 13:52:07 UTC (rev 8188)
+++ trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Hotel.java 2008-05-14 13:52:15 UTC (rev 8189)
@@ -3,10 +3,10 @@
import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.markup.html.link.Link;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.security.Restrict;
import org.jboss.seam.example.wicket.action.HotelBooking;
-import org.jboss.seam.wicket.SeamLink;
@Restrict
public class Hotel extends WebPage
@@ -21,7 +21,7 @@
{
super(parameters);
Template body = new Template("body");
- body.add(new SeamLink("bookHotel")
+ body.add(new Link("bookHotel")
{
@Override
public void onClick()
@@ -30,7 +30,7 @@
setResponsePage(Book.class);
}
});
- body.add(new SeamLink("cancel")
+ body.add(new Link("cancel")
{
@Override
public void onClick()
More information about the seam-commits
mailing list