[
https://issues.jboss.org/browse/RFPL-2972?page=com.atlassian.jira.plugin....
]
Jiří Štefek resolved RFPL-2972.
-------------------------------
Resolution: Done
Should be fixed by commit
https://github.com/richfaces/richfaces-qa/commit/c401344aea4449d645fad738...
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/RichFaces/view/5.0/...
It's a little bit alchemy with the r:validator. I've noticed that there must be at
least one validator (if there are more of them) that works with different event or the
validators will be broken.
The sample was broken, because the input for 'pattern' and 'empty' were
sending 2 ajax request instead of 1 for correct value.
Fix Metamer tests for validation of r:select
--------------------------------------------
Key: RFPL-2972
URL:
https://issues.jboss.org/browse/RFPL-2972
Project: RichFaces Planning
Issue Type: Task
Security Level: Public(Everyone can see)
Components: QE
Affects Versions: 5.0.0.Alpha1
Reporter: Pavol Pitonak
Assignee: Jiří Štefek
Tests for validation in r:select fail. When performed manually, they seem to work fine.
{code}
mvn clean verify -Pjbossas-managed-7-1 -Dtest=TestSelectCSV#testCommonCase
{code}
One difference that I see in richSelect/csv.xhtml file is r:ajax and r:validator order
and configuration.
{code:xml|title=pattern (not working)}
<r:select id="pattern"
defaultLabel="#{richSelectBean.attributes['defaultLabel'].value}"
value="#{richSelectBean.patternValue}" >
<f:selectItems value="#{richSelectBean.validationOptionsPattern}" />
<r:validator event="blur"/>
<r:ajax event="change" render="patternMsg"/>
</r:select>
{code}
{code:xml|title=size (working)}
<r:select id="size"
defaultLabel="#{richSelectBean.attributes['defaultLabel'].value}"
value="#{richSelectBean.sizeValue}" >
<f:selectItems value="#{richSelectBean.validationOptionsSize}" />
<r:ajax event="change" render="sizeMsg"/>
<r:validator event="change"/>
</r:select>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira