Saving new recipe redirected to blank page.

main
tim holloway 2 months ago
parent 34645fc8da
commit e7f373f663
  1. 2
      pom.xml
  2. 6
      src/main/java/com/mousetech/gourmetj/RecipeDetailBean.java

@ -7,7 +7,7 @@
<groupId>com.mousetech.gourmet</groupId>
<artifactId>gourmetj</artifactId>
<version>0.2.6</version>
<version>0.2.7</version>
<packaging>jar</packaging>
<name>GourmetJ</name>

@ -206,8 +206,8 @@ public class RecipeDetailBean implements Serializable {
/**
* After construction and injection, we obtain the recipe ID
* passed to us, if any and load the recipe. It's also stored
* in @see UserSession for the detail editor and
* passed to us, if any, and load the recipe. It's also stored
* in @see UserSession for the detail editor.
*
* @see PictureController.
*/
@ -720,7 +720,7 @@ public class RecipeDetailBean implements Serializable {
}
if (recipeService.save(this.getRecipe())) {
userSession.setRecipe(null);
////////////userSession.setRecipe(null);
return "recipeDetails?faces-redirect=true";
} else {
JSFUtils.addErrorMessage("Save recipe failed");

Loading…
Cancel
Save