View Full Version : ExtTLD, a JSP taglib generator.
rogusan
22 Jan 2008, 12:07 AM
Hi, check this http://www.exttld.com/
Roadmap
Hibernate integration - HibernateStore component
DWR integration etc.
Eclipse plugin
UX Tags: Ext.ux.*, Ext.portal.*, Ext.feedreader.*, Ext.desktop.*
Regards.
elangesk
20 May 2008, 6:11 AM
Hi All,
I have grid using ExtTld on jsp. From Struts 2.0 Action returnes a List object(java.util) namely users and I have used this users List to contruct Grid sucessfully. I want to know how implement the pagination for this grid.
My Actionclass sinppet :
//import statments;
public class UserAction extends ActionSupport {
private UserService userService = new UserServiceImpl();
private List<User> users;
public List<User> getUsers() {
return users;
}
public void setUsers(List<User> users) {
this.users = users;
}
public String userList(){
users = userService.getAllUsers("from User order by userId desc"); // The users List will return the users from DB
return "success";
}
}
On Jsp page snipset:
<ext:body>
<ext:viewport>
<ext:panel id="userListPanel" layout="form" >
<ext:grid.gridPanel title="User List" id="userListGrid" footer="true" >
<ext:grid.columnModel >
<ext:grid.rowNumberer />
<ext:grid.column header="Username" sortable="true" />
<ext:grid.column header="Name" sortable="true"/>
<ext:grid.column header="Company Name" sortable="true"/>
<ext:grid.column header="Email" sortable="true"/>
<ext:grid.column header="Country" sortable="true" />
<ext:grid.column header="State" sortable="true" />
</ext:grid.columnModel>
<s:iterator value="users">
<ext:grid.row>
<ext:grid.rowCell> <s:property value="name" /> </ext:grid.rowCell>
<ext:grid.rowCell> <s:property value="firstname" /> <s:property value="lastname" /> </ext:grid.rowCell>
<ext:grid.rowCell> <s:property value="institution" /> </ext:grid.rowCell>
<ext:grid.rowCell> <s:property value="email" /> </ext:grid.rowCell>
<ext:grid.rowCell> <s:property value="country" /> </ext:grid.rowCell>
<ext:grid.rowCell> <s:property value="state" /> </ext:grid.rowCell>
</ext:grid.row>
</s:iterator>
<ext:pagingToolbar id="paging" pageSize="5" displayInfo="true" displayMsg="Displaying Users {0} - {1} of {2}" emptyMsg="No Recordto Display" autoShow="true">
</ext:pagingToolbar>
</ext:grid.gridPanel>
</ext:panel>
</ext:viewport>
</ext:body>
I could not bring the pagination with grid on the above, kindly let met know how implement the pagination with the grid using ExtTld.
Thanks in Advance.
Regards,
K.Elanges
Software Engineer.
andredecotia
25 Aug 2010, 6:29 AM
good question... I am also searching for it...
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.