Re: [Proposal] Change to RenderingContext.setSkinResourceKeyMap semantic

2006-08-21 Thread Jeanne Waldman
Hi Simon, This pattern was introduced to handle the case where we are using the same renderer to render different components, but we want to make sure the style classes that get rendered are for the correct component. If I'm writing a renderer for the XYZ component, and I want to use the

Re: [Proposal] Change to RenderingContext.setSkinResourceKeyMap semantic

2006-08-21 Thread Simon Lessard
Hello again Jeanne, I see... It does less than I was thinking, but I think the issue I was seeing can still happen if the renderer you want to use also uses the resourceKeyMap. Let say that menuBar has af|menuBar and af|menuBar::something classes. However, the something is actually rendered by

Re: [Proposal] Change to RenderingContext.setSkinResourceKeyMap semantic

2006-08-21 Thread Jeanne Waldman
This is probably true. The person that is writing the renderer and knowing that he is sharing the menuBar renderer can look at the menuBar renderer to see that it is mapping to somethingOriginalKey, and then he would map somethingOriginalKey to af|XYZ::something. This isn't ideal, I agree, but