[xwiki-devs] help for communication ajax with script velocity
Hello, For a wiki, I 'd use the ajax but I do not see how it works with velocity . Background: In one of my forms I use two metadata "Database List " type. The first is a list of specialties. The second is a list of people. To make a link between the two lists , I defined a person as follows : specialty_name . Example for a person : his specialty : "test" Name: "toto" The value specified in the second list is " test_toto " My need : Whenever the user changes the state of the form of the first list ( specialty ) I would like to use a velocity script that returns me the list of people associated with this specialty. The parameter passed to the velocity script is the name of the specialty. How do I create the velocity script? You just create a new page , is not it ? If not for the script, there must be specific information to indicate that he must retrieve a value and return a list of users. Regards -- View this message in context: http://xwiki.475771.n2.nabble.com/help-for-communication-ajax-with-script-ve... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Sorry for the double post but I managed to make the ajax request that sends a parameter to a macro velocity but I have two points that I have not found how. How can I have access to my metadata? And how else can I do for the macro returns a json object? Thank you in advance -- View this message in context: http://xwiki.475771.n2.nabble.com/help-for-script-velocity-tp7588751p7588770... Sent from the XWiki- Dev mailing list archive at Nabble.com.
participants (1)
-
le bihan matthieu