title: Thymeleaf - I can't pass two values from HTML to Controller using Link th:href
body: <p>I am using Thymeleaf and Spring Boot.
  I have a link in my html using thymeleaf:</p>
  
  <pre><code> &lt;a th:href="@{/fleetcompany/workorders/proposals/selected/{id}(id=${proposal.bidID})/{id2}(id2=${proposal.workID})}"&gt;SELECT&lt;/a&gt;
  </code></pre>
  
  <p>When I only pass one value, it works but when I pass two values, it didn't. It has errors:</p>
  
  <pre><code>  Failed to convert value of type [java.lang.String] to required type [java.lang.Long]; nested exception is java.lang.NumberFormatException: For input string: "{id}(id=${proposal.bidID})"
  </code></pre>
  
  <p>This is my MVC controller:</p>
  
  <pre><code>@RequestMapping(value={"/workorders/proposals/selected/{bidID}/{woNumber}"}, method = RequestMethod.GET)
  public String selectProposal(Model model,
          final RedirectAttributes redirectAttributes,
          @PathVariable("bidID") Long bidID,
          @PathVariable("woNumber") Long woNumber){
  
      String selected = "Selected";
      String notSelected = "Not Selected";
      String orderStatus = "Pending";
      bidServiceInterface.updateSelectedBidStatus(selected, bidID);
      bidServiceInterface.updateNotSelectedBidStatus(notSelected, woNumber);
      woServiceInterface.updateWorkOrderStatus(orderStatus, woNumber);
      return "redirect:/fleetcompany/workorders";
  }
  </code></pre>
  
  <p>I know all my datatypes are correct, because when I interchanged both ids it worked but not when I use them both together.</p>