We can achieve this behavior by encoding the spinner with JavaScript.
This can be obtained through a utility method:
public static String getFormId(FacesContext context, UIComponent component) { UIComponent parent = component; while (!(parent instanceof UIForm)) parent = parent.getParent(); return parent.getClientId(context); }