Primefaces UI issue with Gallery Film strip

霸气de小男生 提交于 2019-12-25 11:57:16

问题


I am implementing a gallery using PrimeFaces with the component p:galleria, everything works as expected but the footer (Film Strip) is shown twice.

By the way, if I close and then reopen the modal dialog which contains the gallery the Film Strip displays correctly.

More Information:

  • The gallery is contained in a modal dialog
  • PrimeFaces version: 5.3
  • Browsers: Chrome and IE

Any help is appreciated


回答1:


I have resolved this behavior with the next workaround...

I had to open the external dialog using onclick() event instead of oncomplete()

Greetings!!!!




回答2:


I already have onclick but the filmstrip still gets doubled.

A working workaround for me is to update the galleria when the dialog is shown, e.g.

<p:commandLink onclick="PF('popup').show();" update="galleria"/>
<p:dialog id="popup">
    <p:galleria id="galleria"/>
</p:dialog>


来源:https://stackoverflow.com/questions/46607778/primefaces-ui-issue-with-gallery-film-strip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!