Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-7516

Investigate and fix duplicate ID exception in editservice.xhtml

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: EJBCA 7.0.0
    • Fix Version/s: EJBCA 7.0.0
    • Component/s: None
    • Labels:
    • Issue discovered during:
      Ad Hoc
    • Sprint:
      EJBCA Team Alice - 2018 w45

      Description

      Problem description

      I get a duplicate ID exception for worker components with the ID attribute set.

      This error happens on the "Edit Service" page when the worker JSF page uses a component with an ID.

      How to reproduce

      Add the following to hsmkeepaliveworker.xhtml

      <ui:composition>
      <h:panelGroup/>
      <h:selectBooleanCheckbox id="foo"/>
      </ui:composition>
      

      This results in Component ID editForm:foo has already been found in the view.

      Caused by

      editService.workerPage is included twice (in the same name container) in editservice.xhtml.

      Solution

      Use f:subView to wrap the ui:include a new name container.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bastianf Bastian Fredriksson
              Reporter:
              bastianf Bastian Fredriksson
              Verified by:
              Amin Khorsandi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h