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
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
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
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 ??
>
> /
>
>
>
>
>
> ...
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
--
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
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