spacer implementation for JSF 2 or RichFaces 4

Version 1

    Dears,

    I heared a lot of objections because of rich:spacer absence in RF 4,so I've attached a spacer implementation, hopes that will help someone ,

     

    kindly follow these 2 simple steps :

     

    1-insert the attached files as follows ,

    spacer.xhtml: under /resources/richext

    spacer.gif: under /resources/images

     

    2-in your xhtml page add the following line:

    xmlns:richext="http://java.sun.com/jsf/composite/richext"

     

    now you can use the spacer ,

     

    <h:outputText value="val1"/>

    <richext:spacer width="20" />

    <h:outputText value="val2"/>

     

    height attribute is also available.

     

     

     

    regards.