myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: [Trinidad] use skin to specify source for tr:image
Date Mon, 20 Aug 2007 22:05:43 GMT
That did it, thank you

On 8/20/07, Jeanne Waldman <jeanne.waldman@oracle.com> wrote:
>
>  I just did a test, and you do have to add :alias to the end.
>  I ran the Trinidad demo with skin-family set to purple.
>  I added this to the purple css file:
>  .AFFooIcon:alias
> {content:url(/skins/purple/images/btns.gif); width:7px;
> height:18px}
>
>  Then I ran the icon demo.
>  I set name="foo" and I see my icon.
>
>  Sorry for misleading you.
>
>  - Jeanne
>
>
>  Jeanne Waldman wrote:
>  I'll try it myself real quickly. You might need :alias at the end of your
> key, but I doubt it.
>  - Jeanne
>
>  Matt Cooper wrote:
> Hi Andrew,
>
>  A few things you might try... specify quotes around the path in your URL
> and perhaps specify width/height dimensions, e.g.:
>
>  .AFFindIcon {
>    content:
> url("/skins/standard/images/icon_find_sml.png");
>    width: 16px;
>    height: 16px;
>
> }
>  If this still doesn't work, there might be a syntax error elsewhere in the
> raw skin's CSS file that could be preventing your icon from being parsed.
> That would be a little more difficult to track down depending on how large
> the CSS file is.
>
>  Thanks,
>  Matt
>
>
> On 8/20/07, Andrew Robinson <andrew.rw.robinson@gmail.com> wrote:
> > 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 <awiner@gmail.com> wrote:
> > > I believe the icon name here will be "find", not AFFind or
> > > AFFindIcon.
> > >
> > > -- Adam
> > >
> > >
> > > On 8/20/07, Andrew Robinson < andrew.rw.robinson@gmail.com> 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 <andrew.rw.robinson@gmail.com > wrote:
> > > > > Great, thank you
> > > > >
> > > > > On 8/20/07, Jeanne Waldman <jeanne.waldman@oracle.com> 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
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
>

Mime
View raw message