View Full Version : Curious about examples

7 Nov 2006, 4:40 PM
Has anyone used the grid to interface with a database either through XML or some other way?
Would it be possible to see the completed working example which is on your web site?
We had a guy here working on this for a couple of days and he said he couldn't get it to work? I have worked with grids before interfaced to a database using XML, but nothing as feature rich as this.
I was wanting to set up the example on my web site and test it and see if I could work backward from a full working example.

7 Nov 2006, 4:48 PM
Hadn't read through and seen the
A Grid Component for Yahoo! UI - Part 1,2,3 Yet. I'll start there.

8 Nov 2006, 7:41 PM


9 Nov 2006, 1:22 AM
Sorry, it's internal-only, but I have a beautiful system which links up with Hibernate (http://www.hibernate.org/) on the backend via DWR (http://getahead.ltd.uk/dwr/) calls to create grids VERY easily.

A filter page needs only to contain an input called "type" which contains the driving class name for an HQL query.

Filter input fields are named the same as the Hibernate property names of an Entity, or from<property name> to<property name>

A DWR call is made to a helper class sending the uurlencoded String of the filter forms. The helper class matches the input names up against known properties on the entity and creates an HQL query which is used to create a java.util.List of Object[] where each object in the array is a column.

This helper class is stashed in the HttpSession, and its ID returned.

Also returned is an array of GridColumn objects which is used to initialize my ColumnMode.

My DataModel is a custom one which uses DWR to communicate with the helper class in the session using the ID returned to which it delegates requests for data.

My result is a very neat ListManager class which can accepts filter pages, and preview pages, and allows detail of the selected line. Filters and the resulting Grid are tabs in the "north" Region, details are viewed in the "center" Region.

var foo = createDialog("CountrySubEntity View");
dl = new ListManager(

You can pop up as many as you want in containers all over your page.

9 Nov 2006, 1:30 AM

9 Nov 2006, 3:28 AM
For a peek at the power of yui-ext. In that latest dialog, I've filtered by "New" in the name field.


9 Nov 2006, 1:28 PM

its looks great...!

can you shared the code ?


14 Nov 2006, 4:18 PM
Hi, could you please tell me how you got the borderlayout to work within a dialog? I have some trouble making it work. Thanks in advance!


15 Nov 2006, 8:19 AM
Seldon, use a LayoutDialog