Table cellspacing

View: New views
6 Messages — Rating Filter:   Alert me  

Table cellspacing

by wadi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All! I would like to know how can I change the cellspacing in a AjaxBeanPropertyTable.
Thanks in advance,
Wadi

Re: Table cellspacing

by wfaler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
sorry for the late reply:
When you create a table, you can provide custom css classes for the rows (think there is a setStyle() method or something).
..after that, it should all be down to css-work.

That being said, one of the areas I'd really like outside help is to give the components more flexibility in terms of their look and feel.

Re: Table cellspacing

by wadi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi wfaler!I think you refer to:
public void setStyles(String headerClass, String firstRowCellClass, String secondRowCellClass, String pagerClass)
 But is there a way changing the cellspacing from here(the header or rows?)?Sorry I'm new to all of this.
THanks in advance,
Regards,
Wadi

Re: Table cellspacing

by wfaler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm no html/css wiz, but I would guess you should be able to do so by creating your own css-file, adding it to the page, and then setting the correct classes in those methods.
HOW you do it in css is not something I know of the bat though. :)

Like I said, skinning/styling of components is probably one of the weaker areas currently in Wicket RAD, and could use some improvement..

Re: Table cellspacing

by wadi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok!Thanks!I'm new to css. but I think I need to put the cellspacing on the <table> class so I think it would be great may be to have a
public void setStyles(String tableClass,String headerClass, String firstRowCellClass, String secondRowCellClass, String pagerClass)
I'll try to find a workaround. Thanks in advance,
Wadi

Re: Table cellspacing

by wfaler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I think you may be right, I will try to add one in the next version.