IMarkupResourceStreamProvider for ListView
Hello I got the following error trying to provide custom render for ListView WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). New class signature is private abstract class EnumListViewT extends ListViewT implements IMarkupResourceStreamProvider I was sure getMarkupResourceStream will be called then EnumListView is to be added to a page. But it never happens, debug pointer never suspends execution at this point. What may be wrong? (except my English ofc) -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IMarkupResourceStreamProvider for ListView
you need to call MarkupContainer#renderAssociatedMarkup() see https://gist.github.com/468502 for an example with WebMarkupContainerWithAssociatedMarkup On Fri, Dec 3, 2010 at 3:36 PM, alex shubert alex.shub...@gmail.com wrote: Hello I got the following error trying to provide custom render for ListView WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). New class signature is private abstract class EnumListViewT extends ListViewT implements IMarkupResourceStreamProvider I was sure getMarkupResourceStream will be called then EnumListView is to be added to a page. But it never happens, debug pointer never suspends execution at this point. What may be wrong? (except my English ofc) -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IMarkupResourceStreamProvider for ListView
You might want to check that you are adding your components in the correct place, hierarchically speaking... I always forget to add elements to the item like so... protected abstract void populateItem(final ListItemT item){ item.add(new Component(...)); -- correct add(new Component(...)); --- WRONG I imagine getMarkupResourceStream is not called because one of the validations that check the tree of components failed. -- Eugene On 03 Dec 2010, at 9:36 AM, alex shubert wrote: Hello I got the following error trying to provide custom render for ListView WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). New class signature is private abstract class EnumListViewT extends ListViewT implements IMarkupResourceStreamProvider I was sure getMarkupResourceStream will be called then EnumListView is to be added to a page. But it never happens, debug pointer never suspends execution at this point. What may be wrong? (except my English ofc) -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IMarkupResourceStreamProvider for ListView
Alex, please ignore me listen to Martin. My english reading skills need improving :-) On 03 Dec 2010, at 9:47 AM, Eugene Malan wrote: You might want to check that you are adding your components in the correct place, hierarchically speaking... I always forget to add elements to the item like so... protected abstract void populateItem(final ListItemT item){ item.add(new Component(...)); -- correct add(new Component(...)); --- WRONG I imagine getMarkupResourceStream is not called because one of the validations that check the tree of components failed. -- Eugene On 03 Dec 2010, at 9:36 AM, alex shubert wrote: Hello I got the following error trying to provide custom render for ListView WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). New class signature is private abstract class EnumListViewT extends ListViewT implements IMarkupResourceStreamProvider I was sure getMarkupResourceStream will be called then EnumListView is to be added to a page. But it never happens, debug pointer never suspends execution at this point. What may be wrong? (except my English ofc) -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IMarkupResourceStreamProvider for ListView
Martin, thanks a lot. On 3 December 2010 17:45, Martin Grigorov mgrigo...@apache.org wrote: you need to call MarkupContainer#renderAssociatedMarkup() see https://gist.github.com/468502 for an example with WebMarkupContainerWithAssociatedMarkup On Fri, Dec 3, 2010 at 3:36 PM, alex shubert alex.shub...@gmail.com wrote: Hello I got the following error trying to provide custom render for ListView WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). New class signature is private abstract class EnumListViewT extends ListViewT implements IMarkupResourceStreamProvider I was sure getMarkupResourceStream will be called then EnumListView is to be added to a page. But it never happens, debug pointer never suspends execution at this point. What may be wrong? (except my English ofc) -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IMarkupResourceStreamProvider for ListView
Looks like onComponentTagBody is never called for ListView I overrided it with copy-paste from Panel and .. nothing. Even If I replace method body with Exception nothing happens... On 3 December 2010 17:45, Martin Grigorov mgrigo...@apache.org wrote: you need to call MarkupContainer#renderAssociatedMarkup() see https://gist.github.com/468502 for an example with WebMarkupContainerWithAssociatedMarkup On Fri, Dec 3, 2010 at 3:36 PM, alex shubert alex.shub...@gmail.com wrote: Hello I got the following error trying to provide custom render for ListView WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). New class signature is private abstract class EnumListViewT extends ListViewT implements IMarkupResourceStreamProvider I was sure getMarkupResourceStream will be called then EnumListView is to be added to a page. But it never happens, debug pointer never suspends execution at this point. What may be wrong? (except my English ofc) -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IMarkupResourceStreamProvider for ListView
Read the ListView javadoc: it states that a ListView has no markup itself. Override ListItem's onComponentTagBody instead... Martijn On Fri, Dec 3, 2010 at 4:15 PM, alex shubert alex.shub...@gmail.com wrote: Looks like onComponentTagBody is never called for ListView I overrided it with copy-paste from Panel and .. nothing. Even If I replace method body with Exception nothing happens... On 3 December 2010 17:45, Martin Grigorov mgrigo...@apache.org wrote: you need to call MarkupContainer#renderAssociatedMarkup() see https://gist.github.com/468502 for an example with WebMarkupContainerWithAssociatedMarkup On Fri, Dec 3, 2010 at 3:36 PM, alex shubert alex.shub...@gmail.com wrote: Hello I got the following error trying to provide custom render for ListView WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). New class signature is private abstract class EnumListViewT extends ListViewT implements IMarkupResourceStreamProvider I was sure getMarkupResourceStream will be called then EnumListView is to be added to a page. But it never happens, debug pointer never suspends execution at this point. What may be wrong? (except my English ofc) -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IMarkupResourceStreamProvider for ListView
Martijn thanks for your patience and help. Sometimes I miss obvious things. Only one question left: why onComponentTagBody implemented on ListView if it's never called? I miss something clear again? On 3 December 2010 18:18, Martijn Dashorst martijn.dasho...@gmail.com wrote: Read the ListView javadoc: it states that a ListView has no markup itself. Override ListItem's onComponentTagBody instead... Martijn On Fri, Dec 3, 2010 at 4:15 PM, alex shubert alex.shub...@gmail.com wrote: Looks like onComponentTagBody is never called for ListView I overrided it with copy-paste from Panel and .. nothing. Even If I replace method body with Exception nothing happens... On 3 December 2010 17:45, Martin Grigorov mgrigo...@apache.org wrote: you need to call MarkupContainer#renderAssociatedMarkup() see https://gist.github.com/468502 for an example with WebMarkupContainerWithAssociatedMarkup On Fri, Dec 3, 2010 at 3:36 PM, alex shubert alex.shub...@gmail.com wrote: Hello I got the following error trying to provide custom render for ListView WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). New class signature is private abstract class EnumListViewT extends ListViewT implements IMarkupResourceStreamProvider I was sure getMarkupResourceStream will be called then EnumListView is to be added to a page. But it never happens, debug pointer never suspends execution at this point. What may be wrong? (except my English ofc) -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org