[ 
https://issues.apache.org/jira/browse/WICKET-6447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sven Meier resolved WICKET-6447.
--------------------------------
    Resolution: Invalid
      Assignee: Sven Meier

You're test has to set the parameter of the checkbox:

{code}
tester.getRequest().setParameter("test:shouldBeRequired", "true");
tester.executeAjaxEvent("test:shouldBeRequired", "click");
{code}

Now it works exactly like the browser does it.

> Dynamic setRequired() is not taken into account by WicketTester
> ---------------------------------------------------------------
>
>                 Key: WICKET-6447
>                 URL: https://issues.apache.org/jira/browse/WICKET-6447
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 8.0.0-M6
>            Reporter: Kamil
>            Assignee: Sven Meier
>         Attachments: showcase-changeRequired.zip, 
> showcase-requiredByVisibility.zip
>
>
> 1)Run the app
> 2)Click submit (with empty field) -> you should see "SUCCESS" in console
> 3)Click the checkbox and submit (with empty field) -> you should see "ERROR" 
> in console
> now run the tests



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to