incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott O'Bryan (JIRA)" <>
Subject [jira] Commented: (ADFFACES-216) Customize message styles per severity
Date Wed, 04 Oct 2006 17:39:21 GMT
    [ ] 
Scott O'Bryan commented on ADFFACES-216:

The skinning system supports properties.  For instance, to decorate the "content" region of
the tr:input tag, you might make a class like:


To change this style based on if an error message is present, you would be able to add the


How this translated on the client side is that if you would have the following DOM:

<div class="tr_input">
  <input type="text" id="123" class="content"/>

The "input" element would have the tr|input::content style.  By "appending" a special class
to the root element:

<div class="tr_input p_AFError">
  <input type="text" id="123" class="content"/>

then the tr|input:error::content class would ALSO be appended to the "input" class.  When
they render, the editable value components need to be enhanced to check their messages.  If
messages are present, they need to find the most sever message and APPEND one of the following
styleclasses to their "root" elements:


I don't have time to do this right now, so if someone else is interested in making this enhancement,
have fun.  :)  Otherwise, I'll get to it when I can.

> Customize message styles per severity
> -------------------------------------
>                 Key: ADFFACES-216
>                 URL:
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>          Components: Skinning
>         Environment: Java 1.5, jboss 4.0.3
>            Reporter: Daniel Hannum
> I'd like to style my message component differently based on the severity of the messages
being displayed. I see selectors to control the icons for each severity, but not the inline
styling. For example, I want to make all the errors red and bold and all the infos something
> I see that there are default styles already there. Errors already appear red and info
appear black. This is through existing classes such as .OraInlineErrorText. However, customizing
them in my skin file didn't have any effect. It appears that you cannot change message styles
on a per-severity basis.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message