File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
modules/jooby-apt/src/test/java/tests/validation Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -576,7 +576,7 @@ a javadoc:Session[] but the lifecycle is shorter: *data is kept for only one req
576576 });
577577
578578 post("/save", ctx -> {
579- ctx.flash("success", "Item created"); <1>
579+ ctx.flash().put( "success", "Item created"); <1>
580580 return ctx.sendRedirect("/"); <2>
581581 });
582582----
@@ -589,7 +589,7 @@ a javadoc:Session[] but the lifecycle is shorter: *data is kept for only one req
589589 }
590590
591591 post("/save") { ctx ->
592- ctx.flash("success", "Item created") <1>
592+ ctx.flash().put( "success", "Item created") <1>
593593 ctx.sendRedirect("/") <2>
594594 }
595595----
Original file line number Diff line number Diff line change @@ -22,12 +22,6 @@ public Bean validateFormBean(@Valid @FormParam Bean bean) {
2222 return bean ;
2323 }
2424
25- // todo: revive when flash `toNullable` will be fixed
26- // @POST("/validate/flash-bean")
27- // public Bean validateFlashBean(@Valid @FlashParam Bean bean) {
28- // return bean;
29- // }
30-
3125 @ POST ("/validate/bind-param-bean" )
3226 public Bean validateBindParamBean (@ Valid @ BindParam Bean bean ) {
3327 return bean ;
You can’t perform that action at this time.
0 commit comments