Hi,
On Sun, Feb 13, 2011 at 6:18 PM, Jeremy Thomerson <[email protected]
> wrote:
> I just ran across this nuance this week.... If you have this:
>
> <wicket:enclosure child="comp1">
> <div wicket:id="comp1"></div>
> <div wicket:id="comp2"></div>
> </wicket:enclosure>
>
> Now, say comp1 is invisible, so the whole enclosure is invisible. Now, in
> WicketTester, if you test assertInvisible("comp2"), it will fail because
> technically comp2 *is* visible itself, but it's not really visible because
> its parent is not visible.
>
> So, I want to fix this. My question for the group is, which should I do:
>
> 1 - change assertInvisible to test that it is truly visible (i.e., in
> hierarchy)?
>
> 2 - add a new method, assertInvisibleInHierarchy that tests for actual
> visibility and add to the javadoc for assertInvisible that it only tests
> the
> actual component's visibility, and not its true visibility (as in, in the
> hierarchy)?
>
> I'm for 1)
Looks more natural to me.
Please don't forget to document the change (create a ticket which will
appear in the changelog).
> --
> Jeremy Thomerson
> http://wickettraining.com
> *Need a CMS for Wicket? Use Brix! http://brixcms.org*
>