I have this JSF code which I use to create table pagination table:
<h:commandButton
value="first"
action="#{registeredAttendies.pageFirst}"
disabled="#{registeredAttendies.firstRow == 0}"
styleClass="icon icon-xs icon-default mdi mdi-arrow-left-bold"
>
<f:ajax render="@form" />
</h:commandButton>
........
I would like to apply Bootstrap style for this JSF code but the result is not looking good:
<nav>
<ul class="pagination-classic">
<li><a href="#" class="icon icon-xs icon-default mdi mdi-arrow-left-bold"></a></li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#" class="icon icon-xs mdi mdi-arrow-right-bold"></a></li>
</ul>
</nav>
I tried to use:
<h:commandButton value="first"
action="#{registeredAttendies.pageFirst}"
disabled="#{registeredAttendies.firstRow == 0}"
styleClass="icon icon-xs icon-default mdi mdi-arrow-left-bold"
>
<f:ajax render="@form" />
</h:commandButton>
But the result is not good for some reason. Do you know how I can apply the style properly?