I have a scenario where it would be really useful to support entirely
dynamic ViewComponents. By this I mean something like this

 

<div id=container>

#foreach ($name in $compmentNames)

                                #component($name)

#end

</div>

 

The situation above is currently supported however things get more
tricky if we want to supply arguments to the components. Suppose instead
of a list of component names I have a dictionary that maps names to
dictionaries of parameters it would be nice to be able to do this:



<div id=container>

#foreach ($entry in $compmentDict)

                                #component($entry.Key $entry.Value)

#end

</div>

 

At the moment a Dictionary param to the component is only supported
using the NVelocity dictionary "%{  ....}" syntax. "$" lookup is
supported in both the dictionary and with syntax but not as a way of
supplying a bare dictionary.

 

Would there be general interest in supporting this? I think the patch is
simple.

 

Thanks

Jon

 

 

Jon Palmer
Senior Software Engineer, Contact Networks
35 Thomson Place T3 | Boston, MA 02210
O: 617.856.1836 | M: 415.269.1862

 

Contact Networks, a Thomson Reuters company, is the global leader of B2B
social networking for professionals.

 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

<<inline: image001.gif>>

Reply via email to