Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-14048

Overriding Richfaces renderers not working

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Rejected
    • Affects Version/s: 4.5.5
    • Fix Version/s: None
    • Component/s: component
    • Environment:

      [tomcat 7 + MyFaces 2.2.8], [Webshpere 8.x + jsf 2]

    • Steps to Reproduce:
      Hide

      1. Override a Richface renderer class with required changes
      2. Put the class in a separate library
      3. Add a faces-config.xml having <render-kit> with abover renderer class to library
      4. Use Richfaces 4.5.5 libraries in your application.
      5. Default Richfaces renderer is loaded with default styles but not the expected.

      Show
      1. Override a Richface renderer class with required changes 2. Put the class in a separate library 3. Add a faces-config.xml having <render-kit> with abover renderer class to library 4. Use Richfaces 4.5.5 libraries in your application. 5. Default Richfaces renderer is loaded with default styles but not the expected.
    • Affects:
      User Experience

      Description

      Hello Richfaces team,

      We are currently trying to upgrade the Richfaces libraries to 4.5.5 Final in our application.

      Since, we have local look & feel guidelines, we had to customize the Richfaces Calendar and InputNumberSpinner components color theme according to the local guidelines.

      To support the required look and feel, we had overridden the Richfaces renderers for both of above components in our code base. These overridden renderer classes are bundled in a separate library/jar have it's own faces-config.xml with below render-kit definition.

      <render-kit>
      <render-kit-id>HTML_BASIC</render-kit-id>
      <renderer>
      <component-family>javax.faces.Input</component-family>
      <renderer-type>org.richfaces.InputNumberSpinnerRenderer</renderer-type>
      <renderer-class>com.nsn.calypso.inputnumberspinner.CDKInputNumberSpinnerRenderer</renderer-class>
      </renderer>
      <renderer>
      <component-family>org.richfaces.Calendar</component-family>
      <renderer-type>org.richfaces.CalendarRenderer</renderer-type>
      <renderer-class>com.nsn.calypso.calendar.CalypsoCalendarRenderer</renderer-class>
      </renderer>
      </render-kit>

      The above customization was working fine with Richfaces 4.3.7.

      But, now these customized themes/renderers are not at all loaded to application when it is launched with Richfaces 4.5.5 libraries.

      Could you please help me to resolve the issues. It is blocker issue for Richfaces upgrade.

      Thank you & BRs,
      Santosh

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pujar.santosh Santosh P
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: