我有一个丰富的:popupPanel,如下所示:
<rich:popupPanel id="someId" header="some header" domElementAttachment="parent" autosized="true">
<h:panelGrid columns="3" id="searchGrid">
<h:outputText value="some value:" />
<h:inputText id="someOtherId" value="#{someModel.value}" required="true" maxlength="12" size="14"/>
<rich:message for="someOtherId" />
</h:panelGrid>
<br />
<h:panelGrid columns="3" id="someButtons">
<a4j:commandButton id="someButton" value="search" action="#{someCtrl.doSomething()}" render="@this" execute="someId"
oncomplete="if (#{empty facesContext.messageList}) {#{rich:component('someId')}.hide();}" />
<a4j:commandButton value="cancel" render="tabs" execute="@this" oncomplete="#{rich:component('someId')}.hide(); return false;" />
<rich:message for="someButton" />
</h:panelGrid>
</rich:popupPanel>
似乎这个问题已经解决了JIRA,但它仍然对我不起作用。我对richfaces有以下依赖:
<dependency>
<groupId>org.richfaces.core</groupId>
<artifactId>richfaces-core-impl</artifactId>
<version>4.3.7.Final-redhat-1</version>
</dependency>
也许问题是我使用了 JBOSS 的这个受支持的版本?或者有人知道我如何根据面板的内容实现调整大小?