Re: 1.5 migration and border magic

2012-05-14 Thread Girts Ziemelis
Sorry, answering my own questions ... ;) On 2012-05-11 17:03, Girts Ziemelis wrote: 1.I assume _header is staff added to page header? Can I identify it differently, not by string _header? instanceof HtmlHeaderContainer? Seems that check for HtmlHeaderContainer works fine. 2. is it

1.5 migration and border magic

2012-05-11 Thread Girts Ziemelis
I was using border in 1.4 to dynamically add different borders to the page (like - for printing, popup, plain, with header/ footer etc based on page parameters and some other criteria) and really liked this method in 1.4. Seems that 1.5 makes this approach clumsy :( Now I must override the

Re: 1.5 migration and border magic

2012-05-11 Thread Martin Grigorov
Hi, It is not very clear to me what exactly is clumsy. Can you explain in more details how it got worse. Show some code maybe. On Fri, May 11, 2012 at 2:20 PM, Girts Ziemelis girts.zieme...@gmail.com wrote: I was using border in 1.4 to dynamically add different borders to the page (like - for

Re: 1.5 migration and border magic

2012-05-11 Thread Girts Ziemelis
It is worse, because now I need to write a code, which previously I got for free in 1.4 :D and by clumsy I meant my attempt of implementing this functionality ;) Now my superclass base page add method looks like this :( @Override public MarkupContainer add(Component... childs) {