[seam-issues] [JBoss JIRA] Commented: (SEAMFACES-179) s:viewaction not invoked with Mojarra 2.1.2
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Tue Jul 26 13:24:23 EDT 2011
[ https://issues.jboss.org/browse/SEAMFACES-179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616541#comment-12616541 ]
Brian Leathem commented on SEAMFACES-179:
-----------------------------------------
I've written some JSFUnit/Arquillian tests for the viewAction, currently targeting JBoss AS6 as a baseline.
There are two tests (available in faces/fetaure/jsfunit_arquillian branch):
// testing the viewAction loading data into a property
@Test
@InitialPage("/load_data.xhtml")
public void checkDataLoad(JSFServerSession server,
JSFClientSession client) throws IOException {
Assert.assertEquals("/load_data.xhtml", server.getCurrentViewID());
Assert.assertTrue(client.getPageAsText().contains("Data Loaded"));
}
// testing viewAction navigation
@Test
@InitialPage("/goto_result.xhtml")
public void checkNavigation(JSFServerSession server,
JSFClientSession client) throws IOException {
Assert.assertEquals("/result.xhtml", server.getCurrentViewID());
Assert.assertTrue(client.getPageAsText().contains("Result page"));
}
The first test works, but the second one fails with the server.log stacktrace:
https://gist.github.com/1078369
I verified this failure with a manually created example app (available
in faces/examples on the develop branch).
> s:viewaction not invoked with Mojarra 2.1.2
> -------------------------------------------
>
> Key: SEAMFACES-179
> URL: https://issues.jboss.org/browse/SEAMFACES-179
> Project: Seam Faces
> Issue Type: Bug
> Affects Versions: 3.0.2
> Environment: JBoss 6.1.0-SNAPSHOT (Hudson build) with updated Weld 1.1.1-Final and updated Mojarra 2.1.2
> Reporter: Sebastian Sachtleben
> Assignee: Brian Leathem
> Fix For: 3.0.3
>
>
> s:viewAction will not invoke after updating to Mojarra 2.1.2.
> Tested with:
> <f:metadata>
> <s:viewAction action="#{myBean.validate}"/>
> </f:metadata>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list