You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Cosma Colanicchia <co...@gmail.com> on 2006/07/04 13:05:49 UTC

Simple question about skins and image borders

Hi,

I'm trying to remove the image borders using a Trinidad skin, but I can't
find a component named objectImage in the adf-faces-skins-doc.xml. I would
like to do this in the skin, instead of loading a separate css with a
generic .image { border-width: 0px } style.

This should be an easy one, but still can't find where I'm wrong. Anyone can
help?

Thank you
Cosma

Re: Deploy the WAR file

Posted by Matthias Wessendorf <ma...@apache.org>.
well, the WAR from the continuum build works for me on TC.
Not used JBoss (they have tc included, right?)

So what ugly messages are you seeing?

-Matthias

On 7/4/06, Chaitanya Kadaru <ch...@oracle.com> wrote:
> Hi
>
> I was deploying the WAR file on jboss which was available from the download, but then I was getting a lot of classcastexceptions.
>
> AM I missing anything basic? Please help me.
>
>
> Thanks
>
> Chaitanya Kadaru
>
>
> -----Original Message-----
> From: Cosma Colanicchia [mailto:cosmacol@gmail.com]
> Sent: Tuesday, July 04, 2006 3:12 PM
> To: adffaces-user@incubator.apache.org
> Subject: Re: Simple question about skins and image borders
>
> Ok, this is a solution.. but I think that 99.9% of people using af:objectImage out there don't want those ugly borders, maybe we could create a skinning hook for this component.
>
> If you agree I can create a JIRA for this.
>
> Cosma
>
>
>
> 2006/7/4, Jeanne Waldman <je...@oracle.com>:
> > Hello,
> >
> > There are no specific skinning hooks for the objectImage component,
> > which is why you don't see it documented.
> >
> > Are you trying to remove the image borders of the objectImage component?
> >
> > If so, you can use the styleClass or inlineStyle attributes.
> > If you use inlineStyle, it would look like this:
> >
> > <af:objectImage inlineStyle="border-width:0px"/>
> >
> > - Jeanne
> >
> > Cosma Colanicchia wrote:
> >
> > > Hi,
> > >
> > > I'm trying to remove the image borders using a Trinidad skin, but I
> > > can't find a component named objectImage in the
> > > adf-faces-skins-doc.xml. I would like to do this in the skin,
> > > instead of loading a separate css with a generic .image {
> > > border-width: 0px } style.
> > >
> > > This should be an easy one, but still can't find where I'm wrong.
> > > Anyone can
> > > help?
> > >
> > > Thank you
> > > Cosma
> > >
> >
> >
>
>


-- 
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Simple question about skins and image borders

Posted by Adam Winer <aw...@gmail.com>.
+1 for adding something to the default skin to disable the
browser "feature" of borders around images in links.

-- Adam


On 7/5/06, Cosma Colanicchia <co...@gmail.com> wrote:
>
> Hi Jeanne,
>
> AFAIK yes, it's up to the user agent to provide a default value for
> the border attribute (see also [1]). I read somewhere that Gecko and
> IE browsers render a border by default on images within links, which
> is my case.
>
> By now, I resolved adding this rule in the skin CSS file:
>
> a img {
>    border-style: none;
> }
>
> I had already tried this but for some reason it didn't work, so I
> thought that "simple" css rules like that were not allowed in skin css
> files. Probably it was just my browser cache :)
>
> Anyway I'd prefer using a skin-aware css rule, if there will be one
> like you're suggesting.
>
>
> Thanks
> Cosma
>
> [1]http://www.w3.org/TR/REC-html40/struct/objects.html#adef-border-IMG
>
>
> 2006/7/5, Jeanne Waldman <je...@oracle.com>:
> > What is causing the borders anyway? Is it the browser default?
> > If so, we can create a skinning hook for these, and even default it in
> > the simple skin to border-width:0px.
> >
> > Cosma Colanicchia wrote:
> >
> > > Ok, this is a solution.. but I think that 99.9% of people using
> > > af:objectImage out there don't want those ugly borders, maybe we could
> > > create a skinning hook for this component.
> > >
> > > If you agree I can create a JIRA for this.
> > >
> > > Cosma
> > >
> > >
> > >
> > > 2006/7/4, Jeanne Waldman <je...@oracle.com>:
> > >
> > >> Hello,
> > >>
> > >> There are no specific skinning hooks for the objectImage component,
> > >> which is why you don't see it documented.
> > >>
> > >> Are you trying to remove the image borders of the objectImage
> component?
> > >>
> > >> If so, you can use the styleClass or inlineStyle attributes.
> > >> If you use inlineStyle, it would look like this:
> > >>
> > >> <af:objectImage inlineStyle="border-width:0px"/>
> > >>
> > >> - Jeanne
> > >>
> > >> Cosma Colanicchia wrote:
> > >>
> > >> > Hi,
> > >> >
> > >> > I'm trying to remove the image borders using a Trinidad skin, but I
> > >> can't
> > >> > find a component named objectImage in the adf-faces-skins-doc.xml.
> I
> > >> > would
> > >> > like to do this in the skin, instead of loading a separate css with
> a
> > >> > generic .image { border-width: 0px } style.
> > >> >
> > >> > This should be an easy one, but still can't find where I'm wrong.
> > >> > Anyone can
> > >> > help?
> > >> >
> > >> > Thank you
> > >> > Cosma
> > >> >
> > >>
> > >>
> > >
> >
> >
>

Re: Simple question about skins and image borders

Posted by Jeanne Waldman <je...@oracle.com>.
I agree that there should be an issue created for this. It is good to 
hear from
our users what things are common for them to skin.

Thanks,
Jeanne

Cosma Colanicchia wrote:

> Hi Jeanne,
>
> AFAIK yes, it's up to the user agent to provide a default value for
> the border attribute (see also [1]). I read somewhere that Gecko and
> IE browsers render a border by default on images within links, which
> is my case.
>
> By now, I resolved adding this rule in the skin CSS file:
>
> a img {
>   border-style: none;
> }
>
> I had already tried this but for some reason it didn't work, so I
> thought that "simple" css rules like that were not allowed in skin css
> files. Probably it was just my browser cache :)
>
> Anyway I'd prefer using a skin-aware css rule, if there will be one
> like you're suggesting.
>
>
> Thanks
> Cosma
>
> [1]http://www.w3.org/TR/REC-html40/struct/objects.html#adef-border-IMG
>
>
> 2006/7/5, Jeanne Waldman <je...@oracle.com>:
>
>> What is causing the borders anyway? Is it the browser default?
>> If so, we can create a skinning hook for these, and even default it in
>> the simple skin to border-width:0px.
>>
>> Cosma Colanicchia wrote:
>>
>> > Ok, this is a solution.. but I think that 99.9% of people using
>> > af:objectImage out there don't want those ugly borders, maybe we could
>> > create a skinning hook for this component.
>> >
>> > If you agree I can create a JIRA for this.
>> >
>> > Cosma
>> >
>> >
>> >
>> > 2006/7/4, Jeanne Waldman <je...@oracle.com>:
>> >
>> >> Hello,
>> >>
>> >> There are no specific skinning hooks for the objectImage component,
>> >> which is why you don't see it documented.
>> >>
>> >> Are you trying to remove the image borders of the objectImage 
>> component?
>> >>
>> >> If so, you can use the styleClass or inlineStyle attributes.
>> >> If you use inlineStyle, it would look like this:
>> >>
>> >> <af:objectImage inlineStyle="border-width:0px"/>
>> >>
>> >> - Jeanne
>> >>
>> >> Cosma Colanicchia wrote:
>> >>
>> >> > Hi,
>> >> >
>> >> > I'm trying to remove the image borders using a Trinidad skin, but I
>> >> can't
>> >> > find a component named objectImage in the 
>> adf-faces-skins-doc.xml. I
>> >> > would
>> >> > like to do this in the skin, instead of loading a separate css 
>> with a
>> >> > generic .image { border-width: 0px } style.
>> >> >
>> >> > This should be an easy one, but still can't find where I'm wrong.
>> >> > Anyone can
>> >> > help?
>> >> >
>> >> > Thank you
>> >> > Cosma
>> >> >
>> >>
>> >>
>> >
>>
>>
>


Re: Simple question about skins and image borders

Posted by Cosma Colanicchia <co...@gmail.com>.
Hi Jeanne,

AFAIK yes, it's up to the user agent to provide a default value for
the border attribute (see also [1]). I read somewhere that Gecko and
IE browsers render a border by default on images within links, which
is my case.

By now, I resolved adding this rule in the skin CSS file:

a img {
   border-style: none;
}

I had already tried this but for some reason it didn't work, so I
thought that "simple" css rules like that were not allowed in skin css
files. Probably it was just my browser cache :)

Anyway I'd prefer using a skin-aware css rule, if there will be one
like you're suggesting.


Thanks
Cosma

[1]http://www.w3.org/TR/REC-html40/struct/objects.html#adef-border-IMG


2006/7/5, Jeanne Waldman <je...@oracle.com>:
> What is causing the borders anyway? Is it the browser default?
> If so, we can create a skinning hook for these, and even default it in
> the simple skin to border-width:0px.
>
> Cosma Colanicchia wrote:
>
> > Ok, this is a solution.. but I think that 99.9% of people using
> > af:objectImage out there don't want those ugly borders, maybe we could
> > create a skinning hook for this component.
> >
> > If you agree I can create a JIRA for this.
> >
> > Cosma
> >
> >
> >
> > 2006/7/4, Jeanne Waldman <je...@oracle.com>:
> >
> >> Hello,
> >>
> >> There are no specific skinning hooks for the objectImage component,
> >> which is why you don't see it documented.
> >>
> >> Are you trying to remove the image borders of the objectImage component?
> >>
> >> If so, you can use the styleClass or inlineStyle attributes.
> >> If you use inlineStyle, it would look like this:
> >>
> >> <af:objectImage inlineStyle="border-width:0px"/>
> >>
> >> - Jeanne
> >>
> >> Cosma Colanicchia wrote:
> >>
> >> > Hi,
> >> >
> >> > I'm trying to remove the image borders using a Trinidad skin, but I
> >> can't
> >> > find a component named objectImage in the adf-faces-skins-doc.xml. I
> >> > would
> >> > like to do this in the skin, instead of loading a separate css with a
> >> > generic .image { border-width: 0px } style.
> >> >
> >> > This should be an easy one, but still can't find where I'm wrong.
> >> > Anyone can
> >> > help?
> >> >
> >> > Thank you
> >> > Cosma
> >> >
> >>
> >>
> >
>
>

Re: Simple question about skins and image borders

Posted by Jeanne Waldman <je...@oracle.com>.
What is causing the borders anyway? Is it the browser default?
If so, we can create a skinning hook for these, and even default it in 
the simple skin to border-width:0px.

Cosma Colanicchia wrote:

> Ok, this is a solution.. but I think that 99.9% of people using
> af:objectImage out there don't want those ugly borders, maybe we could
> create a skinning hook for this component.
>
> If you agree I can create a JIRA for this.
>
> Cosma
>
>
>
> 2006/7/4, Jeanne Waldman <je...@oracle.com>:
>
>> Hello,
>>
>> There are no specific skinning hooks for the objectImage component,
>> which is why you don't see it documented.
>>
>> Are you trying to remove the image borders of the objectImage component?
>>
>> If so, you can use the styleClass or inlineStyle attributes.
>> If you use inlineStyle, it would look like this:
>>
>> <af:objectImage inlineStyle="border-width:0px"/>
>>
>> - Jeanne
>>
>> Cosma Colanicchia wrote:
>>
>> > Hi,
>> >
>> > I'm trying to remove the image borders using a Trinidad skin, but I 
>> can't
>> > find a component named objectImage in the adf-faces-skins-doc.xml. I
>> > would
>> > like to do this in the skin, instead of loading a separate css with a
>> > generic .image { border-width: 0px } style.
>> >
>> > This should be an easy one, but still can't find where I'm wrong.
>> > Anyone can
>> > help?
>> >
>> > Thank you
>> > Cosma
>> >
>>
>>
>


Deploy the WAR file

Posted by Chaitanya Kadaru <ch...@oracle.com>.
Hi

I was deploying the WAR file on jboss which was available from the download, but then I was getting a lot of classcastexceptions. 

AM I missing anything basic? Please help me. 


Thanks

Chaitanya Kadaru


-----Original Message-----
From: Cosma Colanicchia [mailto:cosmacol@gmail.com] 
Sent: Tuesday, July 04, 2006 3:12 PM
To: adffaces-user@incubator.apache.org
Subject: Re: Simple question about skins and image borders

Ok, this is a solution.. but I think that 99.9% of people using af:objectImage out there don't want those ugly borders, maybe we could create a skinning hook for this component.

If you agree I can create a JIRA for this.

Cosma



2006/7/4, Jeanne Waldman <je...@oracle.com>:
> Hello,
>
> There are no specific skinning hooks for the objectImage component, 
> which is why you don't see it documented.
>
> Are you trying to remove the image borders of the objectImage component?
>
> If so, you can use the styleClass or inlineStyle attributes.
> If you use inlineStyle, it would look like this:
>
> <af:objectImage inlineStyle="border-width:0px"/>
>
> - Jeanne
>
> Cosma Colanicchia wrote:
>
> > Hi,
> >
> > I'm trying to remove the image borders using a Trinidad skin, but I 
> > can't find a component named objectImage in the 
> > adf-faces-skins-doc.xml. I would like to do this in the skin, 
> > instead of loading a separate css with a generic .image { 
> > border-width: 0px } style.
> >
> > This should be an easy one, but still can't find where I'm wrong.
> > Anyone can
> > help?
> >
> > Thank you
> > Cosma
> >
>
>


Re: Simple question about skins and image borders

Posted by Cosma Colanicchia <co...@gmail.com>.
Ok, this is a solution.. but I think that 99.9% of people using
af:objectImage out there don't want those ugly borders, maybe we could
create a skinning hook for this component.

If you agree I can create a JIRA for this.

Cosma



2006/7/4, Jeanne Waldman <je...@oracle.com>:
> Hello,
>
> There are no specific skinning hooks for the objectImage component,
> which is why you don't see it documented.
>
> Are you trying to remove the image borders of the objectImage component?
>
> If so, you can use the styleClass or inlineStyle attributes.
> If you use inlineStyle, it would look like this:
>
> <af:objectImage inlineStyle="border-width:0px"/>
>
> - Jeanne
>
> Cosma Colanicchia wrote:
>
> > Hi,
> >
> > I'm trying to remove the image borders using a Trinidad skin, but I can't
> > find a component named objectImage in the adf-faces-skins-doc.xml. I
> > would
> > like to do this in the skin, instead of loading a separate css with a
> > generic .image { border-width: 0px } style.
> >
> > This should be an easy one, but still can't find where I'm wrong.
> > Anyone can
> > help?
> >
> > Thank you
> > Cosma
> >
>
>

Re: Simple question about skins and image borders

Posted by Jeanne Waldman <je...@oracle.com>.
Hello,

There are no specific skinning hooks for the objectImage component, 
which is why you don't see it documented.

Are you trying to remove the image borders of the objectImage component?

If so, you can use the styleClass or inlineStyle attributes.
If you use inlineStyle, it would look like this:

<af:objectImage inlineStyle="border-width:0px"/>

- Jeanne

Cosma Colanicchia wrote:

> Hi,
>
> I'm trying to remove the image borders using a Trinidad skin, but I can't
> find a component named objectImage in the adf-faces-skins-doc.xml. I 
> would
> like to do this in the skin, instead of loading a separate css with a
> generic .image { border-width: 0px } style.
>
> This should be an easy one, but still can't find where I'm wrong. 
> Anyone can
> help?
>
> Thank you
> Cosma
>