tejapraveen schrieb: > Hi everybody > > Iam new to Jsf and Myfaces.Is there possibility to get the Pipe or Divider > in DataScroller? > > Iam using datascroller in that scroller i want to use pipe(|)symbol.In jsf > or myfaces how to implement that.If any body know the solution for this > please send reply as soon as possible > > example: Like such type of pipe symbol(|) i want to use in between those > number > > < 1 | 2 | 3 | 4| 5 | > > Do you mean the Tomahawk t:dataScroller component?
If so, then that does *not* currently support adding chars between the page numbers. It always just outputs <td>1</td><td>2</td> etc. It does have the ability to set CSS styles on various bits. So you might like to try experimenting with the css :before property. Or try using CSS to set the "border" property on the TD cells that contain the page-numbers, which would look similar. Otherwise you would need to customise the HtmlDataScrollerRenderer class from tomahawk. See methods writePaginatorElementStart writePaginatorElementEnd JSF has a reasonably elegant method for installing custom renderer classes, so you can subclass the tomahawk renderer and just override the above methods. Or you could provide a patch to the standard Tomahawk renderer class to allow a new "paginatorElementBetween" facet to get rendered between each page number; I think that would have a reasonable chance of being accepted for the trunk code - although the next tomahawk release is not going to be for at least a month I think. Regards, Simon

