Skip to content

o:tagAttribute with ID attribute and no attribute used #754

@martin654

Description

@martin654

Hi,
we are using OF version 3.14.2 and we experience issue with o:tagAttribute

Our tag is defined like this:

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:o="http://omnifaces.org/ui"
                xmlns:h="http://xmlns.jcp.org/jsf/html">

  <o:tagAttribute name="id"/>
  <o:tagAttribute name="align"/>
  <o:tagAttribute name="rendered" default="#{true}"/>

  <h:panelGroup id="#{id}" styleClass="buttons-container" layout="block" rendered="#{rendered}">
      <ui:insert/>
  </h:panelGroup>

</ui:composition>

and we sometimes use it like this without any attribute defined:

<tags:actions />
<tags:actions />
<tags:actions />

in this case duplicate IDs occur.

Everything works fine when any attribute defined:

<tags:actions align="left" />
<tags:actions align="right" />
<tags:actions align="left" />

Could you please check it?

Thank you.

Best regards,
Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions