JSF in rendered property java.lang.NumberFormatException: For input string: "0,00"

518 views Asked by At

I have the following tag in a table row in my jsf page (jspx):

<af:image source="/resources/img/up.png" id="img1" rendered="#{row['percentage'] ge 0}"/>

From the error I can tell that row['percentage'] is equal to "0,00" which causes parsing errors for JSF

I tried changing the locale by the following:

  1. <f:view locale="#{pageFlowScope.backing_bean.locale}">

    Where in my bean I have:

    private Locale locale = new Locale("fr");

  2. I tried to use:

    FacesContext.getCurrentInstance().getViewRoot().setLocale(locale);

But nothing works!

0

There are 0 answers