"Sorry, I didn't think my bug yesterday got logged because I got a timeout error when I posted it. I realized this morning that it was expected behavior since t:dataList is a component and should all be in one column of a panelGrid. However, I'd like to propose extending dataList to support the flexibilty I discuss in this 'improvement' request. This would also basically give people the missing functionality from a foreach. Perhaps a new tag is in order.
Also, Simon I tried the #inline CSS suggestion to no avail.
-Tony"
I am banning myself to users list now. Promise.
On 11/23/05, Tony Czupryna (JIRA) <[email protected]> wrote:
dataList treatment inside panelGrid
-----------------------------------
Key: MYFACES-868
URL: http://issues.apache.org/jira/browse/MYFACES-868
Project: MyFaces
Type: Improvement
Components: Tomahawk
Versions: 1.1.1, Nightly
Environment: 11/22/2005 Nightly Build
Tomcat 5.5
Fedora 4
Reporter: Tony Czupryna
Priority: Minor
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
