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

"Add"-Button should not be supressed, when list is empty

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Invalid
    • Affects Version/s: 1.1.0.M1
    • Fix Version/s: None
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      Rev 695

      Currently, the "Add"-Button is rendered in table.tagx. In list.tagx, there is:

              <c:choose>
                      <c:when test="${not empty items}">
              		<jsp:doBody />  <!-- here comes the table.tagx -->
              	</c:when>
              	<c:otherwise>
              		<spring:message arguments="${label}" code="entity.not.found.single"/>
              	</c:otherwise>
              </c:choose>       	
      

      In result, the "Add"-Button is not rendered, when the list is empty, which is kind of user-unfriendly...

      Proposal: Move the check for empty list into list.tagx and always render the add button.

        Attachments

          Activity

            People

            • Assignee:
              jcgarcia Juan Carlos GarcĂ­a del Canto
              Reporter:
              stefanoc Stefan Ocke
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: