incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Heinisch" <>
Subject AW: [SPAM] - Skin Enhancement Request - Bayesian Filter detected spam
Date Wed, 28 Jun 2006 16:24:58 GMT
Hi Dan,

Are you looking for a solution like this:

            <af:inputText value="#{bindings.Title.inputValue}"
                          styleClass="#{bindings.Title.mandatory ? 'required' : 'nonrequired'}"

The EL expression in the attribute styleClass makes the trick. The EL expression resolves
to styleClass="required" when the Title is mandatory (example uses Oracle ADF which provides
for a property like 'Title' some metadata like 'mandatory' or 'updatable').

The styleclass must be defined in a CSS or your Skin-CSS:

input.required, textarea.required, select.required {
  background-color: rgb(255,255,181);
  border-style: solid ;
input.nonrequired, textarea.nonrequired, select.nonrequired {
  background-color: white;
  border-style: solid ;

>From my point of view everything you need is available to solve your styling needs. ;-)

Markus Heinisch      


Trivadis GmbH 
Freischützstrasse 92 
81927 München 
Tel.: +49-89-99275930
Fax : +49-89-99275959 
Mobile: +49-162-2959616

> -----Ursprüngliche Nachricht-----
> Von: Dan Robinson [] 
> Gesendet: Mittwoch, 28. Juni 2006 18:02
> An:
> Betreff: [SPAM] - Skin Enhancement Request - Bayesian Filter 
> detected spam
> I don't think this is currently possible, but please prove me wrong!
> We'd like to provide a skin configuration that would cause 
> certain styles to be appled when a field is marked as 
> required.  Specifically, we'd like to cause the input field 
> background colour to be changed to make it very obvious that 
> it is required.
> So far we've only been able to set the background color for 
> all elements of an input field (label, tip, etc.).
> I guess an extension of this would be to make the label bold etc. etc.
> Thanks,
> Danny

View raw message