Please help me to solve the problem with returning list to .vm page
Hi, Im new to Apache velocity. Im trying to display a two lists in a .vm file. is that possible?
(Both lists are returned from the Controller class at different time of execution). Please help me to solve this issue.
Re: Please help me to solve the problem with returning list to .vm page
Not too sure what you're meaning.
Any example?
Re: Please help me to solve the problem with returning list to .vm page
Presumably those Edit buttons are associated with the row they're in on the table, so why does the second template have the entire table again, rather than the specific row?
How is the first form replaced by the second in your code?
Re: Please help me to solve the problem with returning list to .vm page
But the second one is only used when the user clicks on an Edit button?
What do you want returned by each pass through the controller?
Presumably the first pass supplies the initial table, and the second pass (on Edit?) will return the second?
If so then that implies two templates.
Re: Please help me to solve the problem with returning list to .vm page
You'll at least narrow down where it's failing.
Re: Please help me to solve the problem with returning list to .vm page
Quote:
Originally Posted by
Tolls
You'll at least narrow down where it's failing.
'#foreach($c in $clist)'
this is the line that fails to execute the way it should be.
Re: Please help me to solve the problem with returning list to .vm page
What are you passing into velocity for the clist?
What does "fail" mean as well?
Errors?
Incorrect output?