开发者

Why is my <rich:popupPanel> not working?

I have the following code:

<a4j:commandButton value="Adicionar BOM"
    onclick="#{rich:component('addBomModal')}.show()">
    <a4j:ajax event="click" immediate="true"
        oncomplete="Richfaces.showModalPanel('addBomModal')"
    render="addBomModal" />
</a4j:commandButton>

and

<h:form>
    <rich:popupPanel id="popup" modal="true" resizeable="true"
        onmaskclick="#{rich:component('popup')}.hide()">
        // rest of popupPanel
    </rich:popupPanel>
</h:form>

The page is rendered but nothing happens wh开发者_如何学运维en I click the button.

How can this be solved?

Thanks in advance, gtludwig


You have too many things going on. You first open the pop-up in onclick (button) and then open it again in oncomplete via older API (I'm not sure it was migrated to RichFaces 4). All you need is what you have in onclick, you don't need a4j:ajax.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜