[ 
https://issues.apache.org/jira/browse/WICKET-932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525145
 ] 

jbq edited comment on WICKET-932 at 9/5/07 9:26 AM:
---------------------------------------------------------------------

For now the only option is to do:

{noformat}
                // Pretend we clicked on "link"
                tester.getParametersForNextRequest().put("link", "");
                tester.submitForm("form");
{noformat}

Hopefully we can make it work using formTester.submit("link"); and 
tester.clickLink("form:link"); see 
org.apache.wicket.markup.html.form.submitlink.TestHomePage

      was (Author: jbq):
    For now the only option is to do:

{noformat}
                // Pretend we clicked on "link"
                tester.getParametersForNextRequest().put("link", "");
                tester.getParametersForNextRequest().put("link.x", "");
                tester.submitForm("form");
{noformat}

Hopefully we can make it work using formTester.submit("link"); and 
tester.clickLink("form:link"); see 
org.apache.wicket.markup.html.form.submitlink.TestHomePage
  
> BaseWicketTester support for SubmitLink
> ---------------------------------------
>
>                 Key: WICKET-932
>                 URL: https://issues.apache.org/jira/browse/WICKET-932
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.3.0-beta2
>         Environment: XP, Tomcat
>            Reporter: Simon Comley
>            Assignee: Jean-Baptiste Quenot
>            Priority: Minor
>             Fix For: 1.3.0-beta4
>
>         Attachments: JIRA932.zip
>
>
> When the SubmitLink is used instead of the submit for forms, BaseWicketTester 
> does not run through the onSubmit() code of the link.
> I have stepped through the debug of the test that's actually not getting 
> called. All my validators on the text field are getting called as expected 
> and in fact the form works as expected when deployed so I'm thinking that it 
> might be a WicketTester issue or the more likely scenario that I'm doing 
> something wrong?
> Things I've tried:
> - debugging as mentioned, but this just shows me it's not getting called
> - trying to call the link directly but I just get the below exception which 
> I'm not really surpised about.... 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to