Re: Markup not found when upgrading from 1.4.18 to 1.5

2012-03-02 Thread rawe
Thanks for your hints, Martin! Now I found the solution. Two changes I had to do: *1)* The difference now is, that the parent component passed to the fragment must be the exact parent. e.g. I used the same fragments for display and edit mode. I passed the page as parentComponent to fragment. /new

Re: Markup not found when upgrading from 1.4.18 to 1.5

2012-03-02 Thread Martin Grigorov
Hi, By 'parent' I really meant 'markupProvider'. See the javadoc of org.apache.wicket.markup.html.panel.Fragment#Fragment(String, String, MarkupContainer). See the source of for the example at http://www.wicket-library.com/wicket-examples/compref/wicket/bookmarkable/org.apache.wicket.examples.comp

Re: Markup not found when upgrading from 1.4.18 to 1.5

2012-03-02 Thread rawe
Hi, you wrote />> ... you should pass the >> "form" as parent container of the fragment instance. / The problem is that I have multiple fragments within my form. And if I pass the form as parent container for each fragment I get an "... child already exists..." exception. That's why I'm insert

Re: Markup not found when upgrading from 1.4.18 to 1.5

2012-02-29 Thread Martin Grigorov
I mean that should be in , or if any of those is used. Your pasted code is not easy to follow but I think you should pass the "form" as parent container of the fragment instance. On Wed, Feb 29, 2012 at 2:12 PM, rawe wrote: > Martin, do you mean something like ?? > > / > > > > >     >  ...

Re: Markup not found when upgrading from 1.4.18 to 1.5

2012-02-29 Thread rawe
Martin, do you mean something like ?? / ... / Doesn't work! But normally I don't need a child tag due I don't include markup from a subclass My fragment class is extended from an AbstractFragment class which extends Fragment I' m using just one markup file. Ralph --

Re: Markup not found when upgrading from 1.4.18 to 1.5

2012-02-29 Thread Martin Grigorov
Hi, Make sure that is inside On Wed, Feb 29, 2012 at 1:03 PM, rawe wrote: > I changed my app from wicket 1.4.18 to 1.5.4 >  Now I get a MarkupNotFound Exception. > In 1.4. the app was running without warnings/errors > > Does somebody have a hint? > > I'm using a form within a page. The form ha

Markup not found when upgrading from 1.4.18 to 1.5

2012-02-29 Thread rawe
I changed my app from wicket 1.4.18 to 1.5.4 Now I get a MarkupNotFound Exception. In 1.4. the app was running without warnings/errors Does somebody have a hint? I'm using a form within a page. The form has a fragment child. *MarkupCode*: / ... / *JavaCode:* f/orm.add(new