Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3178

NoSuchElementException thrown in Navbar.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 7.0.3
    • None
    • None

      After some fast backs in the browser (1 sec interval) the navbar in an intermediate page doesn't seem correctly initialised. The following exception is thrown:

      java.util.NoSuchElementException
      at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:396)
      at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:405)
      at org.zkoss.zkmax.zul.Navbar.service(Navbar.java:195)

      The website uses bookmarks for navigation and bases the selected attribute of the navitem on bookmark:

                  <navbar  id="appNavigation" orient="vertical" class="admin_navbar" style=""> 
                      <navitem  width="100%"  label="${c:l('HOMEPAGE')}" onClick="@command('goToViewAll')" selected="${c:startsWith(desktop.bookmark, 'page_events_homepage')}"/>
                      <navitem  width="100%"  label="${c:l('CREATE_EVENT')}" onClick="@command('goToCreateEvent')" selected="${c:startsWith(desktop.bookmark, 'page_events_create')}"/>
                      <navitem  visible="@load(not ClientInfoService.mobile)" width="100%"  label="${c:l('SHOW_AGENDA')}" onClick="@command('goToCalendar')" selected="${c:startsWith(desktop.bookmark, 'page_events_calendar')}"/>
                      <navitem  width="100%"  label="${c:l('EVENT_DELETE')}" onClick="@command('deleteEventFromEdit',eevent=eventVm.currentEvent)" if="${c:startsWith(desktop.bookmark, 'page_events_edit') and eventVm.editMode}"/>
                  </navbar>
      

            Unassigned Unassigned
            pviceic pviceic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: