You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martijn Dashorst (JIRA)" <ji...@apache.org> on 2009/01/16 15:34:59 UTC

[jira] Commented: (WICKET-2025) isVisible should not be called after detach

    [ https://issues.apache.org/jira/browse/WICKET-2025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664528#action_12664528 ] 

Martijn Dashorst commented on WICKET-2025:
------------------------------------------

This check is only enabled during development mode. It is turned off in deployment mode.

> isVisible should not be called after detach
> -------------------------------------------
>
>                 Key: WICKET-2025
>                 URL: https://issues.apache.org/jira/browse/WICKET-2025
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-RC1
>            Reporter: Erik van Oosten
>
> I think isVisible should not be called after detach to prevent model reloads.
> I found one call to isVisible after detach in method ComponentRequestTarget#respond(RequestCycle). That method initiates a detach and then calls page.endComponentRender. This leads to a call to Page#checkRendering which calls isVisibleInHierarchy() and from there isVisible(). Method checkRendering only does something when the debug setting 'componentUseCheck' is enabled (which according to the javadoc is true by default). 
> Short term workaround: set debug setting 'componentUseCheck' to false.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.