-
1. Re: Overriding Richfaces renderers not working
michpetrov May 25, 2015 8:02 AM (in response to pujar.santosh)I've tried overriding the Calendar renderer and it worked (I had the render-kit defined in faces-config of the app). I suppose your jars might be read "out of order" so that the classes aren't overwritten but I don't know if that can be changed. The component and renderer names have not changed.
-
2. Re: Overriding Richfaces renderers not working
pujar.santosh May 26, 2015 12:49 AM (in response to michpetrov)Hello Michal Petrov,
Since, it was working was Richfaces 4.3.7 in both tomcat and websphere, we are unable to identify the reason for issue.
I will try to investigate more based on your suggestion.
Thanks for the support!
-
3. Re: Overriding Richfaces renderers not working
pujar.santosh May 29, 2015 7:11 AM (in response to pujar.santosh)Yeah, finally I solved it!!
Proper code merging between Richfaces renderer classes and overriding classes solved the tomcat server issue. However, the components were not renderer with customized renderer classes when the application was deployed in Webshpere.
Though the faces-configs of local library loaded after the one of Richfaces, Richfaces renderers were overwriting the local renderer class while preparing the renderer kit in Websphere due to server JSF's sorting logic. To resolve the issue, I needed to add ordering configurations in local libraries faces-config.xml:
<ordering>
<after>
<others />
</after>
</ordering>
I think, if JSF had supported a additional configuration like <overwrite>true/false</overwrite> under render tag of renderer kit in faces-config.xml, users can use it to override the third-party library renderers easily as they require. This will also help user to not to bother about the uncertain library loading order in any servers.