如何在(Scala)中构建反向路径播放2.4外部控制器?如果我导入controllers._
并尝试使用路由,则会出现编译错误:
在此处找不到任何HTTP请求标头
package models
import org.joda.time._
import play.api.libs.json._
case class Attendee (id: Long, status: Boolean, ... , pictureUrl: Option[String], ...)
object Attendee { implicit val attendeeWrites = new Writes[Attendee] {
def writes(att: Attendee) = Json.obj( "id" -> att.id, "picture" -> att.pictureUrl.map
{ somePictureUrl => routes.PrivateWS.getAttendeeImage(att.eventId, att.id)
.absoluteURL() })
答案 0 :(得分:0)
我已经创建了一个帮助器并使用controllers.route.etc等并且运行良好,
在您的情况下,您可以尝试
<!-- Hover Code - Code that was added to change the ComboBox background
color when the use hovers over it with the mouse -->
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="DarkOrange"></Setter>
</Trigger>
<!-- Hover Code - End -->