Skip to content

Instantly share code, notes, and snippets.

View dashorst's full-sized avatar

Martijn Dashorst dashorst

View GitHub Profile
@dashorst
dashorst / Quote.java
Last active August 29, 2015 14:01
Code voor gebruik in cheesy-quotes Android project
/**
* Een quote van een persoon: bevat de tekst of uitspraak en een attribution
* van de persoon die de quote gezegd of geschreven heeft.
*/
public class Quote {
private String text;
private String attribution;
public String getText() {
return text;
@dashorst
dashorst / 1 FlickrLookup.java
Last active August 29, 2015 14:01
Flickr API client om in een AsyncTask foto's voor een locatie op te halen.
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashSet;
import java.util.Iterator;
@dashorst
dashorst / gist:051a2cc07ad8f25635ea
Created November 28, 2014 15:00
A brilliant piece of code...
package com.sun.xml.bind.v2.model.impl;
...
public class ModelBuilder {
...
static {
try {
XmlSchema s = null;
@dashorst
dashorst / StringResourceModelMigration
Created May 26, 2015 12:31
A migration assisting class for Wicket's StringResourceModel
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@dashorst
dashorst / gist:4ee7ab1696321f290a24
Created June 22, 2015 11:39
Made wildcards internally consistent in ListView
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/list/ListView.java b/wicket-core/src/main/java/org/apache/wicket/markup/html/list/ListView.java
index 57f9d84..d1bdd39 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/html/list/ListView.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/list/ListView.java
@@ -442,7 +442,7 @@ public abstract class ListView<T> extends AbstractRepeater
* The list item index
* @return The ListItemModel created
*/
- protected IModel<T> getListItemModel(final IModel<? extends List<T>> listViewModel,
+ protected IModel<? extends T> getListItemModel(final IModel<? extends List<? extends T>> listViewModel,
@dashorst
dashorst / gist:eb84199f86e109728dce
Created June 22, 2015 13:58
Fix generics for ListView
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/list/ListView.java b/wicket-core/src/main/java/org/apache/wicket/markup/html/list/ListView.java
index 57f9d84..e179d9e 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/html/list/ListView.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/list/ListView.java
@@ -134,7 +134,7 @@ public abstract class ListView<T> extends AbstractRepeater
* @param model model containing a list of
* @see org.apache.wicket.Component#Component(String, IModel)
*/
- public ListView(final String id, final IModel<? extends List<? extends T>> model)
+ public ListView(final String id, final IModel<? extends List<T>> model)
Locale Style Variation Extension non-minified minified strict-non-min strict-min
null null null null b.js b.min.js b.js b.min.js
nl_BE null null null b_nl_BE.js b_nl_BE.min.js b_nl_BE.js b_nl_BE.min.js
nl_NL null null null b_nl.js b_nl.min.js null null
pt_BR null null null b.js b.min.js null null
null style null null b_style.js b_style.min.js b_style.js b_style.min.js
nl_BE style null null b_style_nl_BE.js b_style_nl_BE.min.js b_style_nl_BE.js b_style_nl_BE.min.js
nl_NL style null null b_style_nl.js b_style_nl.min.js null null
pt_BR style null null b_style.js b_style.min.js null null
null style var null b_var_style.js b_var_style.min.js b_var_style.js b_var_style.min.js
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
public interface BootstrapAction
{
BootstrapAction confirm(String text, SerializableRunnable action);
BootstrapAction label(String label);
BootstrapAction icon(FontAwesomeIcon icon);
BootstrapAction iconPre(String icon);

Announcing Apache Wicket 8: Write Less, Achieve More

The Apache Wicket project announces the 8th major release of the open source Java web framework servicing websites and applications across the globe for over a decade. With this release Wicket embraces Java 8 idioms fully, allowing the use of lambda expressions in all the right places. With Wicket 8 you can write fewer, faster and more maintainable code.

A Careful Application of Java 8

While previous versions of Wicket work well with Java 8 and beyond, the Wicket API was not optimized to make full use of Java 8 idioms. After careful consideration and trying many paths to adopt new ways of combining Java 8 and Wicket, we finally settled on the current API.

Java 8’s new idioms and types have been applied throughout Wicket’s API. Learn more about the details below.