I had this code always worked prior to the migration to 2.0 beta1:
in the new-recipe.xhtml:
| <s:button value="Cancel Creating New Recipe"
| action="#{recipeManager.cancelNewRecipe}" view="/home.xhtml" />
|
in the pages.xml:
| <page view-id="/new-recipe.xhtml">
| <navigation from-action="#{recipeManager.cancelNewRecipe}">
| <redirect view-id="/home.xhtml" />
| </navigation>
| </page>
|
in the RecipeManagerImpl.java:
| @End
| public void cancelNewRecipe() {
| entityManager.remove(this.recipe);
| }
But now the page simply did not redict, I had to change the code in
new-recipe.xhtml to make the redirection happen:
| <s:button value="Cancel Creating New Recipe"
| action="#{recipeManager.cancelNewRecipe}" view="/home.xhtml" />
|
Anybody knows why? Thanks in advance!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060495#4060495
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060495
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user