For the taglib 2 project we want to implement the mm:function tag. Which would for
example work like
this:
<mm:listnodes type="mediafragments">
<mm:function name="url">
<mm:param name="preferredformat">rm</mm:param>
<mm:param name="bandwidth">200</mm:param>
</mm:function>
</mm:listnodes>
So, generally there we want 'named parameters'. Of course, it would be nice that the
function tag
can somehow check if there are not added nonsensical parameters.
Functions do now correspond to entries in the 'executeFunction' implementation of the
MMObjectBuilder. MMObjectBuilder's ecuteFunction and the corresponding
'getFunctionValue' of the
bridge (in Node) accept only a List of arguments. I've already made (more or less as a
test, but
also because it is almost necessary to get thing rights in e.g. servletbuilders), a
util by which it
is easy to name the entries of a List (see org.mmbase.util.Arguments). You can define
an then array
of Argument constant for each function, and instatiate an Arguments List with this,
which then will
be of the desired format always.
I would probably propose to depend on something like this, for the function tag to
work in a nice
way, but I think it is good that we speak about this shortly.
It is also related to the applications 2 project, because in this project functions
are to be
defined on several levels (amongst wich on node level).
I propose a real-life meeting on thursday or friday morning.
Michiel
--
mihxil' Michiel Meeuwissen
Mediapark C101 Hilversum
+31 (0)35 6772979
[]()