Hello Devs, 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? Thanks for all help.
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
On Thu, 10 Apr 2008 16:00:09 -0500, Kamna Jain wrote
Hello Devs,
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 ?
Yes, I wrote a simple application in such manner. Just <form > and javascript inside xwiki (inside {pre} {/pre} tags) Javascript can use prototype js library, bundled with xwiki form parameters can be retrieved with $request.getParameter() also it is possible do request redirects.
Also, if we wanted to create tandard 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?
Thanks for all help. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Ruslan Shevchenko GradSoft. http://www.gradsoft.ua
Hi, On Apr 10, 2008, at 11:00 PM, Kamna Jain wrote:
Hello Devs,
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?
There are some tutorials that explain this at http://platform.xwiki.org/xwiki/bin/view/DevGuide/ More specifically I recommend this one: http://www.theserverside.com/tt/articles/article.tss?l=XWiki In term of creating UIs XWiki supports several options: * HTML forms * GWT * Any technology you want using XMLRPC. For example the XEClipse project uses Eclipse RCP for doing the UI and communicates with the xwiki server using XMLRPC. Hope it helps, -Vincent
participants (4)
-
Guillaume Lerouge -
Kamna Jain -
rssh -
Vincent Massol