Example usage for org.apache.wicket.markup.html.form Form getPage

List of usage examples for org.apache.wicket.markup.html.form Form getPage

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.form Form getPage.

Prototype

@Override
public final Page getPage() 

Source Link

Document

Gets the page holding this component.

Usage

From source file:com.pushinginertia.wicket.core.form.behavior.RealFullNameValidator.java

License:Open Source License

private String toLogString(final Form form, final TextField<String> errorComponent) {
    final String id = errorComponent.getId();
    final String pageClass = form.getPage().getClass().getSimpleName();
    return pageClass + " failed validation on input [" + id + "]: " + toString(firstName) + ", "
            + toString(familyName);/*w w  w  .j ava 2s  .  c  o  m*/
}