myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Korherr <>
Subject Re: [MyFaces] Get rid of "ALT attribute is missing" warnings for images
Date Thu, 22 Jul 2010 09:25:46 GMT

j_id2 is the clientId of the h:graphicImage component. However this id does
not have to be rendered for images, thus you don't find it in the HTML.

Just set the alt attribute on the image and the warning will be gone. This
attribute should IMO always be set (especially when thinking about users
with visual impairment). However on MyFaces core 2.0.x the warning will be
gone if you're in ProjectStage = Production.


2010/7/22 schneidc <>

> Hi,
> I always get this kind of warnings when browsing through the pages of my
> application:
> [22.07.10 10:12:46:578 CEST] 00003c0b HtmlImageRend W
> org.apache.myfaces.shared_impl.renderkit.html.HtmlImageRendererBase
> encodeEnd ALT attribute is missing for : j_id12
> The strange thing for me is that the HTML of the pages doesn't contain the
> ids mention in the console output.
> Has anybody an idea whats causing these warnings and how I could get rid of
> them warnings?
> Regards
> Simon
> --
> View this message in context:
> Sent from the MyFaces - Users mailing list archive at

Jakob Korherr


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message