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

[jsr344-experts] Re: [jsr344-experts mirror] Re: Re: PPS Discussion

From: Andy Schwartz <andy.schwartz_at_oracle.com>
Date: Thu, 31 May 2012 13:05:20 -0400

On 5/31/12 11:17 AM, Kito Mann wrote:
>
> <http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-723>
>
>
> Minor API comment: I would prefer that we go with an enum-based
> value rather than a boolean - ie. I would prefer something like:
>
> - submit = partial/full
>
>
> Why?

This is due to the many cases where I initially though that I could
represent an attribute/property value as a boolean only to realize later
that there is actually a third state that I want/need to support. Going
with an enum-based value provides this flexibility without any
significant downside.

Andy