Download presentation
Presentation is loading. Please wait.
Published byDamaris Brines Modified over 10 years ago
1
Wicket in 60 Minutes Wicket 4 Newbs
2
Even Voorstellen...
3
AgendaAgenda Waarom Wicket? Basis Ingredienten Wicket Applicatie Demo: Hello World! met Maven en Wicket Demo: Wicked Bookstore Enkele Wicket Componenten
4
Waarom Wicket? (Hadden nog niet genoeg web frameworks?)
5
Jawel... EchoCocoonMaverick StrutsTurbineWebWork GWTTapestryClick SmileJappleSpring MVC SOFIAJatoTeaServlet JFormularStripesMelati ExpressoJPublish...
6
Maar Wicket... Is Component Oriented Houd HTML en Java Strikt Gescheiden Heeft Geen XML configuratie nodig!
7
Wicket is Component Oriented Composite Pattern
8
Wicket is Component Oriented Voorbeeld: Form Components
9
Java en HTML Gescheiden HTML mark-up: famous quote here Java code: String quoteNeilArmstrong= ”This is one small step for a man, “ + “one giant leap for mankind."; add(new Label("quoteOfDay", quoteNeilArmstrong));
10
Geen XML Configuraties Meer! <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/dtds/struts-config_1_2.dtd"> (...) <action path="/login" type="test.struts.LoginAction" > (...)
11
Wat gaat er in de soep? Wicket Basis Ingredienten
12
Wicket dependency in pom.xml Wicket Servlet Filter in web.xml WebApplication class WebPage class HTML template ( + CSS )
13
Dependencies in pom.xml org.apache.wicket wicket ${wicket.version} Wicket ‘core’ library: org.apache.wicket wicket-spring ${wicket.version} Wicket Spring integratie library:
14
Servlet Filter in web.xml wicket.helloworld org.apache.wicket.protocol.http.WicketFilter applicationClassName nl.iprofs.MyWicketApplication wicket.helloworld /*
15
WebApplication Class package nl.iprofs; import org.apache.wicket.protocol.http.WebApplication; public class WicketApplication extends WebApplication { public MyWicketApplication() {} public Class getHomePage() { return HomePage.class; }
16
WebPage Class package nl.iprofs; import org.apache.wicket.PageParameters; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.WebPage; public class HomePage extends WebPage { public HomePage(final PageParameters parameters) { String neilArmstrongQuote = "This is one small step for a man, " + "one giant leap for mankind"; add( new Label("quoteOfDay", neilArmstrongQuote)); }
17
HTML Template Quote of the Day Quote of the Day famous quote here
18
Demo Hello Wicked World
19
Wicket Componenten
20
Wicket Component Structuur
21
Link Component HTML mark-up: Home Java code: Link homeLink = new BookmarkablePageLink("homeLink", HomePage.class);
22
ListView Component HTML mark-up: Boek A Java code: add(new ListView("categoryRow", categorieen) { @Override protected void populateItem(ListItem item) { Category category = (Category) item.getModelObject(); Link catLink = new BookmarkablePageLink( "catLink", HomePage.class); catLink.add(new Label("catLabel", category.getName())); item.add(catLink); } });
23
Demo WickedBookstore
24
Vragen... en antwoorden
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.