i'm still trying to fix my initial issue where i have a customized DataTable
class. I have a panel and inside that i have the table i'm extended from the
Data Table. 

the code for my extended table is this. 

public class OfferTable<T,S> extends DataTable<T,S> {
        private static final long serialVersionUID = 1L;

        public OfferTable(String id, List<IColumn&lt;T, S>> columns,
IDataProvider<T> dataProvider, int rowsPerPage) {
                super(id, columns, dataProvider, rowsPerPage);


and i have the corresponding markup file for this class. 

<wicket:panel xmlns="http://www.w3.org/1999/xhtml";

            <wicket:container wicket:id="topToolbars"></wicket:container>
                        <wicket:container wicket:id="bottomToolbars"

<div class="last-row-bottom-border"></div>



i'm creating a instance out of this Table class and placing it in my panel. 

List<IColumn&lt;OfferData, String>> columns = new
ArrayList<IColumn&lt;OfferData, String>>();
table = new OfferTable<OfferData,String>("OffersTable", columns,
dataProvider, 5) {
            private static final long serialVersionUID =

            protected Item newRowItem(String id, int index, IModel model) {
                Item item = new Item(id, index, model);
                item.add(new AttributeModifier("class", new
Model<String>(index % 2 == 0 ? "current"
                        : "altrow")));
                return item;

table.addTopToolbar(new AjaxFallbackHeadersToolbar(table, dataProvider));

when  i do this the table does not gets generated. i cant find any compile
time errors or runtime errors. 
what am i doing wrong in here. 


View this message in context: 
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

Reply via email to