I am using <h:messages globalOnly="true"/>
to display error messages.
When error comes, it shows in below format.
Any idea how can I remove this dot and spaces and just show the error?
You can make the messages render as table cells instead of list items:
<h:messages globalOnly="true" layout="table"/>
Documentation for h:messages
is here.