Hi,

I think the question was how to modify the *header* of the column and not the 
cell’s content. Therefore you only need to do the following:

@Override
Component getHeader(String componentId) {
    return new MyFancyHeaderPanel(componentId);
}

… in your PropertyColumn (anonymous) subclass.

Cheers,
   Tom


> On 09.03.2016, at 19:09, Francois Meillet <francois.meil...@gmail.com> wrote:
> 
> If you want to your own html, you need to create an object that extends 
> PropertyColumn
> 
> Let's say that XXXPropertyColumn extend PropertyColumn
> 
> You need to override the populateItem(Item<ICellPopulator<T>> item, String 
> componentId, IModel<T> rowModel) method
> 
> for example
> 
> @Override
> public void populateItem(Item<ICellPopulator<T>> item, String componentId, 
> IModel<T> rowModel) {
>       item.add(new YYYPanel(item, componentId, rowModel));
> }
> 
> Then you create the YYYPanel.java and the html file 
> XXXPropertyColumn$YYYPanel.html with your own design.
> 
> 
> François 
> 
> 
> 
> 
> Le 9 mars 2016 à 18:41, andre seame <andre1...@hotmail.fr> a écrit :
> 
>> 
>> Hello,
>> 
>> 
>> In DataTableFilterToolbarPag, we use columns.add(new PropertyColumn<Contact, 
>> String> ...
>> 
>> 
>> I would like to modify the content of the header of this column.
>> 
>> 
>> Must I do "replace the header component of the header of column" ? But how 
>> to do that?
>> 
>> 
>> Must i my own column objects? I imlagine that the header (th) is defined by 
>> the column. But how to do that?
>> 
>> 
>> Thanks,
>> 
>> PHL.
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to