You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Joseph Toth (JIRA)" <ji...@apache.org> on 2008/01/11 22:40:34 UTC
[jira] Created: (WICKET-1275) Displaying a Palette via AJAX
Displaying a Palette via AJAX
-----------------------------
Key: WICKET-1275
URL: https://issues.apache.org/jira/browse/WICKET-1275
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.3.0-final
Reporter: Joseph Toth
Attachments: wicket-bug.zip
I attached an example project so you can see exactly what the problem is. Just unzip, mvn eclipse:eclipse (or whatever) and import the project and run it.
Basically I have a couple radio buttons and want to display different Palettes and other options based on the radio button picked. When I click on a radio button I get the following error:
WicketMessage: Unable to find component with id 'recorder' in [MarkupContainer [Component id = options1Palette, page = wicketbug.Home, path = 10:form:container:options1Palette.Palette, isVisible = true, isVersioned = true]]. This means that you declared wicket:id=recorder in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match.
[markup = jar:file:/home/jtoth/.m2/repository/org/apache/wicket/wicket-extensions/1.3.0/wicket-extensions-1.3.0.jar!/org/apache/wicket/extensions/markup/html/form/palette/Palette.html
If you comment lines 73 and 74 in Home.java so the palettes are displayed from the start everything works fine.
Let me know if you need anything else.
Thanks!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-1275) Displaying a Palette via AJAX
Posted by "Joseph Toth (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joseph Toth updated WICKET-1275:
--------------------------------
Attachment: wicket-bug.zip
> Displaying a Palette via AJAX
> -----------------------------
>
> Key: WICKET-1275
> URL: https://issues.apache.org/jira/browse/WICKET-1275
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-final
> Reporter: Joseph Toth
> Attachments: wicket-bug.zip
>
>
> I attached an example project so you can see exactly what the problem is. Just unzip, mvn eclipse:eclipse (or whatever) and import the project and run it.
> Basically I have a couple radio buttons and want to display different Palettes and other options based on the radio button picked. When I click on a radio button I get the following error:
> WicketMessage: Unable to find component with id 'recorder' in [MarkupContainer [Component id = options1Palette, page = wicketbug.Home, path = 10:form:container:options1Palette.Palette, isVisible = true, isVersioned = true]]. This means that you declared wicket:id=recorder in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match.
> [markup = jar:file:/home/jtoth/.m2/repository/org/apache/wicket/wicket-extensions/1.3.0/wicket-extensions-1.3.0.jar!/org/apache/wicket/extensions/markup/html/form/palette/Palette.html
> If you comment lines 73 and 74 in Home.java so the palettes are displayed from the start everything works fine.
> Let me know if you need anything else.
> Thanks!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-1275) FLAG_HAS_BEEN_RENDERED is set when
rendering invisible components
Posted by "Matej Knopp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matej Knopp updated WICKET-1275:
--------------------------------
Summary: FLAG_HAS_BEEN_RENDERED is set when rendering invisible components (was: OnBefore(After?)Render does not properly cascade to descendants of components added to ajax request target)
> FLAG_HAS_BEEN_RENDERED is set when rendering invisible components
> -----------------------------------------------------------------
>
> Key: WICKET-1275
> URL: https://issues.apache.org/jira/browse/WICKET-1275
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-final
> Reporter: Joseph Toth
> Assignee: Matej Knopp
> Attachments: wicket-bug.zip
>
>
> I attached an example project so you can see exactly what the problem is. Just unzip, mvn eclipse:eclipse (or whatever) and import the project and run it.
> Basically I have a couple radio buttons and want to display different Palettes and other options based on the radio button picked. When I click on a radio button I get the following error:
> WicketMessage: Unable to find component with id 'recorder' in [MarkupContainer [Component id = options1Palette, page = wicketbug.Home, path = 10:form:container:options1Palette.Palette, isVisible = true, isVersioned = true]]. This means that you declared wicket:id=recorder in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match.
> [markup = jar:file:/home/jtoth/.m2/repository/org/apache/wicket/wicket-extensions/1.3.0/wicket-extensions-1.3.0.jar!/org/apache/wicket/extensions/markup/html/form/palette/Palette.html
> If you comment lines 73 and 74 in Home.java so the palettes are displayed from the start everything works fine.
> Let me know if you need anything else.
> Thanks!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-1275) OnBefore(After?)Render does not
properly cascade to descendants of components added to ajax request target
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg updated WICKET-1275:
----------------------------------
Assignee: Matej Knopp
Summary: OnBefore(After?)Render does not properly cascade to descendants of components added to ajax request target (was: Displaying a Palette via AJAX)
i tried to look into it, but ran out of time. matej can you take a look, youve actually tweaked the request target recently so maybe this is a regression.
basically we never cascade the onbeforerender() to all children. we call component.preparerender() and that calls onbeforerender() but only on that component.
this error happens because palette creates the recorder lazily in its onbeforerender callback, and since that is never invoked...
> OnBefore(After?)Render does not properly cascade to descendants of components added to ajax request target
> ----------------------------------------------------------------------------------------------------------
>
> Key: WICKET-1275
> URL: https://issues.apache.org/jira/browse/WICKET-1275
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-final
> Reporter: Joseph Toth
> Assignee: Matej Knopp
> Attachments: wicket-bug.zip
>
>
> I attached an example project so you can see exactly what the problem is. Just unzip, mvn eclipse:eclipse (or whatever) and import the project and run it.
> Basically I have a couple radio buttons and want to display different Palettes and other options based on the radio button picked. When I click on a radio button I get the following error:
> WicketMessage: Unable to find component with id 'recorder' in [MarkupContainer [Component id = options1Palette, page = wicketbug.Home, path = 10:form:container:options1Palette.Palette, isVisible = true, isVersioned = true]]. This means that you declared wicket:id=recorder in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match.
> [markup = jar:file:/home/jtoth/.m2/repository/org/apache/wicket/wicket-extensions/1.3.0/wicket-extensions-1.3.0.jar!/org/apache/wicket/extensions/markup/html/form/palette/Palette.html
> If you comment lines 73 and 74 in Home.java so the palettes are displayed from the start everything works fine.
> Let me know if you need anything else.
> Thanks!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WICKET-1275) FLAG_HAS_BEEN_RENDERED is set when
rendering invisible components
Posted by "Matej Knopp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matej Knopp resolved WICKET-1275.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.3.1
Problem was in HAS_BEEN_RENDERED flag setting for invisible components. Fixing this fixed the quick start
> FLAG_HAS_BEEN_RENDERED is set when rendering invisible components
> -----------------------------------------------------------------
>
> Key: WICKET-1275
> URL: https://issues.apache.org/jira/browse/WICKET-1275
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-final
> Reporter: Joseph Toth
> Assignee: Matej Knopp
> Fix For: 1.3.1
>
> Attachments: wicket-bug.zip
>
>
> I attached an example project so you can see exactly what the problem is. Just unzip, mvn eclipse:eclipse (or whatever) and import the project and run it.
> Basically I have a couple radio buttons and want to display different Palettes and other options based on the radio button picked. When I click on a radio button I get the following error:
> WicketMessage: Unable to find component with id 'recorder' in [MarkupContainer [Component id = options1Palette, page = wicketbug.Home, path = 10:form:container:options1Palette.Palette, isVisible = true, isVersioned = true]]. This means that you declared wicket:id=recorder in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match.
> [markup = jar:file:/home/jtoth/.m2/repository/org/apache/wicket/wicket-extensions/1.3.0/wicket-extensions-1.3.0.jar!/org/apache/wicket/extensions/markup/html/form/palette/Palette.html
> If you comment lines 73 and 74 in Home.java so the palettes are displayed from the start everything works fine.
> Let me know if you need anything else.
> Thanks!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.