Skip to content

Commit 8e3555b

Browse files
cleanup
1 parent ca9cb7c commit 8e3555b

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

docs/asciidoc/context.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
----

modules/jooby-apt/src/test/java/tests/validation/BeanValidationsController.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)