use markupprovider argument when constructing the fragment.
-igor
On Tue, Aug 5, 2008 at 6:23 AM, cresc <[EMAIL PROTECTED]> wrote:
>
> I have a block which i replace it with an empty fragment or a fragment
> containing a form object based on a flag. When adding the empty fragment I
> dont get any error but at the same time when I add the fragment with the
> form I get the following error. Any clue? html for fragment is present in
> the page html itself, why does it look for separate html?
>
> Code
> ----
> container.add(constructDometryFormFragment("fr-add-dometry-form-container",
> new Dometry()));
> //Works well -
> container.add(constructEmptyFragment("fr-add-dometry-form-container"));
> add(container);
>
> constructDometryFormFragment
> --------------------------------
> Fragment fragment = new Fragment(id, "fr-add-dometry-form");
> final Form form = new Form("add-dometry-form", cpmodel);
> ....
> fragment.add(form);
> return fragment;
>
> constructEmptyFragment
> ------------------------
> return new Fragment("fr-empty");
>
>
>
> Error
> ----
> WicketMessage: Markup of type 'html' for component
> 'org.apache.wicket.markup.html.panel.Fragment' not found. Enable debug
> messages for org.apache.wicket.util.resource to get a list of all filenames
> tried:[MarkupContainer [Component id = fr-add-dometry-form-container, page =
> com.bizpad.manpower.client.worker.WorkerTab, path =
> 0:verticalTabPanel:panel:dp_container:dp_content:add-dometry-form-container:fr-add-dometry-form-container.Fragment,
> isVisible = true, isVersioned = true]]Root
> cause:org.apache.wicket.markup.MarkupNotFoundException: Markup not found.
> Component class: org.apache.wicket.markup.html.panel.Fragment Enable debug
> messages for org.apache.wicket.util.resource to get a list of all filenames
> tried at
> org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:226)
>
> Thanks,
> cresc
> --
> View this message in context:
> http://www.nabble.com/%27html%27-for-Fragment-not-found-tp18831042p18831042.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]