I have some code like the below and it works, but instead of showing just a number, I want to show "number%". Here's what I have:
<h:outputtext value="#{somebean.doubleValue}"> <f:convertnumber maxfractiondigits="2"> </h:outputtext> If I put the "%" sign inside the value property, the converter won't work (I believe because the evaluated result is not just a number), but if I put the "%" sign in other outputtext tag, one line break appears between the number and it. I don't want that.
<h:outputtext value="#{somebean.doubleValue}"> <f:convertnumber maxfractiondigits="2"> </h:outputtext> <h:outputtext value="%"> <!--prints a new line--> What's the best way to achieve a "xx.xx%" formatting on jsf?
h:outputtextto display just "%"? Just put % after the first one.