Hello I'm using Primefaces Data table to display some data and I'm following mechanism shown in below code to display Numbers for Row Indexes.(Its working fine too). My question is :
Is there any way, I can display English Alphabets as row indices like below? I don't want to put alphabets in an array at bean and fetch them on every row render.!
<p:dataTable id="resultTable" var="car" value="#{myBean.carList}" rowIndexVar="rowNum">
<p:column headerText="No.">
#{rowNum+1}
</p:column>
<p:column headerText="Name" >
#{car.name}
</p:column>
</p:dataTable>
EDIT Thanks for all of your answers. I found BalusC(unfortunately he removed the answer) and JavaKid's answers easy then putting Javascript. But there were some problems in those answers so i changed and Here is the answer. If you put &# #{65+(rowNum+1)}; in HTML it throws error saying A decimal representation must immediately follow the "&#" So i changed it a Bit and now its working.
ANSWER
<h:outputText value="&##{64+(rowNum+1)};" escape="false"/>
thanks for every ones answers.