@Override @Deprecated public Messages messages() { return wrapped.messages(); } }
@Override @Deprecated public Messages messages() { return wrapped.messages(); } }
@Override @Deprecated public Messages messages() { return wrapped.messages(); } }
@Override @Deprecated public DynamicForm bindFromRequest(String... allowedFields) { return bind(play.mvc.Controller.ctx().messages().lang(), play.mvc.Controller.request().attrs(), requestData(play.mvc.Controller.request()), requestFileData(play.mvc.Controller.request()), allowedFields); }
/** * Binds request data to this form - that is, handles form submission. * * @param allowedFields the fields that should be bound to the form, all fields if not specified. * @return a copy of this form filled with the new data * * @deprecated Deprecated as of 2.7.0. Use {@link #bindFromRequest(Http.Request, String...)} instead. */ @Deprecated public Form<T> bindFromRequest(String... allowedFields) { return bind(play.mvc.Controller.ctx().messages().lang(), play.mvc.Controller.request().attrs(), requestData(play.mvc.Controller.request()), requestFileData(play.mvc.Controller.request()), allowedFields); }
/** * Binds request data to this form - that is, handles form submission. * * @param allowedFields the fields that should be bound to the form, all fields if not specified. * @return a copy of this form filled with the new data * * @deprecated Deprecated as of 2.7.0. Use {@link #bindFromRequest(Http.Request, String...)} instead. */ @Deprecated public Form<T> bindFromRequest(String... allowedFields) { return bind(play.mvc.Controller.ctx().messages().lang(), play.mvc.Controller.request().attrs(), requestData(play.mvc.Controller.request()), requestFileData(play.mvc.Controller.request()), allowedFields); }
/** * @deprecated Deprecated as of 2.7.0. */ @Deprecated protected Lang ctxLang() { return Http.Context.safeCurrent().map(ctx -> ctx.messages().lang()).orElse(null); }
/** * @deprecated Deprecated as of 2.7.0. */ @Deprecated protected Lang ctxLang() { return Http.Context.safeCurrent().map(ctx -> ctx.messages().lang()).orElse(null); }
/** * @deprecated Deprecated as of 2.7.0. */ @Deprecated protected Lang ctxLang() { return Http.Context.safeCurrent().map(ctx -> ctx.messages().lang()).orElse(null); }
/** * Binds request data to this form - that is, handles form submission. * * @param allowedFields the fields that should be bound to the form, all fields if not specified. * @return a copy of this form filled with the new data * * @deprecated Deprecated as of 2.7.0. Use {@link #bindFromRequest(Http.Request, String...)} instead. */ @Deprecated public Form<T> bindFromRequest(String... allowedFields) { return bind(play.mvc.Controller.ctx().messages().lang(), play.mvc.Controller.request().attrs(), requestData(play.mvc.Controller.request()), requestFileData(play.mvc.Controller.request()), allowedFields); }
@Override @Deprecated public DynamicForm bindFromRequest(String... allowedFields) { return bind(play.mvc.Controller.ctx().messages().lang(), play.mvc.Controller.request().attrs(), requestData(play.mvc.Controller.request()), requestFileData(play.mvc.Controller.request()), allowedFields); }
@Override @Deprecated public DynamicForm bindFromRequest(String... allowedFields) { return bind(play.mvc.Controller.ctx().messages().lang(), play.mvc.Controller.request().attrs(), requestData(play.mvc.Controller.request()), requestFileData(play.mvc.Controller.request()), allowedFields); }
/** * The current lang * * @return the current lang * * @deprecated Deprecated as of 2.7.0. <a href="https://www.playframework.com/documentation/latest/JavaHttpContextMigration27">See migration guide.</a>. */ @Deprecated public Lang lang() { if (lang != null) { return lang; } else { return messages().lang(); } }
/** * The current lang * * @return the current lang * * @deprecated Deprecated as of 2.7.0. <a href="https://www.playframework.com/documentation/latest/JavaHttpContextMigration27">See migration guide.</a>. */ @Deprecated public Lang lang() { if (lang != null) { return lang; } else { return messages().lang(); } }
/** * The current lang * * @return the current lang * * @deprecated Deprecated as of 2.7.0. <a href="https://www.playframework.com/documentation/latest/JavaHttpContextMigration27">See migration guide.</a>. */ @Deprecated public Lang lang() { if (lang != null) { return lang; } else { return messages().lang(); } }
/** * @return the messages for the current lang * * @deprecated Deprecated as of 2.7.0. Use {@link Result} instead. */ @Deprecated public static Messages messages() { return Context.current().messages(); }
/** * @return the messages for the current lang * * @deprecated Deprecated as of 2.7.0. Use {@link Result} instead. */ @Deprecated public static Messages messages() { return Context.current().messages(); }
/** * @return the messages for the current lang * * @deprecated Deprecated as of 2.7.0. Use {@link Result} instead. */ @Deprecated public static Messages messages() { return Context.current().messages(); }
/** * @return the messages for the current lang */ public static Messages messages() { return Context.current().messages(); }
/** * @return the current lang */ public Lang lang() { if (lang != null) { return lang; } else { return messages().lang(); } }