Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.0.0-core
-
None
-
None
-
Linux Fedora 15, MySQL 5.x, Apache Geronimo 3.0-Beta-1, MyFaces 2.0.9, Trinidad 2.0.0, Using Facelets
Description
Every time the ManagedBean perform an action such as save, update, delete a row in database, a message is created by using a method inside a static class:
public class FacesUtil {
//...<some more stuff here>
public static void setMessage(String clientid, String message)
{ FacesContext context = FacesContext.getCurrentInstance(); FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, "Info.", message); context.addMessage(clientid, msg); context.renderResponse(); }}
And the message is created on ManagedBean this way:
public void doDelete(ActionEvent event)
{ String message = ""; //<some method relevants actions here....> message = "Record has been deleted"; FacesUtil.setMessage(null,message); }The message is rendered as expected, but MyFaces for some reason, doesn't notice that, and throws a warning message to console:
2012-02-27 11:02:14,398 WARN [RenderResponseExecutor] There are some unhandled FacesMessages, this means not every FacesMessage had a chance to be rendered.
These unhandled FacesMessages are:
- Record has been deleted successfully
Thanks in advance,
Eduardo