[ 
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

        

Reply via email to