Example usage for org.apache.wicket Page setEnabled

List of usage examples for org.apache.wicket Page setEnabled

Introduction

In this page you can find the example usage for org.apache.wicket Page setEnabled.

Prototype

public final Component setEnabled(final boolean enabled) 

Source Link

Document

Sets whether this component is enabled.

Usage

From source file:gr.interamerican.wicket.bo2.markup.html.form.TestSelfDrawnTextArea.java

License:Open Source License

/**
 * test disable/*  ww w.j  a v a  2 s  .  c o m*/
 */
@Test
public void testDisable() {
    Page page = getTestPage();
    page.setEnabled(false);

    tester.startPage(page);

    Assert.assertTrue(tester.getLastResponse().getDocument().contains(MarkupConstants.READONLY));
}