]
Nick Belaevski resolved RF-4982.
--------------------------------
Resolution: Won't Fix
Assignee: Tsikhon Kuprevich
rich:calendar component styleClass is applied on the table and not
the actual input component
---------------------------------------------------------------------------------------------
Key: RF-4982
URL:
https://jira.jboss.org/jira/browse/RF-4982
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5,
3.1.6, 3.2.0, 3.2.0.SR1, 3.2.1, 3.2.2
Environment: Win XP, Linux Ubuntu 8.10, Jboss 4.2.2, JDK1.5 / JDK1.6 JSF1.2 RI
(mojarra)
Reporter: Mike
Assignee: Tsikhon Kuprevich
In case of a validation error we add a styleClass property (e.g. css-class
'failureMarker') on the relevant element (input, select etc.)
Unfortunately the rich:calendar component added this property on the table of the
calendar-popup, not at the input field as expected, see example:
Section of the rendered html of a calendar component:
Actual
...
<input type="text" value="xxx" class="rich-calendar-input
textDefault"/>
...
<input id="form:deliverydateInputCurrentDate" type="hidden"
value="11/2008" style="display: none;"
name="form:deliverydateInputCurrentDate"/>
</span>
<div id="form:deliverydateIFrame" style="display: none;"/>
<table id="form:deliverydate" class="rich-calendar-exterior
rich-calendar-popup failureMarker" cellspacing="0"
cellpadding="0" border="0"
onclick="$('form:deliverydate').component.skipEventOnCollapse=true;"
style="display: none; position: absolute; z-index: 3;">
<tbody>
...
Expected
...
<input type="text" value="xxx" class="rich-calendar-input
textDefault failureMarker"/>
...
<input id="form:deliverydateInputCurrentDate" type="hidden"
value="11/2008" style="display: none;"
name="form:deliverydateInputCurrentDate"/>
</span>
<div id="form:deliverydateIFrame" style="display: none;"/>
<table id="form:deliverydate" class="rich-calendar-exterior
rich-calendar-popup" cellspacing="0" cellpadding="0"
border="0"
onclick="$('form:deliverydate').component.skipEventOnCollapse=true;"
style="display: none; position: absolute; z-index: 3;">
<tbody>
...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: