2 Replies Latest reply on Oct 4, 2007 9:23 AM by alexanderbelov

    rich panel don't work

       

      <rich:panel bodyClass="inpanelBody">
      <f:facet name="header">
       <h:outputText value="Info generics" />
      </f:facet>
      
      <f:verbatim>
      <table border="1">
       <tr>
       <td>
       <h:outputText value="Test" />
       </td>
       </tr>
       </table>
      </f:verbatim>
      </rich:panel>
      


      Using the code above the result faced is very strange:

      Test
      _____
      |____|

      insted of
      _____
      |Test |
      |____|

      ----------------------------------------
      That's nont happend using :
      <rich:panel bodyClass="inpanelBody">
      <f:facet name="header">
       <h:outputText value="Info generics" />
      </f:facet>
      
      <f:verbatim>
      <table border="1">
       <tr>
       <td>
       Test
       </td>
       </tr>
       </table>
      </f:verbatim>
      </rich:panel>
      


      and my quesion is :why? where I'm wrong?

      Thx in advance for any solution


        • 1. Re: rich panel don't work

          f:verbatim is used to place html code. But you place h:outputText component inside. It is wrong. I can advice you forget about f:verbatim at all and use JSF 1.2 (there is no need to use f:verbatim).
          Or you can use for following:

          <f:verbatim>
          <table border="1">
           <tr>
           <td>
          </f:verbatim>
           <h:outputText value="Test" />
          <f:verbatim>
           </td>
           </tr>
           </table>
          </f:verbatim>


          • 2. Re: rich panel don't work

            Sorry.

            <f:verbatim>
            <table border="1">
             <tr>
             <td>
            </f:verbatim>
             <h:outputText value="Test" />
            <f:verbatim>
             </td>
             </tr>
             </table>
            </f:verbatim>
            </rich:panel>