isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Nišević <>
Subject Specifying cssClass in runfime?
Date Sat, 19 Aug 2017 16:58:03 GMT
Hi, I have a requirement to present the background of specific property
based on its value or depending on other object properties. Currently I can
define cssClass as described
at development time.

It would be great if I could define a kind of specification class similar
which returns cssClass in runtime.

It could look like this

public class Customer {
    public String getFirstName() { ... }

public class MyCssClass implements CssSpecification {
    public String cssClass(Object obj) {
        if (((Customer) getFirstName())==null)
          return "x-test";
        return "x-firstName-not-empty";

Make this requirement sense, and if so, any hints how I could implement


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message