diff --git a/primefaces/src/main/java/org/primefaces/component/staticmessage/StaticMessage.java b/primefaces/src/main/java/org/primefaces/component/staticmessage/StaticMessage.java index ac9dd05a50..6f4dec7c99 100644 --- a/primefaces/src/main/java/org/primefaces/component/staticmessage/StaticMessage.java +++ b/primefaces/src/main/java/org/primefaces/component/staticmessage/StaticMessage.java @@ -56,9 +56,9 @@ public Collection getUnobstrusiveEventNames() { @Override public void queueEvent(final FacesEvent event) { - final FacesContext context = getFacesContext(); - final Map params = context.getExternalContext().getRequestParameterMap(); - final String eventName = params.get(Constants.RequestParams.PARTIAL_BEHAVIOR_EVENT_PARAM); + FacesContext context = getFacesContext(); + Map params = context.getExternalContext().getRequestParameterMap(); + String eventName = params.get(Constants.RequestParams.PARTIAL_BEHAVIOR_EVENT_PARAM); if (eventName != null && event instanceof AjaxBehaviorEvent) { final AjaxBehaviorEvent ajaxBehaviorEvent = (AjaxBehaviorEvent) event;