Rich popupPanel does not resize automatically

1.3k Views Asked by At

I got a rich:popupPanel like the following:

<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>

It seems like this problem has been solved JIRA, but it still doesn't work for me. I got the following dependency to richfaces:

  <dependency>
    <groupId>org.richfaces.core</groupId>
    <artifactId>richfaces-core-impl</artifactId>
    <version>4.3.7.Final-redhat-1</version>
  </dependency>

Maybe the problem is that I use this supported version from JBOSS? Or does someone know how I can achieve a resize dependent of the content of the panel?

1

There are 1 best solutions below

0
Vitalii Pro On

There is a Rich Faces defect https://issues.jboss.org/browse/RF-13655 I don't know was it applied for 4.3.7.Final or not because the issue has no hash of commit. The repository https://github.com/richfaces4/components