Hello, wicket users and developers,

I need your help, can't find the reason of problem. Tried this with
1.4.1 and 1.4.2 wicket versions.

My class IconImage extends WebMarkupContainer and adds "src" attribute
to <img> tag depending on some logic and I use it in several panels.
It works perfectly until I want to use it in this breadcrump markup:

<wicket:panel>
    <span wicket:id="breadcrumb">
        <a wicket:id="link">
           <img wicket:id="icon" src="" alt="" />
           <span wicket:id="text"></span>
        </a>
        <span wicket:id="gt"> <img src=".../gtdot.gif" alt="&gt;"/> </span>
    </span>
    <img src=".../gtdot.gif" alt="&gt;"/>
    <a wicket:id="nameimglink" class="noadecoration">
        <img src=".../link.gif" alt="" title=""/>
     </a>
     <a wicket:id="goodLink">
        <img wicket:id="goodIcon" src="" alt="" />
        <span wicket:id="name"></span>
     </a>
</wicket:panel>

Span [wicket:id="breadcrumb"] is filled using ListView, here IconImage
is added to [wicket:id="icon"], it WORKS here.

But last [wicket:id="goodIcon"] throws

org.apache.wicket.markup.MarkupException: Unable to find component
with id 'goodIcon' in [MarkupContainer [Component id = goodLink]]

When I replace IconImage with simple WebMarkupContainer - everything
starts to work.
Even when I make simple extend of WebMarkupContainer without any logic
it throws this exception.

What's the matter?

Best regards,
-- Tony

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to