Saving new recipe redirected to blank page.
This commit is contained in:
parent
34645fc8da
commit
e7f373f663
2
pom.xml
2
pom.xml
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<groupId>com.mousetech.gourmet</groupId>
|
<groupId>com.mousetech.gourmet</groupId>
|
||||||
<artifactId>gourmetj</artifactId>
|
<artifactId>gourmetj</artifactId>
|
||||||
<version>0.2.6</version>
|
<version>0.2.7</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>GourmetJ</name>
|
<name>GourmetJ</name>
|
||||||
|
|
|
@ -206,8 +206,8 @@ public class RecipeDetailBean implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* After construction and injection, we obtain the recipe ID
|
* After construction and injection, we obtain the recipe ID
|
||||||
* passed to us, if any and load the recipe. It's also stored
|
* passed to us, if any, and load the recipe. It's also stored
|
||||||
* in @see UserSession for the detail editor and
|
* in @see UserSession for the detail editor.
|
||||||
*
|
*
|
||||||
* @see PictureController.
|
* @see PictureController.
|
||||||
*/
|
*/
|
||||||
|
@ -720,7 +720,7 @@ public class RecipeDetailBean implements Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (recipeService.save(this.getRecipe())) {
|
if (recipeService.save(this.getRecipe())) {
|
||||||
userSession.setRecipe(null);
|
////////////userSession.setRecipe(null);
|
||||||
return "recipeDetails?faces-redirect=true";
|
return "recipeDetails?faces-redirect=true";
|
||||||
} else {
|
} else {
|
||||||
JSFUtils.addErrorMessage("Save recipe failed");
|
JSFUtils.addErrorMessage("Save recipe failed");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user