Re: [Proposal] messages stored but not tied to JSF system.

2013-10-21 Thread Rudy De Busscher
How the information is sent back to the clients is something for each project individual. We can't generify that in DeltaSpike, I guess. I have the following filter *@Provider* *public class WrapResponseFilter implements ContainerResponseFilter {* *@Override* *public void filter(Container

Re: [Proposal] messages stored but not tied to JSF system.

2013-10-21 Thread John D. Ament
We face this issue as well, but more generally how to handle messaging back to REST clients. For example, when we're not returning back a 200 OK we include some messages back for error handling to display to the GUI what happened. These could be complex objects with substitutions as well. To do

[Proposal] messages stored but not tied to JSF system.

2013-10-21 Thread Rudy De Busscher
All, With the JsfMessage interface, you can add messages to the FacesContext so that they are displayed on screen the next rendering. But what if your CDI beans are used within a JSF context AND a REST context. When processing the REST request, there is no facesContext available and exceptions oc