You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Simon Kitching (JIRA)" <de...@myfaces.apache.org> on 2005/11/23 03:23:36 UTC
[jira] Closed: (MYFACES-865) dataList not behaving inside panelGrid
[ http://issues.apache.org/jira/browse/MYFACES-865?page=all ]
Simon Kitching closed MYFACES-865:
----------------------------------
Resolution: Invalid
Hi Tony,
I'd expect exactly what you are seeing.
You have a panelGrid with a single child (though its column attribute is set dynamically).
The single child is an HtmlDataList component, which has one child per list element.
That child happens to be a PanelGroup.
As a wild guess, perhaps you could try:
<t:dataList ...>
<t:panelGroup styleClass="inlineItem">
</t:panelGroup>
</t:dataList>
And in the css rules:
#inlineItem {
display: inline;
}
to force the thing that the t:panelGroup creates to be displayed as "inline" rather than as "block" (which forces a linefeed).
For further discussion on this, please use the user email list rather than the bugtracker.
> dataList not behaving inside panelGrid
> --------------------------------------
>
> Key: MYFACES-865
> URL: http://issues.apache.org/jira/browse/MYFACES-865
> Project: MyFaces
> Type: Bug
> Components: Tomahawk
> Versions: 1.1.1, Nightly
> Environment: Myfaces nightly from 11/22/2005
> Tomcat 5.5
> Jdk 1.5
> Linux (Fedora 4)
> Reporter: Tony Czupryna
>
> I'm trying to use a dataList to get around the lack of a loop. Here is the sample 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>TonyTesterNoRadio</title></head>
> <body>
> <f:view>
> <h:form>
> <t:selectOneRadio id="test" forceId="true" layout="spread">
> <f:selectItems value="#{tonyTester.selectItems}"/>
> </t:selectOneRadio>
> <h:panelGrid columns="#{tonyTester.numberOfHelpers}">
> <t:dataList var="helper" value="#{tonyTester.helpers}" rowIndexVar="index">
> <h:panelGroup>
> <h:panelGrid columns="1">
> <t:radio for="test" index="#{index}"/>
> <h:outputText value="#{helper.key}"/>
> <h:outputText value="#{helper.descriptionLine1}"/>
> <h:outputText value="#{helper.descriptionLine2}"/>
> </h:panelGrid>
> </h:panelGroup>
> </t:dataList>
> </h:panelGrid>
> </h:form>
> </f:view>
> </body>
> </html>
> From this (and other code which I can provide), I expect each panel group to line up horizontally across the page. From the html, you can see that the groups are all put into the first column:
> <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>
--
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