我正在使用JBoss Richfaces 我需要调用rich:modalPanel 当特定情况发生时。

示例代码在这里 -

这是模式面板

<rich:modalPanel  id="show_alert" height="125" width="325" zindex="2000">
                <h:outputText value="shamik testing"/><br/>
                <a4j:commandButton value="#{uiLabel.no}" onclick="#             {rich:component('show_alert')}.hide()" styleClass="button"/>
</rich:modalPanel>

我想在有人点击此链接时显示模态面板。

<a4j:commandLink value="#{uiLabel.config_ret}" id = "aaa"

actionListener="#{aging.configureRetention}"                            reRender="cp_tab_form">
<rich:componentControl for="show_alert" attachTo="aaa" operation="show" event="onclick"/>           
</a4j:commandLink>

我正在尝试make operation =&quot;#{bean.cond}&quot;这样操作的名称就是动态的。但是没有用。

我想在bean.cond = false时调用operation = hide and operation = show when bean.cond = true。

我可能会在这里做一些非常愚蠢的事情: - (

有帮助吗?

解决方案

很抱歉发布它..我没有重新发布commandLink :-(抱歉。

其他提示

你还可以看一下使用“数据”。 a4j:commandLink的属性返回bean.cond的值

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top