8 Replies Latest reply on May 28, 2008 5:02 PM by j-pro

    The THIRD and FOURTH rich:spacer doesn't work

    j-pro

      As usual, good afternoon, dear RichFaces gurus! ;)

      Wanted to ask a trivial question. I have this code:

      <rich:modalPanel id="errorModalBox" minHeight="100" minWidth="350"
       height="300" width="250" zindex="2000" showWhenRendered = "true">
       <f:facet name="header">
       <h:outputText value="#{muiBundle.commonError}"/>
       </f:facet>
       <rich:spacer height="30px;"/>
       <rich:spacer width="45px;"/>
       <h:outputText value="#{muiBundle.commonError}: #{amBean.result}"/>
       <rich:spacer height="31px;"/>
       <rich:spacer width="200px;"/>
       <a4j:commandButton value="#{muiBundle.buttonClose}" id="commandCloseErrorBox" onmousedown="Richfaces.hideModalPanel('errorModalBox')"/>
      </rich:modalPanel>


      And noticed that second pair of rich:spacers is just useless, it has no effect! Why? The first one works perfect and h:outputText is aligned just as I want. But the button isn't :(

      To have my a4j:commandButton well-justified, I should use style="margin-top:30px;margin-left:150px;". But I want to use rich:spacers, how to fix that?