[
http://jira.jboss.com/jira/browse/RF-764?page=all ]
Nick Belaevski updated RF-764:
------------------------------
Fix Version/s: Future
(was: 3.2.2)
rich:message: FuncSpec-RF-M-CL-015-1.0. The result is not that
expected
-----------------------------------------------------------------------
Key: RF-764
URL:
http://jira.jboss.com/jira/browse/RF-764
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Environment: richfaces-demo
Reporter: Sergey Smirnov
Assigned To: Nick Belaevski
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:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira