Skip to content

Play 3.0.1 build/compile order #12361

Discussion options

You must be logged in to vote

Never mind, I was barking up the wrong tree all the time. The actual problem is that Twirl doesn't accept empty parentheses for method calls without parameters:

@defining(
	languageUtils.preferredEntry(entity.caption, userSession.lang, messages.asJava).orElse(TextEntry.missing(userSession.lang)),
	schema.baseEntityType(entity.entityTypeName())
) { case(caption, baseType) =>

doesn't work (immediately)

@defining(
	languageUtils.preferredEntry(entity.caption, userSession.lang, messages.asJava).orElse(TextEntry.missing(userSession.lang)),
	schema.baseEntityType(entity.entityTypeName)
) { case(caption, baseType) =>

does.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nilsweinander
Comment options

@nilsweinander
Comment options

@nilsweinander
Comment options

Answer selected by nilsweinander
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants