primefaces-extensions / primefaces-extensions.github.com

Organization repo, only for homepage, wiki and issue tracker
https://primefaces-extensions.github.io/
70 stars 22 forks source link

LetterAvatar: unable to use inside of timeline #727

Closed mores closed 4 years ago

mores commented 4 years ago

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.

melloware commented 4 years ago

Thanks for the reproducer!

melloware commented 4 years ago

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.

melloware commented 4 years ago

I am going to close this since it appears not to be LetterAvatar related but Timeline related.