3 Replies Latest reply on Apr 25, 2009 4:15 AM by ilya_shaikovsky

    Resize ModalPanel

    acdias

      Hi, I'm trying to disable resizing in modalPanel, but I can't get it. I put resizeable="false" in the component and it aways allow resizing.
      Here's my code:

       <rich:modalPanel id="obsModal" resizeable="false" width="300" height="150">
       <f:facet name="header">
       <h:outputText value="Observações" />
       </f:facet>
       <f:facet name="controls">
       <h:outputLink value="#" >
       <h:graphicImage value="/img/close.png" alt="fechar"/>
       <rich:componentControl for="obsModal" operation="hide" event="onclick"/>
       </h:outputLink>
       </f:facet>
       <h:form>
       <span>
       Data:<h:outputText value="#{observacao.date.time}" >
       <f:convertDateTime pattern="dd/MM/yyyy" />
       </h:outputText>
       </span>
       <h:outputLabel value="Observação" for="obs" />
       <h:inputTextarea value="#{observacao.observacao}" id="obs" disabled="#{s:hasRole('user')}"/>
       <rich:message for="obs" />
       <a4j:commandButton action="#{obsBean.save(observacao)}" value="Salvar" rendered="#{s:hasRole('admin')}">
       <rich:componentControl for="obsModal" operation="hide" event="oncomplete"/>
       </a4j:commandButton>
       </h:form>
       </rich:modalPanel>