Yes, you were right!
I looked at the sourcecode for the AbstractGrid and saw that an onclick
event was added to each row item.

So all I had to do was
_tester.executeAjaxEvent("table:form:bodyContainer:body:row:1","onclick");
to simulate a click on row 1


Timo Rantalaiho wrote:
> 
> On Tue, 02 Dec 2008, ulrik wrote:
>> I'm using the Inmethod DataGrid in my application.
>> I would like to test it's functionality with WicketTester. I have run
>> into
>> some problems though. How do I simulate clicking on a row in the DataGrid
>> from the WicketTester?
> 
> I'm not familiar with DataGrid, but if it has Wicket Ajax behaviours
> bound to "onclick" javascript event, probably with
> 
>   wicketTester.executeAjaxEvent(wicketComponentOfRow, "onclick");
> 
> See the DataGrid source code to find out to which components
> the ajax behaviours are bound.
> 
> Best wishes,
> Timo
> 
> -- 
> Timo Rantalaiho           
> Reaktor Innovations Oy    <URL: http://www.ri.fi/ >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Inmethod-DataGrid-tp20792106p20807960.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to