New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
submittedValue underspecified #434
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented Unless I'm mistaken, this really just requires tightening the spec. |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
It seems the get/setSubmittedValue() of javax.faces.component.EditableValueHolder
doesn't prescribe a value in case the submitted value was empty. I encountered
this problem when trying to do a validation of a HtmlSelectOneMenu within the
validator of another component (to achieve a 'required' validation of the menu
depending on the value of the validated component).
The MyFaces implementation sets the value of the HtmlSelectOneMenu in this case
to a
NOTHING object from the org.apache.myfaces.shared_impl.renderkit.RendererUtils
class, which seems to be legal according to the specification.
However, if I have to check against this special value, my code isn't portable
between different JSF implementations. So I believe the specification has to
define how this case will be handled.
Environment
Operating System: All
Platform: All
Affected Versions
[2.0]
The text was updated successfully, but these errors were encountered: