0

I`m working with springwebflow 2 and Zk 6.

I`m calling a method with 2 constants parameters

   <on-render>
      <evaluate expression="service.mythod(mypackage.Constants.ID_CATALOG_PERSON_SUFFIX_TYPE, mypackage.Constants.ApplicationConstant.LANGUAGE_ISO)" 
                result="viewScope.listSuffix" />
        </on-render>

It invoke the method but the parameter are null :

Constant CLASS:

   public class Constants {

    public final static String ID_CATALOG_PARTY_TYPE = "PARTY_TYPE";
    public final static String ID_CATALOG_PERSON ="PERSON";
}

can anybody help me?

Subodh Joshi
  • 12,717
  • 29
  • 108
  • 202
Makoton
  • 443
  • 3
  • 14
  • 1
    Ummm... I'm assuming you pasted an incomplete `Constants` class? The ones you're referencing in your Web Flow are not the ones you're showing in the class. – dbreaux Jul 14 '13 at 21:09

1 Answers1

1

Try Expression Templating something like this:

<evaluate expression="service.method(#{T(mypackage.Constants).ID_CATALOG_PERSON_SUFFIX_TYPE}, ...)"/>
dbreaux
  • 4,982
  • 1
  • 25
  • 64