**Apache Wicket** veya kısaca **Wicket** Java programlama dili için bileşen tabanlı hafif bir web uygulama kütüphanesidir. Jonathan Locke tarafından geliştirilmeye başlanmış ve ilk sürümü 2005 yılında çıkmıştır.

Örnek
-----

4 dosya ile yapılan bir Merhaba Dünya uygulaması

HelloWorld.html
XHTML şablonu

```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
 xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd"
 xml:lang="en" lang="en">

<body>
 <span wicket:id="message" id="message">Message goes here</span>
</body>
</html>

```

HelloWorld.java
Sayfa bileşeni şablona bağlanacaktır.

```
package org.wikipedia.wicket;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;

public class HelloWorld extends WebPage {
 /\*\*
 \* Constructor
 \*/
 public HelloWorld() {
 add(new Label("message", "Hello World!"));
 }
}

```

HelloWorldApplication.java
Ana uygulama sınıfı

```
package org.wikipedia.wicket;

import org.apache.wicket.protocol.http.WebApplication;

public class HelloWorldApplication extends WebApplication {
 /\*\*
 \* Constructor.
 \*/
 public HelloWorldApplication() {
 }

 /\*\*
 \* @see org.apache.wicket.Application#getHomePage()
 \*/
 public Class getHomePage() {
 return HelloWorld.class;
 }
}

```

web.xml
The servlet uygulama tanımlaması

```
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xmlns="http://java.sun.com/xml/ns/javaee" 
 xmlns:web="http://java.sun.com/xml/ns/javaee/web-app\_2\_5.xsd" 
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
 http://java.sun.com/xml/ns/javaee/web-app\_2\_5.xsd" 
 id="WebApp\_ID" version="2.5">
 <display-name>Wicket Example</display-name>
 <filter>
 <filter-name>HelloWorldApplication</filter-name>
 <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
 <init-param>
 <param-name>applicationClassName</param-name>
 <param-value>org.wikipedia.wicket.HelloWorldApplication</param-value>
 </init-param>
 </filter>
 <filter-mapping>
 <filter-name>HelloWorldApplication</filter-name>
 <url-pattern>/*</url-pattern>
 </filter-mapping>
</web-app>

```

Dış bağlantılar
---------------

* "Resmi site". 8 Ağustos 2007 tarihinde kaynağından arşivlendi.
* "Wicket Öğretici Belgesi" (PDF) (İngilizce). 25 Temmuz 2011 tarihinde kaynağından (PDF) arşivlendi.

| * g
* t
* d
Apache Yazılım Vakfı |
| --- |
| Üst düzey projeler | 
* Accumulo
* ActiveMQ
* Airflow
* Ambari
* Ant
* Aries
* Apache HTTP Server
* APR
* Avro
* Axis
* Axis2
* Beam
* Bloodhound
* Brooklyn
* Buildr
* Calcite
* Camel
* CarbonData
* Cassandra
* Cayenne
* Chemistry
* CloudStack
* Cocoon
* Cordova
* CouchDB
* cTAKES
* CXF
* Derby
* Directory
* Drill
* Druid
* Empire-db
* Felix
* Flex
* Flink
* Flume
* Geronimo
* Giraph
* Gump
* Hadoop
* HBase
* Helix
* Hive
* Impala
* Jackrabbit
* James
* Jena
* Jini
* JMeter
* Kafka
* Karaf
* Kudu
* Kylin
* Lucene
* Mahout
* Marmotta
* Maven
* MINA
* mod\_perl
* MyFaces
* NetBeans
* Nutch
* OFBiz
* Oozie
* OpenEJB
* OpenJPA
* OpenNLP
* OрenOffice
* ORC
* PDFBox
* Parquet
* Phoenix
* POI
* Pig
* Pivot
* Qpid
* Roller
* RocketMQ
* Samza
* ServiceMix
* Shiro
* SINGA
* Sling
* Solr
* Spark
* Storm
* SpamAssassin
* Sqoop
* Struts 1
* Struts 2
* Subversion
* Superset
* SystemML
* Tapestry
* Thrift
* Tika
* Tomcat
* Trafodion
* Traffic Server
* UIMA
* Velocity
* Wicket
* Xalan
* Xerces
* XMLBeans
* Yetus
* ZooKeeper

 |
| Ortak projeler | 
* BCEL
* BSF
* Daemon
* Jelly
* Logging

 |
| Kuluçka projeler | 
* Iceberg
* MXNet
* NuttX
* Taverna
* XAP

 |
| Diğer projeler | 
* Batik
* Chainsaw
* FOP
* Ivy
* Log4j

 |
| Emekli projeler | 
* Abdera
* Apex
* AxKit
* Beehive
* Bluesky
* iBATIS
* C++ Standard Library
* Cactus
* Click
* Continuum
* Deltacloud
* Etch
* Excalibur
* Forrest
* Hama
* Harmony
* HiveMind
* Jakarta
* Lenya
* ODE
* Shale
* Shindig
* Slide
* Stanbol
* Tuscany
* Wave
* Wink

 |
| Lisanslar | 
* Apache Lisansı

 |

|  |  |
| --- | --- |
| Otorite kontrolü Bunu Vikiveri'de düzenleyin | 
* GND: 7674275-1

 |