hi,

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";
xmlns:wicket="http://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=blob_plain;f=wicket-core/src/main/resources/META-INF/wicket-1.5.xsd;hb=master";>
    


                
            <wicket:container wicket:id="topToolbars"></wicket:container>
                
                <tfoot>
                        <wicket:container wicket:id="bottomToolbars"
class="fan-nav"></wicket:container>
        </tfoot>
                
                        

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

        

</wicket:panel>


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>>();
        columns.add(name);
        columns.add(fans);
 
table = new OfferTable<OfferData,String>("OffersTable", columns,
dataProvider, 5) {
        
            private static final long serialVersionUID =
8235090332329499560L;

            @Override
            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.setOutputMarkupId(true);
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: 
http://apache-wicket.1842946.n4.nabble.com/Extending-the-DataTable-class-doesnt-work-tp4664952p4664962.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

Reply via email to