我得到了一个rich: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支持的这个版本?或者有人知道如何根据面板的内容来调整大小?
发布于 2017-04-25 16:58:50
有一个Rich Faces缺陷https://issues.jboss.org/browse/RF-13655,我不知道它是不是应用于4.3.7,因为这个问题没有提交的散列。存储库https://github.com/richfaces4/components
https://stackoverflow.com/questions/28808676
复制相似问题