【发布时间】:2015-05-26 07:38:28
【问题描述】:
我正在使用带有 twitter Bootstrap 3.3.4 的播放框架 2.3.8,并且在我的应用程序中有多个表单,您可以在其中输入输入。
示例:
@import models.Question
@import models.Answer
@import helper._
@import helper.twitterBootstrap._
@(questionForm: Form[Question], questionList: List[Question])
@main(""){
@helper.form(action = routes.Application.sendQuestion()){
<fieldset>
@helper.inputText(questionForm("questionID"))
@helper.inputText(questionForm("questionText"))
@helper.inputText(questionForm("voteScore"))
@helper.inputText(questionForm("userID"))
@helper.inputText(questionForm("page"))
</fieldset>
<input type="submit" class="btn btn-default">
}
}
现在,如果我编译,终端中会出现几个警告:
[warn] @helper.inputText(questionForm("userID"))
[warn] ^
[warn] (...)\frageAntwort.scala.html:22:
value twitterBootstrapField in package twitterBootstrap is deprecated:
The twitter bootstrap field constructor will be removed from Play in 2.4
since the way Bootstrap must be used changes too frequently and too
drastically between versions for this to make sense to be in the core of Play
我搜索了警告,只找到了这个old SO post about it 和一个issue on github。
SO 帖子提到编写他自己的模板助手,但由于我自己的工作,我认为还没有必要编写一个。那么我是否仍然可以使用我的并忽略警告,或者我以后会在我的生产系统或其他任何地方遇到麻烦?此外,如果警告没有后果,有没有办法隐藏它们?
【问题讨论】:
标签: twitter-bootstrap playframework deprecated playframework-2.3