Hi All,
I am getting this sbt clean compile
error:
[error] /home/kenny/workspace/ace-4.0-golden/app/views/dash.scala.html:10:11: object header is not a member of package views.html.includes
[error] Note: class header exists, but it has no companion object.
[error] @includes.header("Dashboard", userId, partyId, appId)
Directory structure:
app
.... views
........ dash.scala.html
........ includes
............ header.scala.html
header.scala.html:
@import common.Configuration;
@import common.Global;
@import common.ZendeskJWT;
@import controllers.Admin;
@import models.User;
@import esavv.entities.App;
@import esavv.entities.Role;
@import esavv.entities.View;
@this(configuration: Configuration)
@(title: String, userId: String, partyId: Int, appId: Int)
<!DOCTYPE html>
<html class="no-js" lang="en" >
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv='cache-control' content='no-cache, no-store, must-revalidate'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Google Analytics (Used in Production Only)-->
@if(configuration.getCurrentPlatform() == 1) {
<script src="/assets/js/googleAnalytics.js"></script>
}
<!-- End Google Analytics -->
<title>@title</title>
<link rel="stylesheet" type="text/css" href="/assets/css/header.min.css">
. . .
dash.scala.html:
@import esavv.entities.Person
@import esavv.entities.View
@import esavv.entities.Role
@import esavv.entities.App
@import esavv.entities.Widget
@import common.Configuration
@import common.Global
@(userId: String, partyId: Int, role: esavv.entities.Role, appId: Int, linkViewId: Int, widgetList: String)
@includes.header("Dashboard", userId, partyId, appId)
<script type="text/javascript">
$(document).ready(function() {
. . .
Google and Stack Overflow haven’t been able to help me. I was wondering if some Play experts had come across and solved this.