any JSON request you make to the server to render html can be replaced by a single request to the server that replaces HTML. It's simpler to do the latter.
Never trust the state of the client... Never trust client's input...
No idea what JSF is. Sorry it didn't give you access to the data you needed when you rendered files.