0

I'm using,

  • PrimeFaces 5.1
  • JSF 2.2
  • Java 8

When I bind a <p:inputText> to an int property, it automatically fills with 0. Here's some code:

<h:outputText value="Number"/>

<p:inputText styleClass="inputNumero" 
             required="true"
             requiredMessage="Field NUMBER cannot be empty!"
             value="#{myBean.number}"/>

myBean.number is an int.

Anyone knows if it's possible?

Tiny
  • 27,221
  • 105
  • 339
  • 599
AndreDuarte
  • 784
  • 1
  • 5
  • 21

0 Answers0