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
Signature on UIViewParameter.getSubmittedValue should not return String, but Object. #1063
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented Sending jsf-api/src/main/java/javax/faces/component/UIViewAction.java |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1063 http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-787 http://java.net/jira/browse/JAVASERVERFACES-2369 SECTION: Modified FilesM jsf-ri/src/main/java/com/sun/faces/application/view/StateManagementStrategyImpl.java
M jsf-ri/src/main/java/com/sun/faces/config/processor/FaceletTaglibConfigProcessor.java
M jsf-api/src/main/java/javax/faces/component/UIViewParameter.java
|
@glassfishrobot Commented |
@glassfishrobot Commented |
|
API docs states:
==============
getSubmittedValue
public java.lang.String getSubmittedValue()
Assume that the submitted value is always a string.
Specified by:
getSubmittedValue in interface EditableValueHolder
Overrides:
getSubmittedValue in class UIInput
Since:
2.0
So UIViewparameter extends UIInput, which implements EditableValueHolder, this method is a "EditableValueHolder" interface method and the signature should stay the same.
The below code shows how this is broken in this state now.
EditableValueHolder holder = (EditableValueHolder) new UIViewParameter();
holder.setSubmittedValue(Boolean.TRUE);
if (!((Boolean)holder.getSubmittedValue()))
{ System.out.println("FAILED"); }
Environment
N/A
The text was updated successfully, but these errors were encountered: