玩2.4.4 I18N无法正常工作?

时间:2016-02-18 20:50:17

标签: scala playframework playframework-2.4

Multiple annotations found at this line:
    - could not find implicit value for parameter messages: play.api.i18n.Messages
    - not enough arguments for method apply: (implicit handler: views.html.helper.FieldConstructor, 
     implicit messages: play.api.i18n.Messages)play.twirl.api.HtmlFormat.Appendable in class input. 
     Unspecified value parameter messages.

这是我的HTML代码:

@phoneField(field: Field, className: String = "phone") = {
    @input(field, '_label -> "Phone numbers", '_class -> className) { (id, name, value, _) =>
        <input type="text" name="@name" value="@value"> 
        <a class="removePhone btn danger">Remove</a>
    }
}

0 个答案:

没有答案