有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

编译期间发生java错误:twitterBootstrap不是包视图的成员。html。帮手

我正在学习游戏框架。我正在使用plaframework2.5。获取以下错误:

对象twitterBootstrap不是包视图的成员。html。助手

代码:

@(productForm: Form[Product])
@import helper._
@import helper.twitterBootstrap._
@main("Product form") {
<h1>Product form</h1>
@helper.form(action = routes.Products.save()) {
<fieldset>
<legend>Product (@productForm("name").valueOr("New"))</legend>
@helper.inputText(productForm("ean"), '_label -> "EAN")
@helper.inputText(productForm("name"),'_label -> "Name")
@helper.textarea(productForm("description"), '_label -> "Description")
</fieldset>
<input type="submit" class="btn btn-primary" value="Save">
<a class="btn" href="@routes.Products.index()">Cancel</a>
}
}

共 (1) 个答案

  1. # 1 楼答案

    Play bootstrap集成没有跟上Twitter bootstrap的速度,因此被删除。最好的引导集成是

    https://adrianhurt.github.io/play-bootstrap/

    一般来说,如果你取出“@import-helper”。twitter引导程序那就行了