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

Reply via email to