[
https://jira.jboss.org/jira/browse/RF-764?page=com.atlassian.jira.plugin....
]
Ilya Shaikovsky resolved RF-764.
--------------------------------
Resolution: Rejected
passed label could not implemented properly because of JSF lifecycle limitations and
should not be used. Will be marked in RS.
rich:message: FuncSpec-RF-M-CL-015-1.0. The result is not that
expected
-----------------------------------------------------------------------
Key: RF-764
URL:
https://jira.jboss.org/jira/browse/RF-764
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Environment: richfaces-demo
Reporter: Sergey Smirnov
Assignee: Ilya Shaikovsky
Fix For: Future
FuncSpec-RF-M-CL-015-1.0 passed state rendering
Message should not show "passed" state in case of initial rendering. Any state
of message should be shown only after some submit occurs (after some validation).
The current version does not work like this. The "passed" facet is shown event
the field is not validated.
Example:
<h:form>
<h:panelGrid columns="3">
<h:outputText value="Name:" />
<h:inputText label="Name" id="name" required="true"
value="#{userBean.name}">
<a4j:support event="onblur" ajaxSingle="true" />
</h:inputText>
<rich:message for="name">
<f:facet name="passedMarker">
<h:outputText value="V" />
</f:facet>
<f:facet name="errorMarker">
<h:outputText value="X" />
</f:facet>
</rich:message>
<h:outputText value="Job:" />
<h:inputText label="Job" id="job" required="true"
value="#{userBean.job}">
<a4j:support event="onblur" ajaxSingle="true"/>
</h:inputText>
<rich:message for="job">
<f:facet name="passedMarker">
<h:outputText value="V" />
</f:facet>
<f:facet name="errorMarker">
<h:outputText value="X" />
</f:facet>
</rich:message>
<h:outputText value="Address:" />
<h:inputText label="Address" id="address"
required="true" value="#{userBean.address}">
<a4j:support event="onblur" ajaxSingle="true"/>
</h:inputText>
<rich:message for="address">
<f:facet name="passedMarker">
<h:outputText value="V" />
</f:facet>
<f:facet name="errorMarker">
<h:outputText value="X" />
</f:facet>
</rich:message>
</h:panelGrid>
</h:form>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira