Re: Another borders scenario

2009-03-02 Thread Anton Veretennikov
The only way I found is to hold reference to added border inside to be
extended class and to do

getBorder().add(new Link("link"));

in child constructor.

May be there exists better approach?

On Mon, Mar 2, 2009 at 11:41 PM, Anton Veretennikov
 wrote:
> Hello!
>
> I'm again with borders. May be I'm not using them right...
> Is everything okey with this mix of border and child:
>
> 
> Block.html:
>    
>      
>        
>      
>    
> 
> Block.java (extends Panel)
>   add(new RoundedCornersPanelGrey("border"));
>
> 
> ChildBlock.html:
>    
>      link
>    
> 
> ChildBlock.java (extends Block)
>   add(new Link("link")
>
> It doesn't work with border in Block (can't find component).
> It works only without border or with border in ChildBlock around .
>
> -- Tony.
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Another borders scenario

2009-03-02 Thread Anton Veretennikov
Hello!

I'm again with borders. May be I'm not using them right...
Is everything okey with this mix of border and child:


Block.html:

  

  


Block.java (extends Panel)
   add(new RoundedCornersPanelGrey("border"));


ChildBlock.html:

  link


ChildBlock.java (extends Block)
   add(new Link("link")

It doesn't work with border in Block (can't find component).
It works only without border or with border in ChildBlock around .

-- Tony.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org