cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Hofmann <Johannes.Hofm...@ecademix.com>
Subject jpath problem (solved)
Date Sat, 04 Jan 2003 20:59:07 GMT
Hi,

passing non-string objects via the bizData argument of sendPageAndWait()
in the flow-script did not work for me (see
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104133080428237&w=2)

Now I found out, that the javascript call

sendPageAndWait("user.xml", {"users":users});

Makes a string from the users object, whose methods become unavailable
to jpath by this.

If I use the following:

var map = new Packages.java.util.HashMap();
map.put("users", users);
sendPageAndWait("user.xml", map);

everything works as expected.

Best regards,
Johannes Hofmann
	  

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message