@@ -168,7 +168,7 @@ protected void renderEnd(FacesContext context, UIComponent component,
168168 writer .startElement (HTMLElements .TD , cts );
169169 writer .writeAttribute (HTMLAttributes .HEIGHT , "503" ,
170170 HTMLAttributes .HEIGHT );
171- renderSpacerImage (cts , 503 , 1 , theme , context );
171+ renderSpacerImage (cts , 503 , 1 , theme , context , SPACER_IMAGE );
172172 writer .endElement (HTMLElements .TD );
173173 writer .endElement (HTMLElements .TR );
174174 writer .endElement (HTMLElements .TABLE );
@@ -296,7 +296,7 @@ protected void renderSpacer(ResponseWriter writer, UIComponent cts,
296296 writer .startElement (HTMLElements .TD , cts );
297297 writer .writeAttribute (HTMLAttributes .WIDTH , spacerWidth ,
298298 HTMLAttributes .WIDTH ); // NOI18N
299- renderSpacerImage (cts , 1 , columnWidth , theme , context );
299+ renderSpacerImage (cts , 1 , columnWidth , theme , context , SPACER_IMAGE + i );
300300 writer .endElement (HTMLElements .TD );
301301
302302 //set the spacing between two columns
@@ -327,11 +327,11 @@ protected void renderSpacer(ResponseWriter writer, UIComponent cts,
327327 * @exception IOException if an input/output error occurs
328328 */
329329 protected void renderSpacerImage (UIComponent component , int height ,
330- int width , Theme theme , FacesContext context )
330+ int width , Theme theme , FacesContext context , String id )
331331 throws IOException {
332332 Icon img = ThemeUtilities .getIcon (theme , ThemeImages .CTS_SPACER_IMAGE );
333333 img .setParent (component );
334- img .setId (SPACER_IMAGE );
334+ img .setId (id );
335335 RenderingUtilities .renderComponent (img , context );
336336 }
337337
0 commit comments