Two minor quick-to-fix quality bugs in WicketTester
---------------------------------------------------

                 Key: WICKET-2363
                 URL: https://issues.apache.org/jira/browse/WICKET-2363
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4-RC7
            Reporter: Martin Makundi
            Priority: Minor


Bug 1:
---------------------------------------------
BaseWicketTester.submitAjaxFormSubmitBehavior(final Component, 
AjaxFormSubmitBehavior):

Why doesn't the following snipplet just use the  "getForm()" method instead of 
reflection? There is getForm() method in AjaxFormSubmitBehavior already.

               Form<?> form = null;
               try
               {
                       Field formField = 
AjaxFormSubmitBehavior.class.getDeclaredField("__form");
                       formField.setAccessible(true);
                       form = (Form<?>)formField.get(behavior);
               }
               catch (Exception e)


Bug 2:
---------------------------------------------
tester.executeAjaxEvent does not check whether a component is  visible or not. 
It should not be allowed to execute ajax events on e.g., invisible buttons.


-- 
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