You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Shankar K <sh...@gmail.com> on 2008/04/20 08:34:02 UTC

tr:golink - oraLink styleClass overrides

Hi,

The styleClass "*OraLink*" gets added to the tr:goLink component inaddition
to the styleClass that I provide and overrides the styles that I have
provided in my styleClass. Although I have provided styles for OraLink in my
skin file, I wanted to override this particular go:Link with a different
style. Now, I'm unable to do this unless I provide inlineStyle.  Shouldn't
this be a bug ? I tried searching for any post on this but couldn't find.

The following line in my XHTML

<tr:goLink text="Breadcrumb" *styleClass="navigation_link" *
destination="/faces/breadcrumbs.xhtml">*
*
Translates to

<a href="/components/faces/breadcrumbs.xhtml" *class="navigation_link
OraLink*">Breadcrumb</a>

Appreciate your help

Thanks,
Shankar

Re: golink - oraLink styleClass overrides

Posted by Andrew Robinson <an...@gmail.com>.
I think I may have made a mistake again. It may just be .OraLink.yourClass

Sorry for the multiple emails, I am not at a computer to be able to
verify the code (ipod)

On 4/20/08, Andrew Robinson <an...@gmail.com> wrote:
> Sorry, that should have been one colon I think:
>
> .OraLink:.yourStyleClass {}
>
> On Sun, Apr 20, 2008 at 6:05 AM, Andrew Robinson
> <an...@gmail.com> wrote:
> > Another hack is to use both style selectors in your skin to increase the
> weight
> >  I think the syntax is something like:
> >
> >  oralink::yourstyle
> >
> >
> >
> >  On 4/20/08, Shankar K <sh...@gmail.com> wrote:
> >  > Hi,
> >  >
> >  > The styleClass "*OraLink*" gets added to the tr:goLink component
> inaddition
> >  > to the styleClass that I provide and overrides the styles that I have
> >  > provided in my styleClass. Although I have provided styles for OraLink
> in my
> >  > skin file, I wanted to override this particular go:Link with a
> different
> >  > style. Now, I'm unable to do this unless I provide inlineStyle.
> Shouldn't
> >  > this be a bug ? I tried searching for any post on this but couldn't
> find.
> >  >
> >  > The following line in my XHTML
> >  >
> >  > <tr:goLink text="Breadcrumb" *styleClass="navigation_link" *
> >  > destination="/faces/breadcrumbs.xhtml">*
> >  > *
> >  > Translates to
> >  >
> >  > <a href="/components/faces/breadcrumbs.xhtml" *class="navigation_link
> >  > OraLink*">Breadcrumb</a>
> >  >
> >  > Appreciate your help
> >  >
> >  > Thanks,
> >  > Shankar
> >  >
> >
>

Re: golink - oraLink styleClass overrides

Posted by Andrew Robinson <an...@gmail.com>.
Sorry, that should have been one colon I think:

.OraLink:.yourStyleClass {}

On Sun, Apr 20, 2008 at 6:05 AM, Andrew Robinson
<an...@gmail.com> wrote:
> Another hack is to use both style selectors in your skin to increase the weight
>  I think the syntax is something like:
>
>  oralink::yourstyle
>
>
>
>  On 4/20/08, Shankar K <sh...@gmail.com> wrote:
>  > Hi,
>  >
>  > The styleClass "*OraLink*" gets added to the tr:goLink component inaddition
>  > to the styleClass that I provide and overrides the styles that I have
>  > provided in my styleClass. Although I have provided styles for OraLink in my
>  > skin file, I wanted to override this particular go:Link with a different
>  > style. Now, I'm unable to do this unless I provide inlineStyle.  Shouldn't
>  > this be a bug ? I tried searching for any post on this but couldn't find.
>  >
>  > The following line in my XHTML
>  >
>  > <tr:goLink text="Breadcrumb" *styleClass="navigation_link" *
>  > destination="/faces/breadcrumbs.xhtml">*
>  > *
>  > Translates to
>  >
>  > <a href="/components/faces/breadcrumbs.xhtml" *class="navigation_link
>  > OraLink*">Breadcrumb</a>
>  >
>  > Appreciate your help
>  >
>  > Thanks,
>  > Shankar
>  >
>

Re: golink - oraLink styleClass overrides

Posted by Andrew Robinson <an...@gmail.com>.
Another hack is to use both style selectors in your skin to increase the weight
I think the syntax is something like:

oralink::yourstyle

On 4/20/08, Shankar K <sh...@gmail.com> wrote:
> Hi,
>
> The styleClass "*OraLink*" gets added to the tr:goLink component inaddition
> to the styleClass that I provide and overrides the styles that I have
> provided in my styleClass. Although I have provided styles for OraLink in my
> skin file, I wanted to override this particular go:Link with a different
> style. Now, I'm unable to do this unless I provide inlineStyle.  Shouldn't
> this be a bug ? I tried searching for any post on this but couldn't find.
>
> The following line in my XHTML
>
> <tr:goLink text="Breadcrumb" *styleClass="navigation_link" *
> destination="/faces/breadcrumbs.xhtml">*
> *
> Translates to
>
> <a href="/components/faces/breadcrumbs.xhtml" *class="navigation_link
> OraLink*">Breadcrumb</a>
>
> Appreciate your help
>
> Thanks,
> Shankar
>

Re: tr:golink - oraLink styleClass overrides

Posted by Stephen Friedrich <tr...@eekboom.com>.
Yes, that annoyed me, too.
I got around it by making my own css value !important.

Shankar K wrote:
> Hi,
> 
> The styleClass "*OraLink*" gets added to the tr:goLink component 
> inaddition to the styleClass that I provide and overrides the styles 
> that I have provided in my styleClass. Although I have provided styles 
> for OraLink in my skin file, I wanted to override this particular 
> go:Link with a different style. Now, I'm unable to do this unless I 
> provide inlineStyle.  Shouldn't this be a bug ? I tried searching for 
> any post on this but couldn't find.
> 
> The following line in my XHTML
> 
> <tr:goLink text="Breadcrumb" *styleClass="navigation_link" 
> *destination="/faces/breadcrumbs.xhtml">/
> /
> Translates to
> 
> <a href="/components/faces/breadcrumbs.xhtml" *class="navigation_link 
> OraLink*">Breadcrumb</a>
> 
> Appreciate your help
> 
> Thanks,
> Shankar