[richfaces-issues] [JBoss JIRA] Commented: (RF-4982) rich:calendar component styleClass is applied on the table and not the actual input component

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Fri Dec 12 10:24:37 EST 2008


    [ https://jira.jboss.org/jira/browse/RF-4982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12442351#action_12442351 ] 

Nick Belaevski commented on RF-4982:
------------------------------------

Use inputStyle/inputClass attributes

> 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
>
> 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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list