-
-
-
3. Re: DataScroller
bytor99999 May 22, 2007 1:36 PM (in response to bytor99999)Thanks Ilya.
In those facets, is that where you can put the CSS class to use to change the look of the button? -
4. Re: DataScroller
bytor99999 May 22, 2007 8:06 PM (in response to bytor99999)One other thing with that Jira, can those buttons also allow the text you put in the Facet, to not wrap? So if I put say "Next 5" for "fastforward" it appears on the same line and the "5" is not wrapped under it. Also the space between the buttons are a little close.
Thanks. Sorry for being a little nit-picky on those. :) -
5. Re: DataScroller
bytor99999 May 22, 2007 8:18 PM (in response to bytor99999)I noticed lines of code in UIDataScroller.java in the setControls method
if ((rowCount - 1)<=(getFirstRow(dataTable)+getRows(dataTable))){
Maybe the rowCount -1 and <= is the reason why you don't get the "forward" moving buttons when a new page gets created and it only has one row. so (rowCount-1) would equal 0. -
6. Re: DataScroller
bytor99999 May 22, 2007 8:40 PM (in response to bytor99999)OK, I also found through the code that I can use
<f:facet name="first_disabled">
<h:outputText value="First"/>
</f:facet>
And it will display the text "First" in the disabled button.
But I also noticed that the code has
public UIComponent getFirst()
for the enabled buttons, but no getters for the disabled, so you might or might not want to add that to the code.
But I definitely think the docs need to show those disabled facets too.