In a web application the management of entities is realized with almost boiler plate CRUD logic. After the creation of an entity the browser shows a page where a datagrid lists the most important fields of the entity formatted in the proper way. The customer wants an email with a summary of the entity data. Is it possible to ask the jsf engine to process a simplified jsf page and use the result as the email body ? That way I could create a jsf page similar to the one used for entity Read operation and I could easily format the fields inside jsf itself (for example date fields).
After searching in internet I only found a partial solution, the evaluation of el inside a string
What I miss most is:
1 - the possibility to create alias such as
<ui:param name="item" value="#{myEntityController.selected}" />
2 -a way to choose the date format without calling a dedicated function in the controller (managed bean).
About point 1 I found this old post according to which the solution is implementation dependent.
To summarize I would like to create the email body from jsf, if it is not possible I would like to overcome point 1 and 2