Re: Really strange markup exception

2009-10-16 Thread Anton Veretennikov
Forget it, please, I found my fault after 1 minute!!!
Thank you!

On Fri, Oct 16, 2009 at 4:38 PM, Anton Veretennikov
 wrote:
> 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  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:
>
> 
>    
>        
>           
>           
>        
>          
>    
>    
>    
>        
>     
>     
>        
>        
>     
> 
>
> 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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Really strange markup exception

2009-10-16 Thread Anton Veretennikov
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  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:




   
   

  




 
 


 


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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org