Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Window 2000 ( servicepack4 ) , JBuilderX , Tomcat 4.0 , using src ( myfaces-20051216-src )
Description
I want to use the <t:dataScroller ... /> for Navigation in <t:dataTable ... />
It works fine but I in my case navigable <t:dataScroller ... /> is actually contained in <t:dataScroller ... />
Actual code
JSP
/***************************************************************************************************/
<%@ taglib uri="/taglib/h.tld" prefix="h"%>
<%@ taglib uri="/taglib/f.tld" prefix="f"%>
<%@ taglib uri="/taglib/t.tld" prefix="t"%>
<%--
<%@ 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>
componentCreationTest
</title>
</head>
<body bgcolor="#ffffff">
<f:view >
<h:messages>
</h:messages>
<h:message for="userGroup">
</h:message>
<t:dataTable id="userGroup" value="#
" var="userGroup">
<t:column>
<t:dataTable id="user" value="#
" var="data" rows="5" preserveDataModel="true">
<h:column>
<f:facet name="header">
<h:outputLabel value="UserName">
</h:outputLabel>
</f:facet>
<h:outputLabel value="#
">
</h:outputLabel>
</h:column>
<f:facet name="footer">
<t:dataScroller fastStep="5" styleClass="scrollerTable"
pageCountVar="pageCount"
pageIndexVar="pageIndex"
paginator="true"
paginatorMaxPages="12"
paginatorTableClass="paginator"
paginatorActiveColumnStyle="font-weight:bold;"
immediate="false"
for="user">
<f:facet name="first" >
<t:graphicImage url="/images/arrow-first.gif" border="1" styleClass="objectList_GraphicImage" />
</f:facet>
<f:facet name="last">
<t:graphicImage url="/images/arrow-last.gif" border="1" styleClass="objectList_GraphicImage" />
</f:facet>
<f:facet name="previous">
<t:graphicImage url="/images/arrow-previous.gif" border="1" styleClass="objectList_GraphicImage"/>
</f:facet>
<f:facet name="next">
<t:graphicImage url="/images/arrow-next.gif" border="1" styleClass="objectList_GraphicImage" />
</f:facet>
<f:facet name="fastforward">
<t:graphicImage url="/images/arrow-ff.gif" border="1" styleClass="objectList_GraphicImage"/>
</f:facet>
<f:facet name="fastrewind">
<t:graphicImage url="/images/arrow-fr.gif" border="1" styleClass="objectList_GraphicImage"/>
</f:facet>
</t:dataScroller>
</f:facet>
</t:dataTable>
</t:column>
</t:dataTable>
</f:view>
</body>
</html>
/***************************************************************************************************/
/***************************************************************************************************/
/***************************************************************************************************/
Corresponding Managed Bean Java Class code
/***************************************************************************************************/
/***************************************************************************************************/
package com.daffodilwoods.framework.tester;
import javax.faces.model.*;
import java.util.*;
import com.daffodilwoods.framework.test.User;
import javax.faces.model.DataModel;
public class SimpleUserList {
private DataModel users;
private DataModel userGroup;
public SimpleUserList() {
}
public DataModel getUsers(){
System.out.println("SimpleUserList.getUsers()");
List list = new ArrayList();
for (int i = 0; i < 100; i++)
return new ListDataModel(list);
}
public DataModel getUserGroup(){
System.out.println("SimpleUserList.getUserGroup()");
List userGroup = new ArrayList();
for (int i = 0; i < 2; i++)
return new ListDataModel(userGroup);
}
}
/***************************************************************************************************/
/***************************************************************************************************/
/***************************************************************************************************/
Fonfig defination
/***************************************************************************************************/
<managed-bean>
<display-name>list</display-name>
<managed-bean-name>list</managed-bean-name>
<managed-bean-class>com.daffodilwoods.framework.tester.SimpleUserList</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
/***************************************************************************************************/
/***************************************************************************************************/
/***************************************************************************************************/
Problem
/***************************************************************************************************/
1. Duplicate clientId facet first ( I removed all the facet's from <t:dataScroller ... /> )
then it render properly ( i think so.. as it open )
2. When I click the Upper <t:dataScroller ... /> paginator links then it navigate all the dataModel
Attachments
Issue Links
- relates to
-
TOMAHAWK-961 Deleting a row when t:dataList/t:dataTable preserveRowStates=true assigns submitted values to wrong row
- Closed