You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Döring Markus <Ma...@tcc-products.de> on 2008/04/09 17:13:30 UTC

[Trinidad] skinning all input components

Hi all,

 

I'm currently skinning some input components to have some nice style.

I've completed it for the tr:inputText, but I don't want to copy-past the style to every input component (like selectOneChoice, selectManyChoice, ect. ect.)

Is there an easy way (global skin selector) to skin the all of the input components at once (like af:input:content or something like this)

 

Thanks for help

Markus Döring

TCC Products GmbH


Re: [Trinidad] skinning all input components

Posted by Andrew Robinson <an...@gmail.com>.
Just use a comma-separated list in your skin (if you don't have your
own skin, I recommend using one).

af|inputText,
af|selectOneChoice,
etc. {
  color: red;
}

On Wed, Apr 9, 2008 at 9:13 AM, Döring Markus
<Ma...@tcc-products.de> wrote:
>
>
>
>
> Hi all,
>
>
>
> I'm currently skinning some input components to have some nice style.
>
> I've completed it for the tr:inputText, but I don't want to copy-past the
> style to every input component (like selectOneChoice, selectManyChoice, ect.
> ect.)
>
> Is there an easy way (global skin selector) to skin the all of the input
> components at once (like af:input:content or something like this)
>
>
>
> Thanks for help
>
> Markus Döring
>
> TCC Products GmbH

AW: [Trinidad] skinning all input components

Posted by Döring Markus <Ma...@tcc-products.de>.
Hi,
I've found the .AFFieldText and it' exactly what I've searched, thanks for help

With best regards
Markus Döring

-----Ursprüngliche Nachricht-----
Von: Yee-wah Lee [mailto:yee-wah.lee@oracle.com] 
Gesendet: Donnerstag, 10. April 2008 22:51
An: MyFaces Discussion
Betreff: Re: [Trinidad] skinning all input components

Hi Markus,

Did you check the aliases to see if any of them could help?
http://myfaces.apache.org/trinidad/devguide/skinning.html#Alias_skinning_keys
http://myfaces.apache.org/trinidad/skin-selectors.html

Thanks,
Yee-Wah

Döring Markus wrote:
>
> Hi all,
>
> I'm currently skinning some input components to have some nice style.
>
> I've completed it for the tr:inputText, but I don't want to copy-past 
> the style to every input component (like selectOneChoice, 
> selectManyChoice, ect. ect.)
>
> Is there an easy way (global skin selector) to skin the all of the 
> input components at once (like af:input:content or something like this)
>
> Thanks for help
>
> Markus Döring
>
> TCC Products GmbH
>
>
> ------------------------------------------------------------------------
>


Re: [Trinidad] skinning all input components

Posted by Zigc Junk <zi...@gmail.com>.
Use something like

.styleForSomeComponent {
  -tr-rule-ref: selector(".styleForMyInputText");
}

regard

Bill

On Thu, Apr 10, 2008 at 3:51 PM, Yee-wah Lee <ye...@oracle.com> wrote:
> Hi Markus,
>
>  Did you check the aliases to see if any of them could help?
>
> http://myfaces.apache.org/trinidad/devguide/skinning.html#Alias_skinning_keys
>  http://myfaces.apache.org/trinidad/skin-selectors.html
>
>  Thanks,
>  Yee-Wah
>
>  Döring Markus wrote:
>
> >
> > Hi all,
> >
> > I'm currently skinning some input components to have some nice style.
> >
> > I've completed it for the tr:inputText, but I don't want to copy-past the
> style to every input component (like selectOneChoice, selectManyChoice, ect.
> ect.)
> >
> > Is there an easy way (global skin selector) to skin the all of the input
> components at once (like af:input:content or something like this)
> >
> > Thanks for help
> >
> > Markus Döring
> >
> > TCC Products GmbH
> >
> >
> > ------------------------------------------------------------------------
> >
> >
>
>

Re: [Trinidad] skinning all input components

Posted by Yee-wah Lee <ye...@oracle.com>.
Hi Markus,

Did you check the aliases to see if any of them could help?
http://myfaces.apache.org/trinidad/devguide/skinning.html#Alias_skinning_keys
http://myfaces.apache.org/trinidad/skin-selectors.html

Thanks,
Yee-Wah

Döring Markus wrote:
>
> Hi all,
>
> I’m currently skinning some input components to have some nice style.
>
> I’ve completed it for the tr:inputText, but I don’t want to copy-past 
> the style to every input component (like selectOneChoice, 
> selectManyChoice, ect. ect.)
>
> Is there an easy way (global skin selector) to skin the all of the 
> input components at once (like af:input:content or something like this)
>
> Thanks for help
>
> Markus Döring
>
> TCC Products GmbH
>
>
> ------------------------------------------------------------------------
>