Hi Kamna, > I have been trying to figure if there is a possibility of adding HTML > forms > (UI to obtain input from users) to Xwiki as part of the application we are > trying to build. > I know that XWiki pages can be edited to include HTML code in them. But, I > guess my question is where should we be looking in the code to see how the > data that goes into the form fields as user input, would be processed by > the > XWiki Core? > Has anyone done this before ? > > Also, if we wanted to create standard UI in XWiki, would it be a better > option to create a template (.vm) file for this purpose? > > We also looked at creating Classes and Objects for this purpose but, I am > not sure if thats the option we need to choose. > > What would be the best way to accomplish this task?
It depends on what you want to do with the data you're gathering. If you want your data to be stored within wiki pages, then objects and classes are your bet choice. You can build your application so that users input data and the data is stored right into the pages of the space of your choice, the way it's done when you add a new reference on XWiki.org ( http://www.xwiki.org/xwiki/bin/view/References/) There's other options available. You might want to send the data you've gathered to a given mail address. In this case the best thing to do is to write your form in your page in plain old html and make use of velocity code + XWiki plugins such as the mailsender to process your data. So basically to help you further we'd need to know a bit more about what kind of data you'll be gathering and what you want to be able to do with it :-) Guillaume _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

