I want to restrict p:inputMask
to numbers only, and I tried the proposed solutions from:
I think that approach is right but I noticed that you don't put value
attribute on inputMask
.
Do you try to put it on?
Edit: These solutions works:
inputMaskTest.xhtml:
Input Mask:
InputMaskView.java:
@ManagedBean(name = "inputMaskView")
@ViewScoped
public class InputMaskView {
private String number;
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
}