[ http://issues.apache.org/jira/browse/MYFACES-868?page=all ]
Mike Kienenberger resolved MYFACES-868:
---------------------------------------
Fix Version: Nightly
Resolution: Won't Fix
Assign To: Mike Kienenberger
Problem needs to be solved using other means: dataTable or dataTable +
t:columns or jsp forEach or raw html + dataList.
> dataList treatment inside panelGrid
> -----------------------------------
>
> Key: MYFACES-868
> URL: http://issues.apache.org/jira/browse/MYFACES-868
> Project: MyFaces
> Type: Improvement
> Components: Tomahawk
> Versions: Nightly, 1.1.1
> Environment: 11/22/2005 Nightly Build
> Tomcat 5.5
> Fedora 4
> Reporter: Tony Czupryna
> Assignee: Mike Kienenberger
> Priority: Minor
> Fix For: Nightly
>
> I'm basically trying to use a dataList as a foreach to display a bunch of
> panelGroups across the screen. When the page renders, the dataList is treated
> as a single panelGroup and displays vertically instead of horizontally. It
> would be great if I could tell the dataList to basically be ignored by
> panelGrid and just render what it contains. This makes it possible to use
> dataList as a foreach. Maybe this should be a new tag that extends dataList.
> A test jsp:
> <%@ page session="true" contentType="text/html;charset=UTF-8" language="java"
> %>
> <%@ 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/tomahawk" prefix="t" %>
> <html>
> <head><title>TonyTesterNoGrid</title></head>
> <body>
> <f:view>
> <h:panelGrid columns="#{tonyTester.numberOfHelpers}">
> <t:dataList id="test" var="helper" value="#{tonyTester.helpers}">
> <h:panelGroup>
> <h:panelGrid columns="1">
> <h:outputText value="#{helper.key}"/>
> <h:outputText value="#{helper.descriptionLine1}"/>
> <h:outputText value="#{helper.descriptionLine2}"/>
> </h:panelGrid>
> </h:panelGroup>
> </t:dataList>
> </h:panelGrid>
> </f:view>
> </body>
> </html>
> Currently, the entire list is put into the first column of the panelGrid:
> <html>
> <head><title>TonyTesterNoGrid</title></head>
> <body>
> <table border="0"><tbody><tr><td>
> <table border="0"><tbody><tr><td>1</td></tr>
> <tr><td>helper1-descriptionLine1</td></tr>
> <tr><td>helper1-descriptionLine2</td></tr>
> </tbody></table>
> <table border="0"><tbody><tr><td>1</td></tr>
> <tr><td>helper2-descriptionLine1</td></tr>
> <tr><td>helper2-descriptionLine2</td></tr>
> </tbody></table>
> <table border="0"><tbody><tr><td>1</td></tr>
> <tr><td>helper3-descriptionLine1</td></tr>
> <tr><td>helper3-descriptionLine2</td></tr>
> </tbody></table>
> </td><td></td><td></td></tr>
> </tbody></table>
> </body>
> </html>
> I'd like to be able to render with each contained panelGroup as a separate
> column in the panelGrid:
> <html>
> <head><title>TonyTesterNoGrid</title></head>
> <body>
> <table border="0"><tbody><tr><td>
> <table border="0"><tbody><tr><td>1</td></tr>
> <tr><td>helper1-descriptionLine1</td></tr>
> <tr><td>helper1-descriptionLine2</td></tr>
> </tbody></table>
> </td><td>
> <table border="0"><tbody><tr><td>1</td></tr>
> <tr><td>helper2-descriptionLine1</td></tr>
> <tr><td>helper2-descriptionLine2</td></tr>
> </tbody></table>
> </td><td>
> <table border="0"><tbody><tr><td>1</td></tr>
> <tr><td>helper3-descriptionLine1</td></tr>
> <tr><td>helper3-descriptionLine2</td></tr>
> </tbody></table>
> </td></tr>
> </tbody></table>
> </body>
> </html>
> It would also have to be able to render additional rows properly.
--
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