As far as I know you can either
convert
applicationRefId
to String before passing it to messageTagor apply formatting in your resource bundle
application.success=Application {0, number, #} successfully submitted
Second solution documentation
From the MessageFormat
documentation
FormatElement: { ArgumentIndex } { ArgumentIndex , FormatType } { ArgumentIndex , FormatType , FormatStyle }