【发布时间】:2016-04-27 08:52:22
【问题描述】:
我为 jsf 组件找到了这些动画:http://www.animatejsf.org/
我尝试通过命令链接单击将其应用于<h:form>,如图所示
<h:form id="leftMenu">
Slide
</h:form>
<p:commandLink>
<p:outputLabel> click here
<aj:animate target="leftMenu" type="slideInLeft"/>
</p:outputLabel>
</p:commandLink>
但是点击命令链接时动画不可见。相反,它最初只是在网页加载时制作动画。我想在点击<p:commandButton> 或<p:commandLink> 时应用此动画。
有谁知道我怎样才能做到这一点?任何帮助表示赞赏。
【问题讨论】: