Set the converter for the spinner in its constructor, like this:
public class UISpinner extends UIInput { ... public UISpinner() { setConverter(new IntegerConverter()); // to convert the submitted value setRendererType(null); // this component renders itself } ... }
Here is the complete code for UISpinner.java.