dev@javaserverfaces.java.net

[JSF 2.0] Application Map and the "VALIDATE_EMPTY_FIELDS_PARAM_NAME" value

From: Matthias Wessendorf <matzew_at_apache.org>
Date: Wed, 2 Dec 2009 15:02:56 +0100

Hi,

reading the JavaDoc for validateValue() on UIInput, I see this section:
<quote>
...
The implementation must obtain the init parameter Map from the
ExternalContext and inspect the value for the key given by the value
of the symbolic constant VALIDATE_EMPTY_FIELDS_PARAM_NAME. If there is
no value under that key, use the same key and look in the application
map from the ExternalContext
...
</quote>

However, I don't a hint on where it get's set on the Application Map?
MyFaces impl currently doesn't call set() (sure that doesn't mean
this is correct). I wonder if this is kinda reserved for extensions or
so (setting the value of the "VALIDATE_EMPTY_FIELDS_PARAM_NAME" on the
Application Map)?

Thanks,
Matthias

-- 
Matthias Wessendorf
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf