On Fri, 31 Oct 2008, Bert van Heukelom wrote:
> I want to test an ajax upload component that uses an IFrame. I have
> difficulties when trying to access Components via their path that are
> contained in the IFrame. I manage to a reference of the Iframe but can not
> find a path-string that accesses a component (namly a form) within the
> Iframe.

Try doing wicketTester.debugComponentTrees() (or debugging 
the exact hierarchy by yourself).

> FormTester f =
> wicketTester.newFormTester("path:to:my:iframe:and:to:its:inner:form");

Long component paths like this are a bit problematic anyway.
You could try digging your Form up with a visitor to make it
less dependent on the path.

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]

Reply via email to