im not really sure how extensible it is. but building your own is simple, just subclass abstractbehavior and override renderHead()
-igor On 8/18/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > I just checked in the 1.2 repo and couldn't find it either. Maybe it > is in a branch I didn't look at. > > Anyway, what about my original question? Wouldn't having a custom > headercontributor be the way to do this rather than a model that is > passed to stringheadercontributor? I don't want to redo everything > that is in stringheadercontributor, but am not clear how to extend it > to do what I want. Just looking for any suggestions. > > Thanks! > Tauren > > > On 8/18/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > hrm, i remember i added one there based on [1], but maybe it was removed > due > > to license incompatibilities before we moved to apache... > > > > [1] http://homepage.ntlworld.com/bobosola/pnghowto.htm > > > > -igor > > > > > > On 8/18/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > > > > > Igor, > > > > > > Really? I didn't see one. Then again, ModalWindow uses transparent > > > pngs and doesn't seem to have an issue. But I didn't see any code to > > > handle it in modal.js. Could you point me to where its at? > > > > > > If one doesn't exist, I'd be happy to contribute this. > > > > > > Tauren > > > > > > > > > On 8/18/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > there should already be a png fix for ie in extensions. > > > > > > > > -igor > > > > > > > > > > > > On 8/18/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Maybe its just late and I'm not thinking straight, but I can't > figure > > > > > out the best way to create a custom StringHeaderContributor. All > I > > > > > want it to is encapsulate some javascript that has some property > > > > > replacements in it. > > > > > > > > > > I have it working with a custom model as such: > > > > > > > > > > add(new StringHeaderContributor(new PngTransparency(this))); > > > > > > > > > > But I want it to look like this: > > > > > > > > > > add(new PngTransparencyHeaderContributor(this)); > > > > > > > > > > It's not really a big deal, but it seems like it would be cleaner > that > > > > > way. Here is the model class: > > > > > > > > > > public class PngTransparency extends Model { > > > > > > > > > > public static final ResourceReference PNGFIX = new > > > > > ResourceReference(PngTransparency.class, "PngTransparency.js"); > > > > > public static final ResourceReference TRANSPARENT_PIXEL = > new > > > > > ResourceReference(PngTransparency.class, "transparentpixel.gif"); > > > > > > > > > > public PngTransparency(Component component) { > > > > > > > > > > String output = > > > > > "<!--[if lt IE 7]>\n" + > > > > > " <script defer > > > type=\"text/javascript\" > > > > > src=\"" + > > > > > component.urlFor(PNGFIX) + "\"></script>\n" + > > > > > " <script language=\"javascript\" > > > > > type=\"text/javascript\">\n" + > > > > > " var pngTransparencyGif = \"" > + > > > > > component.urlFor(TRANSPARENT_PIXEL) + "\"\n" + > > > > > " </script>\n" + > > > > > "<![endif]-->\n"; > > > > > setObject(output); > > > > > } > > > > > } > > > > > > > > > > Any ideas? > > > > > > > > > > Tauren > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >