Sorry, I found my mistake.

The customheader works very fine !

Please, discard my post.
Yves

On 2 jan, 11:02, yves <yves.ko...@gmail.com> wrote:
> Hi,
>
> As I'am trying to create a TabLayoutPanel with 2 customheaders, for
> each header I made this kind of stuff in the ui.xml :
>                         <g:customHeader>
>                                 <g:Label addStyleNames='newuser-tab' 
> ui:field='cpnyLoginTabLbl'/>
>                         </g:customHeader>
>
> (of course : distinct ui:field for each header)
>
> Then programatically, after the
> "initWidget(uiBinder.createAndBindUi(this));" for each header I made
> this kind of stuff :
>                         cpnyLoginTabLbl.setText("Login");
>
> (of course : distinct ui:field and text for each header)
>
> As a result, the browser (FF3.6) displayed the 2nd tab at the 1st
> position, and the 1st tab was empty (no text in the header, the header
> is a small few pixels square) and in last position.
>
> To avoid this I had to replace the lines in the ui.xml in this way :
>
>                         <g:customHeader>
>                                 <g:Label addStyleNames='newuser-tab'
> ui:field='cpnyLoginTabLbl'>"Login"</g:Label>
>                         </g:customHeader>
>
> where I put the text directly in the ui.xml instead of
> programatically.
>
> With the text in the ui.xml it is displayed correctly.
>
> This is very annoying as I need to set the text programatically with
> I18N. I could do this in the ui.xml but it will multiply the number of
> requested properties files.
>
> Did I missed something or is it a bug ?
>
> Thanks
> Yves

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to