Hi all,

I am trying to read the visibility of an attribute, but it doesn't seem to
work.
Here is my code:

#foreach ( $att in $class.attributes )
  #if ($att.visibility == "vk_private")
    #set ($atttypename = $transform.findFullyQualifiedName($att.type))
      <tr>
        <td><bean:message key="prompt.${class.name}.${att.name}"/></td>
        <td><html:text property="$att.name" size="40" /></td>
      </tr>
    #else
      $att.name : $att.visibility : $att.type
    #end
#end

I expected the $att.visibility variable to contain values like "private",
"public" and so on, but when I added the #else part of the decision, I found
out that in fact, the values are "vk_private" "vk_public" and so on.

So I changed the #if to check whether $att.visibility matches "vk_private",
but although the variable contains the string "vk_private", it does not
match.


What am I doing wrong?

TIA,
Peter


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to