-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diagram: Inherit UIData #9551
Comments
rider87
added
‼️ needs-triage
Issue needs triaging
🐞 defect
Bug...Something isn't working
labels
Dec 25, 2022
jepsar
changed the title
p:diagram not generating a iterator / uniqueId
Diagram: iterator / uniqueId not generated
Dec 25, 2022
jepsar
changed the title
Diagram: iterator / uniqueId not generated
Diagram: not generating a iterator / uniqueId
Dec 25, 2022
thanks... any plans to fix this? |
I added this ticket in #8765 so we can track it there. But to fix this if I had to guess would involve extending |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
melloware
added a commit
to melloware/primefaces
that referenced
this issue
Feb 17, 2024
melloware
added a commit
that referenced
this issue
Feb 17, 2024
melloware
added a commit
to melloware/primefaces
that referenced
this issue
Feb 18, 2024
melloware
added a commit
to melloware/primefaces
that referenced
this issue
Feb 18, 2024
melloware
added a commit
that referenced
this issue
Feb 18, 2024
melloware
added a commit
to melloware/primefaces
that referenced
this issue
Feb 20, 2024
…ueId (primefaces#11454)" This reverts commit f86fb65.
melloware
added a commit
to melloware/primefaces
that referenced
this issue
Feb 20, 2024
… / uniqueId (primefaces#11456)" This reverts commit 61255a3.
melloware
added a commit
that referenced
this issue
Feb 20, 2024
This comment has been minimized.
This comment has been minimized.
melloware
changed the title
Diagram: not generating a iterator / uniqueId
Diagram: Inherit UIData
Feb 21, 2024
Same as #10762 this component needs to inherit UIData. |
Rapster
added a commit
to Rapster/primefaces
that referenced
this issue
Mar 13, 2024
melloware
pushed a commit
to Rapster/primefaces
that referenced
this issue
May 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
It seems the p:diagram does not generate a iterator (uniqueId).
Therefore all element / components inside a <f:facet name="element"> // MyComponent has the same id.
This means also a normal actionListener for a element is also not working and I will always get only the first element from p:diagram.
<p:commandButton actionListener="#{myController.openDialogClicked(element)}" icon="fa fa-edit" />
<f:facet name="element"> has a unique ID, but all components inside has the same ID.
I would assume a iterator, like in the p:datatable etc.
So for the component inside the
<f:facet name="element">
you have than something like:automationFlowChartForm:0:triggerPanel
, for the next panelautomationFlowChartForm:1:triggerPanel
, but currently for all panels you will have:automationFlowChartForm:triggerPanel
.This means also for buttons etc.: if you hover on a button, it will change the color for each button with this ID, because all components are not unique...
I can see this also in the HTML console:
Green is the var="diagramElement", but you can see the ID from the panel is always the same.
Can this be fixed?
Reproducer
No response
Expected behavior
No response
PrimeFaces edition
None
PrimeFaces version
12.0.0
Theme
No response
JSF implementation
Mojarra
JSF version
2.4
Java version
11
Browser(s)
Chrome
The text was updated successfully, but these errors were encountered: