jsr344-experts@javaserverfaces-spec-public.java.net

[jsr344-experts] Re: Flash API review

From: Edward Burns <edward.burns_at_oracle.com>
Date: Fri, 15 Mar 2013 14:17:31 -0700

>>>>> On Wed, 13 Mar 2013 11:44:39 -0400, Andy Schwartz <andy.schwartz_at_oracle.com> said:

AS> Gang -
AS> A minor comment on the Flash API:

AS> Index: javax/faces/context/Flash.java
AS> ===================================================================
AS> --- javax/faces/context/Flash.java (revision 8845)
AS> +++ javax/faces/context/Flash.java (revision 11719)

AS> + /** <p class="changed_added_2_2">Because <code>null</code>
AS> + * values are not allowed as the source for subclasses of
AS> <code>EventObject</code>,
AS> + * such as {_at_link PostKeepFlashValueEvent} and {_at_link
AS> PostPutFlashValueEvent},
AS> + * this value is substituted for <code>null</code> in the case when a
AS> + * <code>null</code> value is put to or kept in the flash.
AS> + */
AS> + public static final String NULL_VALUE =
AS> "javax.faces.context.Flash.NULL_VALUE";

AS> The "source" for these system events is the key, not the value.

No, it really is for a null value in the flash. The point of this is
for when you have a null value in the flash, and you still need to
publish those related events.

I have clarified it in r11751.

Ed