Closed mores closed 4 years ago
Thanks for the reproducer!
OK I think it might be a Timeline issue. The only reason gravtar works is because Gravatar doesn't use any Javascript it only renders an <img>
tag. But LetterAvatar needs to execute JS. I don't think any PrimeFaces component works in the Timeline.
Try replacing with Colorpicker...
<p:colorPicker value="#{timelineEventObject.name}" mode="inline" />
YOu will see in the Timeline it generates the widget script.
$(function(){PrimeFaces.cw("ColorPicker","widget_j_idt6_j_idt8",{id:"j_idt6:j_idt8",mode:"inline",color:"DataBase Id: 2"});});
But its never being called because the Timeline is just rendering it as text.
I am going to close this since it appears not to be LetterAvatar related but Timeline related.
pe:gravatar works just fine inside of timeline. Working example: https://github.com/mores/primefaces-test/tree/timeline001-avatar
Tried to replace
with
But no image is rendered.