Open fanste opened 2 months ago
@fanste i am little confused as to the issue do you have a PR to propose?
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
Describe the bug
p:confirmDialog
andp:confirmPopup
do provide an attribut namedicon
. But the default icon is not shown, if no icon is provided byp:confirm
.p:confirmDialog
: Icon is set tonull
, ifp:confirm
provides no icon (misses correct check for no icon). And ifp:confirm
provides an icon, the default one is removed permanently, see here.p:confirmPopup
: Default Icon is always permanently removed and the one fromp:confirm
is set, if provded, see here.The same somehow applies to
header
andmessage
attributes. Once overwritten byp: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