问题
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