3 Replies Latest reply on Jan 22, 2008 3:13 AM by nathandennis

    Attribute

    nathandennis

      seam 2.0.1CR1
      jboss 4.2.1

      id attribute will not render on a s:graphicImage.

       <s:graphicImage id="phototoedit"
       value="#{modeditAction.outpic}"
       style="border:0px;"
       rendered="#{modeditAction.outpic != null}"/>


      renders as

      <img src="/picture/seam/resource/graphicImage/org.jboss.seam.ui.GraphicImageStore.-4aa1b80-11799ac64d4--7fee.png" style="border:0px;" />



      any suggestions?

        • 1. Re: Attribute
          pmuir

          File a JIRA issue, I expect the id attribute isn't wired.

          • 2. Re: Attribute
            nathandennis

            as i feared.. thanks for the response
            http://jira.jboss.org/jira/browse/JBSEAM-2517

            • 3. Re: Attribute
              nathandennis

              playing 10 years of catch up in java and 5 years of catch up in seam.

              is see org.jboss.seam.ui.graphicImage.GraphicImageRendererBase
              calls a

               HTML.renderHTMLAttributes(writer, component, HTML.IMG_PASSTHROUGH_ATTRIBUTES);
              
              



              org.jboss.seam.ui.util.HTML.java

              are we missing and ID_ATTR ?

              public static final String[] IMG_ATTRIBUTES =
               {
               ALIGN_ATTR,
               ALT_ATTR,
               BORDER_ATTR,
               HEIGHT_ATTR,
               HSPACE_ATTR,
               ISMAP_ATTR,
               LONGDESC_ATTR,
               USEMAP_ATTR,
               VSPACE_ATTR,
               WIDTH_ATTR
               };
              
               public static final String[] IMG_PASSTHROUGH_ATTRIBUTES =
               concat(
               IMG_ATTRIBUTES,
               COMMON_PASSTROUGH_ATTRIBUTES);
              



              dont laugh too hard if that was stupid beyond words. just making a stab at it. :)