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 "Reimann, Marco" <Ma...@hypoport.de> on 2006/05/17 15:35:35 UTC
Skinning of required components
Hi,
I'd like to mark a field as required not by a preceding .AFRequiredIcon
but by a label formatted as bold text.
Is it possible
a) to specify different css attributes for labels dependent on the
required attribute of the component
b) to disable the icon?
Thanks
Marco
Re: Skinning of required components
Posted by Jeanne Waldman <je...@oracle.com>.
If you want to customize an icon out of existence, then you would do use
the 'inhibit' property value in your skin definition like this::
.AFRequiredIcon:alias {content:inhibit}
If you want to change the icon from the * to a word, you can do
something like this:
.AFRequiredIcon:alias {content:REQ; color:orange}
Adam Winer wrote:
> (b) is fairly straightforward - you can customize an icon out of
> existance - but (a) is not currently possible. This'd be a
> worthwhile enhancement.
>
> -- Adam
>
>
> On 5/17/06, Reimann, Marco <Ma...@hypoport.de> wrote:
>
>> Hi,
>>
>> I'd like to mark a field as required not by a preceding .AFRequiredIcon
>> but by a label formatted as bold text.
>>
>> Is it possible
>>
>> a) to specify different css attributes for labels dependent on the
>> required attribute of the component
>> b) to disable the icon?
>>
>> Thanks
>>
>> Marco
>>
>>
>
Re: Skinning of required components
Posted by Adam Winer <aw...@gmail.com>.
(b) is fairly straightforward - you can customize an icon out of
existance - but (a) is not currently possible. This'd be a
worthwhile enhancement.
-- Adam
On 5/17/06, Reimann, Marco <Ma...@hypoport.de> wrote:
> Hi,
>
> I'd like to mark a field as required not by a preceding .AFRequiredIcon
> but by a label formatted as bold text.
>
> Is it possible
>
> a) to specify different css attributes for labels dependent on the
> required attribute of the component
> b) to disable the icon?
>
> Thanks
>
> Marco
>
>