Currently the <layout:date> tag applies the value of the cssClass attribute to the generated input field, but not the icon.
It makes more sense to apply the class to both. For example, if I have the following:
<layout:date cssClass="disabled" />
I expect both the input field and the icon to look disabled (greyed out).
Logged In: YES
user_id=1700141
Originator: NO
The icon which the date field uses is not determined by style but is the source of the image tag. When a date field is disabled it assigns the rollover (greyed out) image as the source of the image tag and removes the onclick attribute. Are you saying that in some instance you don't see this behaviour or are you saying that in your particular instance you would like to manage the appearance of the icon through style?
Logged In: YES
user_id=1102026
Originator: YES
Sorry I got myself confused. I don't need the CSS class to be applied to both. What I wanted was for both the text field and the icon to be greyed out when the disabled attribute is true. This is not case at the moment.
Logged In: YES
user_id=1700141
Originator: NO
Okay, I get it now :)
I will get onto it very shortly.
Logged In: YES
user_id=1700839
Originator: NO
To clarify, we're expecting this behaviour -
"When a date field is disabled it assigns the rollover (greyed out) image as the source of the image tag and removes the onclick attribute."
This currently isn't occuring for our usage of the tag because our BindStatus property isn't null. It's not null because we're using an adapter.
The renderLiveDatePicker method on line 134 of DateFieldTag only returns false if the BindStatus is null. We'd like it to also use the disabled attribute of the tag before returning true|false.
Logged In: YES
user_id=1707446
Originator: NO
This is fixed in version 146
Logged In: YES
user_id=1707446
Originator: NO
This is fixed in version 146