我使用的是與我的應用程序中的多個表單,您可以在其中輸入輸入的twitter Bootstrap 3.3.4。我可以忽略代碼中的「twitter bootstrap is deprecated」警告嗎?
樣品:
@import models.Question
@import models.Answer
@import helper._
@import helper.twitterBootstrap._
@(questionForm: Form[Question], questionList: List[Question])
@main("Ask Question"){
@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帖子提到寫他自己的模板助手,但作爲我自己的工作,我看到沒有必要寫一個。那麼我是否仍然可以使用我的產品並忽略這些警告,或者稍後在我的生產系統或其他任何地方發現問題?另外,如果警告沒有後果,是否有辦法隱藏它們?
我必須手動更新遊戲框架,是否正確?將不會自動更新到新版本? – hamena314
是的。我的意思是手動升級。但在維護您的產品時可能會出現這種情況。 –
好吧,然後將考慮編寫自己的模板助手來確保。謝謝! – hamena314