gpt4 book ai didi

jsf - 丰富的面孔 4.0.0 丰富的 :popupPanel not showing

转载 作者:行者123 更新时间:2023-12-04 06:36:21 26 4
gpt4 key购买 nike

如何在richfaces 4 m5 中显示rich:popupPanel?下一个代码对我不起作用。

<a4j:commandLink value="#{bean.phone}" render="popDiv" execute="@this" >
<f:setPropertyActionListener target="#{personController.person}" value="#{bean}" />
<rich:componentControl target="personModalPanel" operation="show" event="onclick" />
</a4j:commandLink>
<rich:popupPanel id="personModalPanel" modal="true" width="200" height="200">
<f:facet name="header">
<h:panelGroup>
<h:outputText value="Edit Person" />
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="/resources/img/x.png" styleClass="hidelink" id="hidelink" >
<rich:componentControl target="personModalPanel" operation="hide" event="onclick" />
</h:graphicImage>
</h:panelGroup>
</f:facet>
</rich:popupPanel>

最佳答案

在 Richfaces 4 中,您需要编写不带“on”字样的事件名称。所以给定的代码应该适合你。

<a4j:commandLink value="#{bean.phone}" render="popDiv" execute="@this" >
<f:setPropertyActionListener target="#{personController.person}" value="#{bean}" />
<rich:componentControl target="personModalPanel" operation="show" event="click" />
</a4j:commandLink>
<rich:popupPanel id="personModalPanel" modal="true" width="200" height="200">
<f:facet name="header">
<h:panelGroup>
<h:outputText value="Edit Person" />
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="/resources/img/x.png" styleClass="hidelink" id="hidelink" >
<rich:componentControl target="personModalPanel" operation="hide" event="onclick" />
</h:graphicImage>
</h:panelGroup>
</f:facet>
</rich:popupPanel>

关于jsf - 丰富的面孔 4.0.0 丰富的 :popupPanel not showing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4823500/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com