Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3227

[NOT A PROBLEM] WicketViewer cssClass Expression

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 2.0.0-M8
    • 2.0.0-M8
    • Viewer Wicket
    • None

    Description

      Setting icon colors via cssClass() doesn't work anymore.

      Compare screen above with

      application.css:

      .success .title-column .entityLinkSimplePanel  {
          color: green;
      }
      
      .error .title-column .entityLinkSimplePanel {
          color: red;
      }
      
      .running .title-column .entityLinkSimplePanel {
          color: orange;
      }
      

      and Endpoint.java:

          public String cssClass() {
              if (response.startsWith(CheckResult.SUCCESS.getValue())) {
                  return "success";
              }
              if (response.startsWith(CheckResult.ERROR.getValue())) {
                  return "error";
              }
              return "running";
          }
      

      c.f. https://the-asf.slack.com/archives/CFC42LWBV/p1651833195371239

      Furthermore, after clicking on the column header (for sorting), font and row colors changed.

      Attachments

        1. 2022-09-29 13_03_39-Endpoints.png
          93 kB
          Jörg Rade
        2. image.png
          42 kB
          Jörg Rade

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hobrom Andi Huber
            joerg.rade Jörg Rade
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment