5 Replies Latest reply on May 8, 2008 10:59 AM by sovereign

    using rich:separator

    sovereign

      Hi I am trying to use a rich:separator inside an html table and I am having a couple of problems using it. The problems are :

      1. If i use

      <table>
      <tr>
      <td><h:outputText value="Separator"></h:outputText></td>
      <td><rich:separator lineType="double" height="1" styleClass="rich-separator"/></td>
      <tr>
      </table>


      The separator does not show in the page, it just disappears but if i put any component in the second < td > say another h:outputText along with the <rich:separator> both the components showup. Any idea why the separator disappears and appears?

      2. because of problem 1 I am trying to start the separator on the page something like this:

      <table>
      <tr>
      <td><h:outputText value="Separator"></h:outputText>
      <rich:separator lineType="double" height="1" styleClass="rich-separator"/>
      </td>
      <tr>
      </table>


      i.e. using only a single < td >.

      I wanted the result to look like this :
      "Separator_________________________________"

      but the code actually renders the separator below the h:outputText :

      "Separator
      _____________________________________"

      Could someone please tell me why the separator is wrapping down even if i am putting both the outputText and separator in the same < td >.

      Thanks a lot in advance.

      sovereign

        • 1. using rich:separator
          sovereign

          Hi I am trying to use a

          rich:separator
          inside an html table and I am having a couple of problems using it. The problems are :

          1. If i use

          <table>
          <tr>
          <td><h:outputText value="Separator"></h:outputText></td>
          <td><rich:separator lineType="double" height="1" styleClass="rich-separator"/></td>
          <tr>
          </table>


          The separator does not show in the page, it just disappears but if i put any component in the second
          <td>
          say another h
          :outputText
          along with the
          <rich:separator>
          both the components showup. Any idea why the separator disappears and appears?

          2. because of problem 1 I am trying to start the separator on the page something like this:

          <table>
          <tr>
          <td><h:outputText value="Separator"></h:outputText>
          <rich:separator lineType="double" height="1" styleClass="rich-separator"/>
          </td>
          <tr>
          </table>


          i.e. using only a single
          <td>


          I wanted the result to look like this :
          "Separator_________________________________"

          but the code actually renders the separator below the h:outputText :

          "Separator
          _____________________________________"

          Could someone please tell me why the separator is wrapping down even if i am putting both the outputText and separator in the same
          <td>


          Thanks a lot in advance.

          sovereign

          • 2. Re: using rich:separator

            how about defining the width for separator?

            • 3. Re: using rich:separator
              sovereign

              Thanks for the reply Sergey. I actually cant declare the width for the separator because the text size actually varies thoughout the page and I am using this separator in many palces. I needed a separator that would kind of fill in the rest of the spaces in the last column after that text. Could you please help me out with that?

              Thanks a lot.

              • 4. Re: using rich:separator

                 

                <table>
                <tr>
                <td><h:outputText value="Separator"></h:outputText></td>
                <td><rich:separator lineType="double" height="1" styleClass="rich-separator"/></td>
                <tr>
                </table>

                "sovereign" wrote:
                I needed a separator that would kind of fill in the rest of the spaces in the last column after that text. Could you please help me out with that?



                Separator fills the rest of the space by default. However, the problem that in your code, this space is 0px.
                May be you mean
                <table width="100%">



                • 5. Re: using rich:separator
                  sovereign

                  Thanks a lot Sergey it worked. Just had to do some more tweaking with the width as you said..Thanks again.