Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3759

thymeleaf list template show/edit path problems for not embedded tomcat env

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.0.0.M2
    • Fix Version/s: 2.0.0.M3
    • Component/s: @ ROO SHELL
    • Labels:
      None

      Description

      In not embedded environment, the request path show/edit inside thymeleaf list template, missing the context root. For example:

      function ( data, type, full, meta ) { return '<a role="button" class="btn-accion ver" href="/pointofsales/' + data + '" data-th-text="#

      {label_show}">Show</a>' + '<a role="button" class="btn-accion modificar" href="/pointofsales/' + data + '/edit-form" data-th-text="#{label_edit}">Edit</a>' + '<a role="button" class="btn-accion eliminar" data-th-text="#{label_delete}" onclick="javascript:jQuery.deletePointOfSale(' + data + ')"></a>' }

      I solved the problem with a variable btnUrl:

      var btnUrl = [[@{/pointofsales/}]];
      function ( data, type, full, meta ) { return '<a role="button" class="btn-accion ver" href="' + btnUrl + data + '" data-th-text="#{label_show}

      ">Show</a>' + '<a role="button" class="btn-accion modificar" href="' + btnUrl + data + '/edit-form" data-th-text="#

      {label_edit}

      ">Edit</a>' + '<a role="button" class="btn-accion eliminar" data-th-text="#

      {label_delete}

      " onclick="javascript:jQuery.deletePointOfSale(' + data + ')"></a>' }

        Attachments

          Activity

            People

            • Assignee:
              jcgarcia Juan Carlos GarcĂ­a del Canto
              Reporter:
              giancarloparma Giancarlo Parma
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: