You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Zdila (JIRA)" <my...@incubator.apache.org> on 2005/04/21 20:49:28 UTC
[jira] Created: (MYFACES-207) panelLayout displays buggy nested panelGrids
panelLayout displays buggy nested panelGrids
--------------------------------------------
Key: MYFACES-207
URL: http://issues.apache.org/jira/browse/MYFACES-207
Project: MyFaces
Type: Bug
Versions: 1.0.9 beta
Environment: Windows 2000, Tomcat 5.0, jdk1.4.1
Reporter: Martin Zdila
Nesting more than one panelGrids into panelLayout causes wrong rendering. Most often only first panelGrid gets rendered or none or only a part.
eg.:
JSP:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
<html>
<f:view>
<body style="background-color: red">
<x:panelLayout id="page" layout="classic" styleClass="pageLayout"
headerClass="pageHeader" navigationClass="pageNavigation"
bodyClass="pageBody" footerClass="pageFooter" bodyStyle="background-color: red">
<f:facet name="body">
<h:panelGrid id="pageHeader1" columns="3">
<h:outputText value="foo1" />
<h:outputText value="foo2" />
<h:outputText value="foo3" />
</h:panelGrid>
<h:panelGrid id="pageHeader2" columns="3">
<h:outputText value="foo4" />
<h:outputText value="foo5" />
<h:outputText value="foo6" />
</h:panelGrid>
</f:facet>
</x:panelLayout>
</body>
</f:view>
</html>
generated HTML:
<html>
<body style="background-color: red">
<table class="pageLayout"><tr><td class="pageBody" style="background-color: red"><table id="pageHeader1"><tbody><tr><td>foo4</td><td>foo5</td><td></td></tr>
</tbody></table></td></tr></table>
</body>
</html>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (MYFACES-207) panelLayout displays buggy nested panelGrids
Posted by "Martin Marinschek (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-207?page=all ]
Martin Marinschek closed MYFACES-207:
-------------------------------------
Assign To: Martin Marinschek
Resolution: Invalid
> panelLayout displays buggy nested panelGrids
> --------------------------------------------
>
> Key: MYFACES-207
> URL: http://issues.apache.org/jira/browse/MYFACES-207
> Project: MyFaces
> Type: Bug
> Versions: 1.0.9 beta
> Environment: Windows 2000, Tomcat 5.0, jdk1.4.1
> Reporter: Martin Zdila
> Assignee: Martin Marinschek
>
> Nesting more than one panelGrids into panelLayout causes wrong rendering. Most often only first panelGrid gets rendered or none or only a part.
> eg.:
> JSP:
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
> <html>
> <f:view>
> <body style="background-color: red">
> <x:panelLayout id="page" layout="classic" styleClass="pageLayout"
> headerClass="pageHeader" navigationClass="pageNavigation"
> bodyClass="pageBody" footerClass="pageFooter" bodyStyle="background-color: red">
> <f:facet name="body">
> <h:panelGrid id="pageHeader1" columns="3">
> <h:outputText value="foo1" />
> <h:outputText value="foo2" />
> <h:outputText value="foo3" />
> </h:panelGrid>
> <h:panelGrid id="pageHeader2" columns="3">
> <h:outputText value="foo4" />
> <h:outputText value="foo5" />
> <h:outputText value="foo6" />
> </h:panelGrid>
> </f:facet>
> </x:panelLayout>
> </body>
> </f:view>
> </html>
> generated HTML:
> <html>
> <body style="background-color: red">
> <table class="pageLayout"><tr><td class="pageBody" style="background-color: red"><table id="pageHeader1"><tbody><tr><td>foo4</td><td>foo5</td><td></td></tr>
> </tbody></table></td></tr></table>
> </body>
> </html>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (MYFACES-207) panelLayout displays buggy nested panelGrids
Posted by "Martin Marinschek (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-207?page=comments#action_66339 ]
Martin Marinschek commented on MYFACES-207:
-------------------------------------------
That one is (yes, thanks!) a simple one to solve.
You can only use one component in a facet - all others are not relevant. That would mean you would need to wrap both panel grids in another component to have the desired effects.
regards,
Martin
> panelLayout displays buggy nested panelGrids
> --------------------------------------------
>
> Key: MYFACES-207
> URL: http://issues.apache.org/jira/browse/MYFACES-207
> Project: MyFaces
> Type: Bug
> Versions: 1.0.9 beta
> Environment: Windows 2000, Tomcat 5.0, jdk1.4.1
> Reporter: Martin Zdila
>
> Nesting more than one panelGrids into panelLayout causes wrong rendering. Most often only first panelGrid gets rendered or none or only a part.
> eg.:
> JSP:
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
> <html>
> <f:view>
> <body style="background-color: red">
> <x:panelLayout id="page" layout="classic" styleClass="pageLayout"
> headerClass="pageHeader" navigationClass="pageNavigation"
> bodyClass="pageBody" footerClass="pageFooter" bodyStyle="background-color: red">
> <f:facet name="body">
> <h:panelGrid id="pageHeader1" columns="3">
> <h:outputText value="foo1" />
> <h:outputText value="foo2" />
> <h:outputText value="foo3" />
> </h:panelGrid>
> <h:panelGrid id="pageHeader2" columns="3">
> <h:outputText value="foo4" />
> <h:outputText value="foo5" />
> <h:outputText value="foo6" />
> </h:panelGrid>
> </f:facet>
> </x:panelLayout>
> </body>
> </f:view>
> </html>
> generated HTML:
> <html>
> <body style="background-color: red">
> <table class="pageLayout"><tr><td class="pageBody" style="background-color: red"><table id="pageHeader1"><tbody><tr><td>foo4</td><td>foo5</td><td></td></tr>
> </tbody></table></td></tr></table>
> </body>
> </html>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira