[
https://issues.jboss.org/browse/SEAMFACES-47?page=com.atlassian.jira.plug...
]
Milan Pevec commented on SEAMFACES-47:
--------------------------------------
I have the same problem, any workaround so far ?
I've tried with latest 3.0.1 and 3.0.2 using Glassfish 3.1.1.
UIInputContainer keeps invalid state too long
---------------------------------------------
Key: SEAMFACES-47
URL:
https://issues.jboss.org/browse/SEAMFACES-47
Project: Seam Faces
Issue Type: Bug
Components: UI Components
Affects Versions: 3.0.0.Alpha3
Reporter: Nicklas Karlsson
Assignee: José Freitas
Fix For: Future
Given a
<p:input>
<h:inputText value="#{credentials.username}" />
</p:input>
<p:input>
<h:inputText value="#{credentials.password}" />
</p:input>
<h:commandButton value="Login" action="#{credentials.login}"
/>
and a
@Model
public class Credentials {
@NotNull
private String username;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
@NotNull
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
private String password;
public void login() {
System.out.println(username);
System.out.println(password);
}
}
with
<context-param>
<param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name>
<param-value>true</param-value>
</context-param>
and a modified input.xhtml that outputs #{cc.attrs.invalid}
you submit a blank form and get "true" and correct message for both fields,
then you enter a value in the second field and re-submit and the messages are correct but
both fields still show true for the invalid attribute output (making it impossible to use
the attr for rendered attributes if e.g. an error image)
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira