Re: GridView for A-Symmetric tables - issues
Someone asked me for the HTML code also and I had similar off forum queries earlier on this post. Fwiw adding HTML sample code to compliment the Java code for this use case: ..hope its useful for anyone else looking for the same. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/GridView-for-A-Symmetric-tables-issues-tp2953859p3506434.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GridView for A-Symmetric tables - issues
Sorry for such a long delay on creating a JIRA, was trying to earn a living :) https://issues.apache.org/jira/browse/WICKET-3327 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/GridView-for-A-Symmetric-tables-issues-tp2953859p3215230.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GridView for A-Symmetric tables - issues
cellItem.add(new SimpleAttributeModifier( "rowspan", assymetricDescriptor.getRowsMerged()+"")); cellItem.add(new SimpleAttributeModifier( "colspan", assymetricDescriptor.getColsMerged()+"")); } rowView.add(cellItem); } //end-if cellItem is null } else if (!currentCellEmpty(row, col)) { //Called for Trailing cells that do not have data associated with them //The !currentCellEmpty(row, col) condition ensures merges cells are ignored completely cellItem = newEmptyItem(newChildId(), col); if (cellItem != null) { populateEmptyItem(cellItem); rowView.add(cellItem); } } } // increase row - row++; } //while (items.hasNext()); -Original } } ... ... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/GridView-for-A-Symmetric-tables-issues-tp2953859p3007715.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GridView for A-Symmetric tables - issues
Arjun Dhar wrote: > > Hi, > I've solved this problem by writing a new implementation of DataViewBase. > GridView did not seem appropriate to simply extend due to a few reasons. > (It assumes Symmetry for the most in its code). > > This Code can merge areas within the GRID and extract data from the data > model accordingly and can be further customized for Assymetric Grids. > > I want to submit this code for review and then into the code base. What is > the process? > Note: This code was over 1.4.9 so I'll take the latest update to see if > there are any changes I need to factor in, but in the mean time lemme > know! > Hi, could you share the code :) ? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/GridView-for-A-Symmetric-tables-issues-tp2953859p3007330.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GridView for A-Symmetric tables - issues
attach it to a jira issue, post the url back here -igor On Fri, Oct 8, 2010 at 9:57 AM, Arjun Dhar wrote: > > Hi, > I've solved this problem by writing a new implementation of DataViewBase. > GridView did not seem appropriate to simply extend due to a few reasons. (It > assumes Symmetry for the most in its code). > > This Code can merge areas within the GRID and extract data from the data > model accordingly and can be further customized for Assymetric Grids. > > I want to sumit this code for review and then into the code base. What is > the process? > Note: This code was over 1.4.9 so I'll take the latest update to see if > there are any changes I need to factor in, but in the mean time lemme know! > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/GridView-for-A-Symmetric-tables-issues-tp2953859p2968709.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GridView for A-Symmetric tables - issues
Hi, I've solved this problem by writing a new implementation of DataViewBase. GridView did not seem appropriate to simply extend due to a few reasons. (It assumes Symmetry for the most in its code). This Code can merge areas within the GRID and extract data from the data model accordingly and can be further customized for Assymetric Grids. I want to sumit this code for review and then into the code base. What is the process? Note: This code was over 1.4.9 so I'll take the latest update to see if there are any changes I need to factor in, but in the mean time lemme know! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/GridView-for-A-Symmetric-tables-issues-tp2953859p2968709.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
GridView for A-Symmetric tables - issues
Hi, I'm playing with the following table/grid structure: +--+-+-+ | | | | | +-+-+ | | | | +--+-+-+ || | | | +--+-+-+ ..where the top-left cell spans 2 rows & 2 columns. The GridView class in the "protected void addItems(Iterator> items)" method has a do {...} while (); loop. This does not respect the number of rows specified when calling .setRows(); ..On overriding this class and making the loop restrict to Number of rows strict, on Pagination the following issues come: 1. [SOLVED] The DataProvider, the "public Iterator iterator(int first, int count)" needs to be adjusted to accommodate that "first" will correspond to an adjusted value (less my the number of cells merged. Example: In a Table where one call is 2x2. Then 1 cell occupies 4 cells. Therefore Num of merged cells = 3. That means This table can accommodate 2 less items from the Dataprovider. I'm able to fix this also by adjusting the calculation to calculate the actual "first" 2. [NOT SOLVED YET] The Size the DataProvider "@Override public int size()" returns cannot change to other than the actual size. But the Paginator stops short and the remaining Data Items are cut off. ..Am not sure where the issue is conceptually: Grid, paginator, DataProvider. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/GridView-for-A-Symmetric-tables-issues-tp2953859p2953859.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org