-
2. Re: How to apply RichFaces' skin to all components?
tonylmai Feb 13, 2008 8:22 PM (in response to tonylmai)Nice. Thanks
-Tony
(P.S. I've looked at this demo site many times. Don't know how I'd missed it) -
3. Re: How to apply RichFaces' skin to all components?
tonylmai Feb 13, 2008 8:26 PM (in response to tonylmai)One minor problem.
<a4j:loadStyle src="resource:///org/richfaces/demo/ajaxSamples/rspanel.xcss"
Am I going to have to use this demo's site as the source of my styles?
-Tony -
4. Re: How to apply RichFaces' skin to all components?
tonylmai Feb 13, 2008 8:44 PM (in response to tonylmai)Got it to work. This is awesome.
Thanks -
5. Re: How to apply RichFaces' skin to all components?
mail.micke Feb 14, 2008 4:49 AM (in response to tonylmai)Not a component developer myself (so I don't know if it is feasible), but I was wondering if it would be possible to create renderers for the standard components which decorates them with the appropriate RichFaces css classes?
If possible it would be cool if those decorating renderers were part of the RichFaces library, and those interested could just add them themselves to their faces-config. -
6. Re: How to apply RichFaces' skin to all components?
ilya_shaikovsky Feb 17, 2008 8:05 AM (in response to tonylmai)Certainly you may write the custom renderers and use our skin parameters while rendering.
But it would be realy easier to write xcss for standard components and use the skin properties in this xcss file. -
7. Re: How to apply RichFaces' skin to all components?
mail.micke Feb 17, 2008 10:43 AM (in response to tonylmai)The way I imagined is it the appropriate css classes would added to the generated markup by default, so that developers wouldn't have to add styleClass attributes to the standard components,
just the way it is in rich faces.
To me that seems like the easiest way to do it for component users, not so for the guy who has to implement it and configure the application :)
XCSS seems like a great way of creating CSS classes for specific use cases while getting the benefit of reusing properties defined in a skin.