[JBoss JIRA] (RFPL-2972) Fix Metamer tests for validation of r:select
by Jiří Štefek (JIRA)
[ 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
10 years, 12 months
[JBoss JIRA] (RFPL-2956) Test RichFaces with JBoss Tools
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/RFPL-2956?page=com.atlassian.jira.plugin.... ]
Juraj Húska commented on RFPL-2956:
-----------------------------------
Add 1-3: It went smoothly.
Add 4: waiting till the artifacts are promoted to Maven Central
> Test RichFaces with JBoss Tools
> -------------------------------
>
> Key: RFPL-2956
> URL: https://issues.jboss.org/browse/RFPL-2956
> Project: RichFaces Planning
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: QE
> Reporter: Pavol Pitonak
> Assignee: Juraj Húska
> Fix For: 5.0.0.Alpha1
>
>
> # create a new Ant project and deploy it to JBoss AS 7 and Tomcat 7
> # create a new Maven project and deploy it to JBoss AS 7 and Tomcat 7
> # try to import existing Maven project
> # create new project from JBoss Central
> add 4.
> According to the RFPL-2204 it should be verified that the project can be generated only from Maven Central, steps to do that:
> In addition to this, a manual verification of the archetype in JBoss tools is required. Steps to test a SANPSHOT of the archetype in JBoss tools are as follows:
> (03:05:35 PM) Snjeza: you can create project example user site pointing to whatever project example descriptor you want
> (03:06:09 PM) bleathem: Snjeza: how do you do that?
> (03:09:12 PM) Snjeza: bleathem: Call Window>Preferences>JBoss Tools>Project Examples and click the Add button. Project example xml file can be in your local file system
> (03:09:53 PM) bleathem: Snjeza: and how do I make a project example xml file? Can I just copy one from somehwere else?
> (03:15:10 PM) Snjeza: bleathem: you can copy the following http://download.jboss.org/jbosstools/examples/project-examples-shared-3.3... and change the version of your richfaces archetype
> (03:33:58 PM) Snjeza: bleathem: You have to check the Show experimental sites checkbox if you want user sites to be shown
--
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
10 years, 12 months