Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: no return from getClientDependencies()

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default no return from getClientDependencies()

    I am writing an Apache Velocity report template (below).
    $section.getClientDependencies() apparently returns nothing because the next line (foreach loop) finds nothing.

    $section is an instancespecification.

    I have verified that I have the right $section value (below).
    Section Desc: $section.description)
    Section Layout: $section.layout)
    Section Format: $section.format)

    This next line is the problem:
    #set($outgoingDependencies = $section.getClientDependencies())
    #foreach($dep in $outgoingDependencies)...

    UML diagram.jpg


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,718
    My Mood
    Mellow
    Thanks
    231
    Thanked 706 Times in 692 Posts

    Default Re: no return from getClientDependencies()

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

Similar Threads

  1. can i return two values from a return method?
    By tonu in forum Object Oriented Programming
    Replies: 4
    Last Post: January 1st, 2014, 10:02 AM
  2. Replies: 1
    Last Post: July 29th, 2013, 06:22 AM
  3. return help
    By Kalle in forum What's Wrong With My Code?
    Replies: 7
    Last Post: February 21st, 2012, 04:33 PM
  4. Return Object does not return the expected output
    By Nour Damer in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 13th, 2011, 07:24 AM
  5. how to return value ..
    By gr8mind in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 11th, 2011, 04:27 AM