You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "H. Swaczinna" <sw...@wlp-systems.de> on 2007/06/01 17:49:58 UTC
[Tobago] Layout problems with tc:sheet in a tc:tab with IE
Hi,
I have three sheets on a tab of a tab group with switchType="reloadTab".
With Firefox everything is fine
but with IE (6 and 7) there layout problems. In my app all three sheets
disappear when I switch to this tab
the first time. The sheets are shown for a short time (ca. 0,1 s) and than
disappear. I think they're first shown
with a wrong layout and than relayouted and removed. When I switch to
another tab and back the sheets are
shown correctly. With switchType="reloadPage" there's no problem.
Because my page layout is very compley I can't send you the source code. But
I built a very small example
with a tab and a sheet which shoes some layout problems with IE also:
<f:view>
<tc:page id="resetPage" width="400px" height="200px">
<tc:tabGroup switchType="reloadTab">
<tc:tab id="tab1" label="Tab1">
<tc:out value="Tab1"/>
</tc:tab>
<tc:tab id="tab2" label="Tab2">
<tc:sheet id="testTable"
columns="1*;1*"
showHeader="true"
showRowRange="none"
showPageRange="none"
showDirectLinks="none"
first="0"
selectable="none"
var="row"
value="#{controller.list}">
<tc:column label="Column 1">
<tc:out id="column1"
value="#{row.column1}"/>
</tc:column>
<tc:column label="Column 2">
<tc:out id="column2"
value="#{row.column2}"/>
</tc:column>
</tc:sheet>
</tc:tab>
</tc:tabGroup>
</tc:page>
</f:view>
When you load the page and switch to Tab 2 the first time then the header of
the second column is missing and
there's a horizontal scrollbar (but there's no need for a scrollbar). When
you switch to Tab 1 and back to Tab 2
everything is ok.
I'm using Tobago snapshot from the 23th of April.
Regards
Helmut
Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE
Posted by Volker Weber <v....@inexso.de>.
Hi,
the tobago-demo
http://tobago.atanion.net/tobago-example-demo/faces/overview/tab.jsp
already contains a sheet inside a tab.
switch to "Server side tabbing", "Moons".
this sheet is loaded by switchtype=reloadTab.
BTW: i also have no IE available.
Regards,
Volker
2007/6/1, Bernd Bohmann <be...@atanion.com>:
> Hello,
>
> just added your test to
>
> http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/tabSheet.jsp
>
> but I don't have a Windows with IE available.
>
> Can someone with a Windows test this page, please.
>
>
> Regards
>
> Bernd
>
> H. Swaczinna wrote:
> > Hi,
> >
> > I have three sheets on a tab of a tab group with switchType="reloadTab".
> > With Firefox everything is fine
> > but with IE (6 and 7) there layout problems. In my app all three sheets
> > disappear when I switch to this tab
> > the first time. The sheets are shown for a short time (ca. 0,1 s) and than
> > disappear. I think they're first shown
> > with a wrong layout and than relayouted and removed. When I switch to
> > another tab and back the sheets are
> > shown correctly. With switchType="reloadPage" there's no problem.
> >
> > Because my page layout is very compley I can't send you the source code. But
> > I built a very small example
> > with a tab and a sheet which shoes some layout problems with IE also:
> >
> > <f:view>
> > <tc:page id="resetPage" width="400px" height="200px">
> > <tc:tabGroup switchType="reloadTab">
> > <tc:tab id="tab1" label="Tab1">
> > <tc:out value="Tab1"/>
> > </tc:tab>
> > <tc:tab id="tab2" label="Tab2">
> > <tc:sheet id="testTable"
> > columns="1*;1*"
> > showHeader="true"
> > showRowRange="none"
> > showPageRange="none"
> > showDirectLinks="none"
> > first="0"
> > selectable="none"
> > var="row"
> > value="#{controller.list}">
> > <tc:column label="Column 1">
> > <tc:out id="column1"
> > value="#{row.column1}"/>
> > </tc:column>
> > <tc:column label="Column 2">
> > <tc:out id="column2"
> > value="#{row.column2}"/>
> > </tc:column>
> > </tc:sheet>
> > </tc:tab>
> > </tc:tabGroup>
> > </tc:page>
> > </f:view>
> >
> > When you load the page and switch to Tab 2 the first time then the header of
> > the second column is missing and
> > there's a horizontal scrollbar (but there's no need for a scrollbar). When
> > you switch to Tab 1 and back to Tab 2
> > everything is ok.
> >
> > I'm using Tobago snapshot from the 23th of April.
> >
> > Regards
> > Helmut
> >
>
Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE
Posted by Bernd Bohmann <be...@atanion.com>.
Hello,
just added your test to
http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/tabSheet.jsp
but I don't have a Windows with IE available.
Can someone with a Windows test this page, please.
Regards
Bernd
H. Swaczinna wrote:
> Hi,
>
> I have three sheets on a tab of a tab group with switchType="reloadTab".
> With Firefox everything is fine
> but with IE (6 and 7) there layout problems. In my app all three sheets
> disappear when I switch to this tab
> the first time. The sheets are shown for a short time (ca. 0,1 s) and than
> disappear. I think they're first shown
> with a wrong layout and than relayouted and removed. When I switch to
> another tab and back the sheets are
> shown correctly. With switchType="reloadPage" there's no problem.
>
> Because my page layout is very compley I can't send you the source code. But
> I built a very small example
> with a tab and a sheet which shoes some layout problems with IE also:
>
> <f:view>
> <tc:page id="resetPage" width="400px" height="200px">
> <tc:tabGroup switchType="reloadTab">
> <tc:tab id="tab1" label="Tab1">
> <tc:out value="Tab1"/>
> </tc:tab>
> <tc:tab id="tab2" label="Tab2">
> <tc:sheet id="testTable"
> columns="1*;1*"
> showHeader="true"
> showRowRange="none"
> showPageRange="none"
> showDirectLinks="none"
> first="0"
> selectable="none"
> var="row"
> value="#{controller.list}">
> <tc:column label="Column 1">
> <tc:out id="column1"
> value="#{row.column1}"/>
> </tc:column>
> <tc:column label="Column 2">
> <tc:out id="column2"
> value="#{row.column2}"/>
> </tc:column>
> </tc:sheet>
> </tc:tab>
> </tc:tabGroup>
> </tc:page>
> </f:view>
>
> When you load the page and switch to Tab 2 the first time then the header of
> the second column is missing and
> there's a horizontal scrollbar (but there's no need for a scrollbar). When
> you switch to Tab 1 and back to Tab 2
> everything is ok.
>
> I'm using Tobago snapshot from the 23th of April.
>
> Regards
> Helmut
>