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
UIOutput.getValue() should return the local value of the component if it has been set, even if null. #566
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
1 similar comment
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented Consider this testcase: request.setAttribute("foo", "bar"); {foo} ")); In this code, "test" is an instance of UIInput. Because we have The root cause of all of the trouble here is that when we added I've taken the hit now, and with that additional change, and changing I'm re-running the full test suite to make sure. |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
Consider:
for example:
<h:form>
<h:inputText id="input1" required="#
{true}
"/>
<h:message for="input1"/>
<h:inputText id="input2" value="#
{testBean.value}
">
<f:convertNumber integerOnly="true"/>
</h:inputText>
<h:message for="input2"/>
<h:commandButton/>
</h:form>
public class TestBean {
private String input1;
private Integer input2 = 1;
...
}
from browser:
1. Enter input1 empty text.
2. Enter input2 empty text.
3. submit.
results:
I hope:
Environment
Operating System: All
Platform: Macintosh
Affected Versions
[1.2]
The text was updated successfully, but these errors were encountered: