Vadim Gritsenko wrote:
Daniel Fagerstrom wrote:
BURGHARD �ric wrote:
I have never disputed that things might be clumsy now, I just think we should focus on getting the flowscript way better, instead of adding things that makes the sitemap more of a programming language, by handling a more diverse set of datatypes then strings.<generate type="jx" src=".."> <!-- pass authentication dom to jx --> <parameter name="auth" dom="{session-context:authentication}"/> </generate>
This one is absolutely same issue you are discussing here:
http://issues.apache.org/bugzilla/show_bug.cgi?id=9916
IMHO, it is worth to discuss the issue of passing object parameters by itself, without mixing flow or jx into it, as a bonus we might get resolution for a 2.5 years old feature request.
As for implementation, probably extending Parameters with getParameterAsObject, setParameter(String, Object) should be enough.
And changes to VariableResolver so that it returns an object if it only contains an input module expression.
We can add getParameterAsObject() to o.a.c.sitemap.SitemapParameters that was created to add getStatementLocation().
Sylvain
-- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
