0 Replies Latest reply on May 14, 2006 9:47 AM by berserksangr

    How to access a const (final static field) from the JSF page

    berserksangr Newbie

      How to reference a const value from within the EL field? For example:

      package com.foo;
      public class A {
      public final static String VALUE_OK = "OK";

      In jsf this doesn't work:
      <h:outputText value="#{com.foo.A.VALUE_OK}"/>

      When storing this const in a backing bean this const cannot be
      accessed too. Writing access method for every constant is so ugly that I even don't take it into account...