You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Will Morton (JIRA)" <ji...@apache.org> on 2012/06/13 11:27:42 UTC

[jira] [Created] (WICKET-4605) 'Component not added to page' warning after localized component is explicitly removed

Will Morton created WICKET-4605:
-----------------------------------

             Summary: 'Component not added to page' warning after localized component is explicitly removed
                 Key: WICKET-4605
                 URL: https://issues.apache.org/jira/browse/WICKET-4605
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4.20
         Environment: redhat/ubuntu, tomcat-6.0.33
            Reporter: Will Morton
            Priority: Minor


Steps to Reproduce:
* Add a component containing localized strings to a parent
* Remove or replace this component
* Render page

Expected Result:
* Removed component does not render, or does not produce warnings when rendered

Actual Result:
* Warning in log: "Localizer.getStringIgnoreSettings[198] - Tried to retrieve a localized string for a component that has not yet been added to the page. This can sometimes lead to an invalid or no localized resource returned. Make sure you are not calling Component#getString() inside your Component's constructor."

I have tried calling detach(), detachModels(), setEnabled(false), setVisible(false) on the removed component, but none of these prevent the warning from appearing.

--
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

        

[jira] [Commented] (WICKET-4605) 'Component not added to page' warning after localized component is explicitly removed

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294300#comment-13294300 ] 

Martin Grigorov commented on WICKET-4605:
-----------------------------------------

Can you please provide a quickstart app that demonstrates the problem ?
This will make it much easier for us to debug it.
Thanks!
                
> 'Component not added to page' warning after localized component is explicitly removed
> -------------------------------------------------------------------------------------
>
>                 Key: WICKET-4605
>                 URL: https://issues.apache.org/jira/browse/WICKET-4605
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.20
>         Environment: redhat/ubuntu, tomcat-6.0.33
>            Reporter: Will Morton
>            Priority: Minor
>
> Steps to Reproduce:
> * Add a component containing localized strings to a parent
> * Remove or replace this component
> * Render page
> Expected Result:
> * Removed component does not render, or does not produce warnings when rendered
> Actual Result:
> * Warning in log: "Localizer.getStringIgnoreSettings[198] - Tried to retrieve a localized string for a component that has not yet been added to the page. This can sometimes lead to an invalid or no localized resource returned. Make sure you are not calling Component#getString() inside your Component's constructor."
> I have tried calling detach(), detachModels(), setEnabled(false), setVisible(false) on the removed component, but none of these prevent the warning from appearing.

--
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

        

[jira] [Resolved] (WICKET-4605) 'Component not added to page' warning after localized component is explicitly removed

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4605.
-------------------------------------

    Resolution: Incomplete

Please provide a quickstart and we will reopen it.
                
> 'Component not added to page' warning after localized component is explicitly removed
> -------------------------------------------------------------------------------------
>
>                 Key: WICKET-4605
>                 URL: https://issues.apache.org/jira/browse/WICKET-4605
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.20
>         Environment: redhat/ubuntu, tomcat-6.0.33
>            Reporter: Will Morton
>            Priority: Minor
>
> Steps to Reproduce:
> * Add a component containing localized strings to a parent
> * Remove or replace this component
> * Render page
> Expected Result:
> * Removed component does not render, or does not produce warnings when rendered
> Actual Result:
> * Warning in log: "Localizer.getStringIgnoreSettings[198] - Tried to retrieve a localized string for a component that has not yet been added to the page. This can sometimes lead to an invalid or no localized resource returned. Make sure you are not calling Component#getString() inside your Component's constructor."
> I have tried calling detach(), detachModels(), setEnabled(false), setVisible(false) on the removed component, but none of these prevent the warning from appearing.

--
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