primefaces / primefaces

Ultimate Component Suite for JavaServer Faces
http://www.primefaces.org
MIT License
1.81k stars 765 forks source link

ConfirmPopup / ConfirmDialog: Default icon not displayed if not provied by p:confirm #12663

Open fanste opened 2 months ago

fanste commented 2 months ago

Describe the bug

p:confirmDialog and p:confirmPopup do provide an attribut named icon. But the default icon is not shown, if no icon is provided by p:confirm.

The same somehow applies to header and message attributes. Once overwritten by p:confirm specific value, the default is lost.

Maybe the handling of p:confirm specific value vs default values needs discussion, but default icon is clearly not working as designed, IMHO.

Reproducer

No response

Expected behavior

Default icon should be visible, if no icon is provied by p:confirm

PrimeFaces edition

Community

PrimeFaces version

10, 15.0.0-SNAPSHOT

Theme

No response

JSF implementation

Mojarra

JSF version

2.2

Java version

8

Browser(s)

No response

melloware commented 2 months ago

@fanste i am little confused as to the issue do you have a PR to propose?

tandraschko commented 1 month ago

i will mark this as enhancement, i think its currently implemented by design without that usecase in mind it would be great if you can provide a PR