画廊胶片带的Primefaces UI问题 [英] Primefaces UI issue with Gallery Film strip

查看:62
本文介绍了画廊胶片带的Primefaces UI问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有组件p:galleria的PrimeFaces实现画廊,一切都按预期工作,但是页脚(电影地带")显示了两次.

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.

更多信息:

  • 图库包含在模式对话框中
  • PrimeFaces版本:5.3
  • 浏览器:Chrome和IE

感谢您的帮助

推荐答案

我已经有onclick,但胶卷仍会翻倍.

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>

这篇关于画廊胶片带的Primefaces UI问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆