I have an _expression_ <XDtClass:classTagValue tagName="ejb:const" paramName="value"/> that I want to use inside of a <XDtType:ifIsNotPrimitiveOrString> _expression_.  But I can’t seem to find how to save the _expression_ as a variable to use be used as the “value” parameter of ifIsNotPrimitiveOrString.  Any ideas?

 

Basically what I’m trying to do is build on top of an idea someone had to allow you to specify constants in an EJB remote interface:

<XDtClass:ifHasClassTag tagName="ejb:const">
   <XDtClass:forAllClassTags tagName="ejb:const">
    public static final <XDtClass:classTagValue tagName="ejb:const"
 paramName="type"/> <XDtClass:classTagValue tagName="ejb:const"
 paramName="name"/> = new <XDtClass:classTagValue tagName="ejb:const"
 paramName="type"/>(<XDtClass:classTagValue tagName="ejb:const"
 paramName="value"/>);
   </XDtClass:forAllClassTags>
 </XDtClass:ifHasClassTag>
 <XDtClass:ifDoesntHaveClassTag tagName="ejb:const">
    // if you want to add public static fields please use the tag ejb.const
 (remote-custom.xdt)
 </XDtClass:ifDoesntHaveClassTag>

 

The problem is that it doesn’t support Strings and primitive types.  So I need to do some conditional logic.  But the value I need to be conditional on, is the _expression_ I mentioned at the beginning.

Reply via email to