Render no pattern attribute for a reversed PatternValidator The HTML5Attributes behavior copied the pattern of every PatternValidator of a text component into the HTML pattern attribute, ignoring setReverse(true). A reversed validator rejects input that matches the pattern, the attribute makes the browser reject input that does not, so no non-empty value passed both: the browser blocked the submit of a value the server would accept, and the server rejected the rest. A reversed validator now renders no pattern attribute, and its input is checked on the server only. An HTML pattern cannot reliably express "must not match" for an arbitrary Java pattern. PatternValidator gets a public isReverse() getter for the renderer, a method added to the API with no change to existing members. An application that adds HTML5Attributes to a field with a reversed validator sees the field submit again, with the server reporting matching input as before. Without HTML5Attributes, or for a validator that is not reversed, nothing changes. GitHub issue #1886
This branch holds the Wicket 10 long-term support line. It receives bug fixes and security fixes until the next LTS release, Wicket 14. New features are developed on master and released in the quarterly major releases; fixes land on master first and are cherry-picked here, so pull requests go to master unless the problem exists only in 10.x. SECURITY.md says which lines receive security fixes.
Apache Wicket is an open source, java, component based, web application framework. With proper mark-up/logic separation, a POJO data model, and a refreshing lack of XML, Apache Wicket makes developing web-apps simple and enjoyable again. Swap the boilerplate, complex debugging and brittle code for powerful, reusable components written with plain Java and HTML.
Apache Wicket can be found at https://wicket.apache.org and is licensed under the Apache Software Foundation license, version 2.0.
The Wicket project has several resources and projects where you can learn from, and get started quickly:
The Wicket user guide - https://wicket.apache.org/docs/:
tutorials, how-to guides and explanations of the framework, with many real-world examples. The guide for this line is also available as a single page: https://nightlies.apache.org/wicket/guide/10.x/single.html
The Wicket JavaDoc:
the API docs of this line are published at https://nightlies.apache.org/wicket/apidocs/10.x/
Wicket Examples:
shows all components in short usage examples, also available live on: https://examples9x.wicket.apache.org
Wicket Quickstart - https://wicket.apache.org/start/quickstart.html:
provides a skeleton project for use in NetBeans, Eclipse, IntelliJ IDEA and other major IDE‘s, without having to configure anything yourself. Just copy’n'paste the generated command line and Maven will do the job.
You can download Wicket's source package here: https://wicket.apache.org/start/wicket-10.x.html . It contains the source code and the jars of the core projects of Wicket. If you are just starting out, you probably only need to include wicket-util-x.jar, wicket-request-x.jar and wicket-core-x.jar, where x stands for the version. As a rule, use just the jars you need.
You will find the source code here:
|-- apidocs
| |-- org
| `-- resources
|-- lib
|-- licenses
`-- src
|-- archetypes
|-- testing
|-- wicket
|-- wicket-auth-roles
|-- wicket-bean-validation
|-- wicket-cdi
|-- wicket-cdi-tests
|-- wicket-core
|-- wicket-tester
|-- wicket-core-tests
|-- wicket-devutils
|-- wicket-eclipse-settings
|-- wicket-examples
|-- wicket-experimental
| `-- wicket-metrics
|-- wicket-extensions
|-- wicket-extensions-tester
|-- wicket-guice
|-- wicket-ioc
|-- wicket-jmx
|-- wicket-migration
|-- wicket-native-websocket
|-- wicket-objectsizeof-agent
|-- wicket-request
|-- wicket-spring
|-- wicket-util
|-- wicket-user-guide
`-- wicket-velocity
Here is a list of projects in the distribution and what they do.
The easiest way of getting the dependencies of your Wicket based projects right is to use Apache Maven (https://maven.apache.org) with your projects and include the wicket dependencies you want as outlined in the wicket-quickstart. Maven will then take care of including the appropriate dependencies.
If you do not want to use Maven, here is a break-down of the dependencies you need. The versions are not repeated here: for the complete and precise reference see the wicket-parent pom.xml in the root folder.
wicket and wicket-extensions:
You only need to include the Jakarta Servlet API (just for compiling), SLF4J API and the SLF4J logging implementation you want. You cannot use Wicket without adding a SLF4J logging implementation to your classpath. Please see the SLF4J site (https://www.slf4j.org/) for more information.
As the following projects all depend on Wicket, they inherit these dependencies.
wicket-velocity:
Apache Velocity Engine (https://velocity.apache.org/) and its dependencies
wicket-ioc:
byte-buddy (https://bytebuddy.net/) and asm-util (https://asm.ow2.io/)
wicket-spring:
wicket-ioc and Spring (https://spring.io/projects/spring-framework/) and its dependencies
wicket-guice:
Google Guice (https://github.com/google/guice)
wicket-cdi:
Jakarta Contexts and Dependency Injection (https://jakarta.ee/specifications/cdi/)
wicket-examples:
All of the above.
Wicket's source distribution (download package mentioned above) contains also the binaries (jar files) for each of its modules (subprojects). You can use these directly in your applications. The Wicket project uploads the source and JavaDoc jars to the Maven repository used by the Maven build tool as well. So there is actually no specific need to build Wicket yourself from the distribution.
When building using Maven 3, execute one of the following in the root folder:
mvn package
creates wicket-(subproject)-x.y.z.jar(s) in according target subdirectories.
mvn install
creates wicket-(subproject)-x.y.z.jar(s) in according target subdirectories and installs the jar files into your local Maven repository for use in other projects.
This file is a copy of the migration guide available on our Wiki:
https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+10.0
Read the online documentation available on our website (https://wicket.apache.org)
Read the migration guide above
Read the mailing list archives at https://lists.apache.org/list.html?users@wicket.apache.org
Send a complete message containing your problem, stacktrace and problem you're trying to solve to our user list (users@wicket.apache.org)
Ask a question in GitHub Discussions (https://github.com/apache/wicket/discussions) or on IRC at Libera.Chat, channel #wicket
Wicket is distributed under the terms of the Apache Software Foundation license, version 2.0. The text is included in the file LICENSE in the root of the project.
Wicket 10 requires at least Java 17. The application server for running your web application should adhere to the Jakarta Servlet 5 specification or newer.
This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See http://www.wassenaar.org for more information.
The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.
The following provides more details on the included cryptographic software:
For encoding HTTP URL data (see org.apache.wicket.core.request.mapper.CryptoMapper) Wicket requires the Java Cryptography extensions (http://java.sun.com/javase/technologies/security/). Wicket does not include these libraries itself, but is designed to use them.