Excepted is:
- if a component provides its own markup either via subclassing
getMarkup() or is expected to have associated markup (e.g. Panel) =>
markup available in ctor
- Component.onMarkupAttached() is invoked as soon as the markup is
available. E.g. a child to a Panel. child.onMarkupAttached() is
invoked when child gets added to panel
- onInitialize() gets called once a path to the Page is available

Juergen

On Wed, Nov 24, 2010 at 10:06 PM, Martin Grigorov <[email protected]> wrote:
> Hi,
>
> I just updated my app to latest 1.5 and the following exception happened:
>
> org.apache.wicket.WicketRuntimeException: No Page found for component
> [ShortcutsPanel [Component id = componentItem]]
> at org.apache.wicket.Component.getPage(Component.java:1787)
> at org.apache.wicket.MarkupContainer.getMarkupType(MarkupContainer.java:531)
> at
> org.apache.wicket.MarkupContainer.getAssociatedMarkup(MarkupContainer.java:441)
> at
> org.apache.wicket.markup.html.panel.Panel$PanelMarkupHelper.getMarkup(Panel.java:166)
> at org.apache.wicket.markup.html.panel.Panel.getMarkup(Panel.java:142)
> at org.apache.wicket.Component.getMarkup(Component.java:722)
> at org.apache.wicket.Component.getMarkupTag(Component.java:1436)
> at org.apache.wicket.Component.getMarkupIdFromMarkup(Component.java:847)
> <<<<<<<<<<<< new
> at org.apache.wicket.Component.getMarkupIdImpl(Component.java:1482)
> at org.apache.wicket.Component.getMarkupId(Component.java:1537)
> at org.apache.wicket.Component.getMarkupId(Component.java:1599)
> at
> com.fredhopper.bm.components.savedsearches.ShortcutsPanel.<init>(ShortcutsPanel.java:184)
> ....
>
> In ShortcutsPanel's ctor we need to get the markupId of one of the
> components in this Panel ...
> I know that if I move the code to onInitialize() then everything will be OK,
> but I wanted to discuss with you whether the new behavior is OK for 1.5.
>

Reply via email to