Menu

#6 layout:date does not apply the cssClass attribute to icon

open
adam
5
2007-04-02
2007-03-30
Jonni Gani
No

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).

Discussion

  • adam

    adam - 2007-03-30

    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?

     
  • Jonni Gani

    Jonni Gani - 2007-04-02

    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.

     
  • adam

    adam - 2007-04-02

    Logged In: YES
    user_id=1700141
    Originator: NO

    Okay, I get it now :)
    I will get onto it very shortly.

     
  • adam

    adam - 2007-04-02
    • assigned_to: nobody --> adam_boas
     
  • Jon Beer

    Jon Beer - 2007-04-04

    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.

     
  • Jonathan

    Jonathan - 2007-04-05

    Logged In: YES
    user_id=1707446
    Originator: NO

    This is fixed in version 146

     
  • Jonathan

    Jonathan - 2007-04-05

    Logged In: YES
    user_id=1707446
    Originator: NO

    This is fixed in version 146

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.