[
https://issues.apache.org/jira/browse/WICKET-4475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244030#comment-13244030
]
Martin Grigorov commented on WICKET-4475:
-----------------------------------------
I updated the code to use determineVisilibility() instead of #isVisible() so
visibilityAllowed() will be taken into account.
But it seems you didn't understand the purpose of Inline in InlineEnclosure.
The markup element for the InlineEnclosure is always rendered, even if the
child is invisible, this way it can be updated in Ajax requests because the
placeholder tag is there.
If you want the markup of the enclosure to not be rendered at all then you need
<wicket:enclosure>, but in this case it wont work in Ajax.
> Inline Enclosure needs to check isVisibleInHierarchy, not only isVisible
> ------------------------------------------------------------------------
>
> Key: WICKET-4475
> URL: https://issues.apache.org/jira/browse/WICKET-4475
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4.20
> Environment: Mac Os, Java 6
> Reporter: Olaf Siefart
> Labels: Enclosure, Inline, visibility
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> If the Visibility of the child component from the inline enclure uses
> setVisibleAllowed, the enclosure is rendered if the component is not visible.
> Take a look to the updateVisibility-method of the InlineEnclosure-Class. In
> my opinion the method should check for isVisibleInHierarchy.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira