2 Replies Latest reply on Jan 29, 2010 7:49 AM by cassionandi

    Personalizing rich:calendar

    cassionandi

      Based on this post, http://in.relation.to/12480.lace, I have a calendar with month and year selection.

       

      The calendar have the following layout.

       

      <<  <  Month/Year  >  >>

       

      I need to remove the << and >> from the calendar, where the year will change only when the months reach the limit (jan or dez).

       

      I'm using rich-faces 3.2.2.

       

      Best regards, Cássio.

        • 1. Re: Personalizing rich:calendar
          ilya_shaikovsky
          check in docs how to customize header with header facet and macrosubstitutions.
          • 2. Re: Personalizing rich:calendar
            cassionandi

            I just add this to my facet header with some css tweaks.

             

            <f:facet name="header">

               <h:panelGrid columns="3" width="100%">

                   <h:outputText value="{previousMonthControl}" style="font-weight:bold;"/>

                   <h:outputText value="{currentMonthControl}" style="font-weight:bold;"/>

                   <h:outputText value="{nextMonthControl}" style="font-weight:bold;"/>

              </h:panelGrid>

            </f:facet>

             

            Thanks Ilya.