Author: abelevich
Date: 2011-01-27 11:02:49 -0500 (Thu, 27 Jan 2011)
New Revision: 21283
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/AccordionItemHeaderRenderer.java
Log:
RF-10262 Accordion: two icons displayed in each item
- active and inactive icons were reversed.
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/AccordionItemHeaderRenderer.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/AccordionItemHeaderRenderer.java 2011-01-27
15:27:50 UTC (rev 21282)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/AccordionItemHeaderRenderer.java 2011-01-27
16:02:49 UTC (rev 21283)
@@ -44,12 +44,12 @@
writer.startElement(TD_ELEM, null);
writer.writeAttribute(CLASS_ATTRIBUTE, cssClass, null);
- if (isIconRendered(attrIconCollapsedValue)) {
- encodeIdIcon(writer, context, attrIconCollapsedValue, cssIconsClassPrefix
+ "-act", state);
+ if (isIconRendered(attrIconExpandedValue)) {
+ encodeIdIcon(writer, context, attrIconExpandedValue, cssIconsClassPrefix
+ "-act", state);
}
- if (isIconRendered(attrIconExpandedValue)) {
- encodeIdIcon(writer, context, attrIconExpandedValue, cssIconsClassPrefix
+ "-inact", state);
+ if (isIconRendered(attrIconCollapsedValue)) {
+ encodeIdIcon(writer, context, attrIconCollapsedValue, cssIconsClassPrefix
+ "-inact", state);
}
writer.endElement(TD_ELEM);
Show replies by date