0

我是 Play Framework 的新手。

在此之前我正在使用 play-2.0.4 版本,现在,我迁移到 play-2.1.3。

清理并运行后,出现以下错误:

未找到:键入页面

    @(  user: models.Or_User,
        popsList: List[models.masterdata.Pops],
        currentPage: Page[models.masterdata.Countries],
        popId: Integer
        )

在国家模型中,我有 Page 方法:

    public static Page<Countries> page (int page, int pageSize) {
                return find.orderBy("id     asc").findPagingList(pageSize).getPage(page);
        }

在控制器中,

    public static Result manageCountries(Integer page) {

    Page<Countries> countryPage = Countries.page(page, 10);

    return ok(managecountries.render(Or_User.findByEmail(request().username()), countryPage));
}

在视图中,

    @(  user: models.Or_User,
popsList: List[models.masterdata.Pops],
currentPage: Page[models.masterdata.Countries],
popId: Integer
)
    @main(user){
    }

请帮我解决这个错误。

4

0 回答 0