【发布时间】:2013-01-08 11:00:48
【问题描述】:
我有一个tabView 组件,在每个tab 面板中,我都有一个form。
我还有一个标志图像来更改我的应用程序中的区域设置,当单击它时,我想重新加载所有 tabView 并更改新的区域设置。
在tab 面板中的一种形式中,我使用captcha 组件并且我不想重新加载它,因为...没有所有重新加载页面是不可能的(不支持部分Ajax 重新加载,我将使用Recaptcha.reload()JS 做重载工作)。
所以我想在没有验证码的情况下重新加载所有嵌套在panel 组件中的tabView 组件...panel。
- 我的
tabView嵌套在名为panel的面板中 - 我的验证码是
captcha
我的 2 个区域设置更改按钮是这些:
<p:commandLink update="@(:panel:not(captcha))" rendered="#{locale.locale != 'fr'}">
<h:graphicImage url="resources/images/flags/flag_fr.png" width="30" height="30" />
<f:setPropertyActionListener target="#{locale.locale}" value="fr" />
</p:commandLink>
<p:commandLink update=":panel" rendered="#{locale.locale != 'en'}">
<h:graphicImage url="resources/images/flags/flag_en.png" width="30" height="30" />
<f:setPropertyActionListener target="#{locale.locale}" value="en" />
</p:commandLink>
我在update 属性中测试了很多选择器组合,但没有成功。
请提供任何选择器的想法?非常感谢
【问题讨论】:
标签: primefaces