[jboss-user] [JBoss Seam] - [2.0beta1]s:button + pages.xml behaviour change
ellenzhao
do-not-reply at jboss.com
Wed Jul 4 10:26:53 EDT 2007
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
More information about the jboss-user
mailing list