Patches item #1512212, was opened at 2006-06-25 20:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1512212&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Frank Bille Jensen (billen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Simulate that an AJAX event has been fired

Initial Comment:
Added a method to the WicketTester which the user can
use to simulate that a user has fired a given AJAX
event. The usage is something like this:

(Wicket 2.0):
...
public void testSomeAjaxEvent() {
    WicketTester tester = new WicketTester();

    ... // Start a component which does some Ajax

    // Simulate that the ondblclick event has been 
    // fired on the component
    tester.executeAjaxEvent(component,
ClientEvent.DBLCLICK);
}
...

(Wicket 1.2):
...
public void testSomeAjaxEvent() {
    WicketTester tester = new WicketTester();

    ... // Start a component which does some Ajax

    // Simulate that the ondblclick event has been 
    // fired on the component
    tester.executeAjaxEvent(component, "ondblclick");
}
...



The patch required that the protected onEvent method on
AjaxEventBehavior went public instead. I don't see any
reason why it shouldn't be possible to get the event
type from an AjaxEventBehavior.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1512212&group_id=119783

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to