Skip to content

Instantly share code, notes, and snippets.

@DeepSky8
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save DeepSky8/24c45d4212d39fa72378 to your computer and use it in GitHub Desktop.

Select an option

Save DeepSky8/24c45d4212d39fa72378 to your computer and use it in GitHub Desktop.
Throws this error: Could not parse as expression: "returnId(${issue.id})" (issueList:23)
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>Issue Tracker -- Issues</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css" />
</head>
<body>
<a href="/issues/new">New Issue</a>
<a href="/issues/search">New Search</a>
<table class="pure-table pure-table-striped">
<thead>
<tr>
<th>Title</th>
<th>Name</th>
<th>Category</th>
<th>Difficulty</th>
<th>Assigned To</th>
<th>Stage</th>
</tr>
</thead>
<tbody>
<tr th:each="issue : ${issues}" th:onclick="returnId(${issue.id})">
<td th:text="${issue.title}">My First Issue</td>
<td th:text="${issue.description}">This is _very_ important</td>
<td th:text="${issue.category}">Type of problem</td>
<td th:text="${issue.difficulty}">How hard is this?</td>
<td th:text="${issue.assignedTo.username}">Who will be working on it</td>
<td th:text="${issue.stage}">What stage of the process</td>
</tr>
</tbody>
</table>
<script>
function returnId(long issue) {
src="/view/issue"
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment