Well I have:

<tr:icon name="find" />

But the icon doesn't get found. I tried different style names in the
skin css and still no luck. The icon is always registered as a null
icon. I see that the code looked for "find" and "AFFindIcon", but the
result of both was null. The skin just doesn't seem to be able to find
that icon from the CSS file. Does the icon have to be registered
someone besides just being present in the CSS file?

On 8/20/07, Adam Winer <[EMAIL PROTECTED]> wrote:
> I believe the icon name here will be "find", not AFFind or
> AFFindIcon.
>
> -- Adam
>
>
> On 8/20/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> > Okay, I am having an issue with registering the icon. In my skin style css:
> >
> > .AFFindIcon {
> >   content: url(/skins/standard/images/icon_find_sml.png);
> > }
> >
> > This url pattern is working for my other images in the skin, but the
> > SkinImpl is registering a null icon for this name. I know the png file
> > exists. Is there anything special that has to be done to ensure the
> > icon is registered?
> >
> > Thanks,
> > Andrew
> >
> > On 8/20/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> > > Great, thank you
> > >
> > > On 8/20/07, Jeanne Waldman <[EMAIL PROTECTED]> wrote:
> > > > Hi Andrew,
> > > >
> > > > You would like to be able to have an icon in your skin, right? icons end
> > > > in 'icon' and they get rendered as <img> tags (or text).
> > > > Like:
> > > > af|xyz::my-icon { content: url("help.png")};
> > > >
> > > > tr:image does not do this for you.
> > > >
> > > > tr:icon will.
> > > > Try:
> > > > <tr:icon name="foo"> where in your skinning css file you have a selector
> > > > that is
> > > > .AFFooIcon {content: url("xxx/xxx/abc.gif"); width: 15px; height: 20px;}
> > > >
> > > > - Jeanne
> > > >
> > > > Andrew Robinson wrote:
> > > > > Is it possible to have a tr:image without a source attribute, but to
> > > > > delegate that URL to the skin? Right now I am using a bean to set the
> > > > > skin, so I can get a different image per skin, but I have to keep the
> > > > > image name the same in all skins. It would be a cleaner solution to
> > > > > have some way for the skin to set the source.
> > > > >
> > > > > Thanks,
> > > > > Andrew
> > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to