title: How to pass parameters to a modal using thymeleaf?
body: <p>I just starting in a project where we're using thymeleaf and I'm new to the technology.
  It's a simple modal to confirm an object to be deleted. So they want me to add the name of the item we're deleting on the message instead of a generic message like: "Are you sure you want to delete?"
  They want: "Are you you want to delete Item_Name?"
  So I need to pass this name as parameter.</p>
  
  <p>That's the code I have the display the modal:</p>
  
  <pre><code>&lt;button id="btnDelete" value="delete" type="button" class="btn-link" data-toggle="modal" data-object-id="12345" data-object-name="NNN" th:attr="data-object-id=''+${assignment.assignmentId}+'', data-object-name='/nonInstructionalWorkload/deleteAssignment?asssignmentId='+${assignment.assignmentId}+'', data-target='#deleteAssignmentModal'"&gt;
  </code></pre>
  
  <p>                                                                         </p>
  
  <p>And that's the code I have on the modal html:</p>
  
  <pre><code>&lt;form role="form" th:action="@{/deleteAssignment}"
        name="assignmentDeleteForm" id="assignmentDeleteForm" method="post"&gt;
  
      &lt;div class="modal-header"&gt;
          &lt;h4 class="modal-title" id="deleteWorkItemabel"&gt;Confirm Assignment Delete&lt;/h4&gt;
      &lt;/div&gt;
  
      &lt;div class="modal-body"&gt;
          &lt;div class="form-group"&gt;
              &lt;p&gt;Assignment will be deleted, are you sure you want to proceed?&lt;/p&gt;
              &lt;input type="hidden" id="deleteId" name="deleteId" value="nnnn"/&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="modal-footer"&gt;
          &lt;button type="submit" id="btnDelConfirm" class="btn btn-primary"&gt;
              Yes
          &lt;/button&gt;
          &lt;button type="button" id="btnDelCancel" class="btn btn-default" data-dismiss="modal"&gt;
              No
          &lt;/button&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>At this point is where I need to add more information on the confirmation message about the assignment item being deleted.</p>
  
  <p>Already tried some approached to get the parameters but didn't work so I'm looking for more option.</p>
  
  <p>Thank you!</p>