Position 2 Character
jeesl:posToChar(positionAsInteger) converts number to english character, for example 1 will be presented as A, 2 as B and so on.
Position | Character |
---|---|
1 | A |
2 | B |
3 | C |
4 | D |
5 | E |
6 | F |
7 | G |
8 | H |
9 | I |
10 | J |
<p:dataTable var="i" value="#{position2CharacterBean.values}" styleClass="jeesl-datatable">
<p:column headerText="Position">
<h:outputText value="#{i}"/>
</p:column>
<p:column headerText="Character">
<h:outputText value="#{jeesl:posToChar(i)}"/>
</p:column>
</p:dataTable>
Resource not found:
/jeesl/java/org/jeesl/showcase/web/mbean/functions/Position2CharacterBean.java
must be available in the classpath