Hi,
Well, if it`s a random HTML form, you could go the hard way and have a
custom velocity script inside a page (your form's target) that processes
the request, gets the parameters and then uses XWiki`s API to store them
inside some other page's objects. An easier way is to properly name your
fields and submit to the destination page, using XWiki`s "save" action,
which will spare you all the backend work.
An even better approach is to use a sheet on the page where you want to
store your object and use XWiki`s inline edit mode to edit that page, which
will submit the resulting form to the page's save mode so most of the work
is already done for you.
It seems you`re new to XWiki, so welcome! Also, make sure you check out the
Developer Guide [1] so you can get up to speed with things like pages,
objects, classes, sheets, scripting API, etc. The FAQ Tutorial [2] is
usually the hands-on approach in achieving this quickly.
Let us know if you need any help after going through the available
documentation materials.
Hope this helps,
Eduard
P.S.: you have actually reached XWiki's development list, where we talk
about the actual development of XWiki itself. Even if your question is
about developing on top of XWiki, you might want to check out the user's
forum [3] which is the place to ask all questions related to using XWiki
(either as a regular user, or as an app/extension developer).
----------
[1]
http://platform.xwiki.org/xwiki/bin/view/DevGuide/
[2]
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial/
[3]
https://forum.xwiki.org/
On Fri, May 26, 2017 at 8:27 PM, Stefan Platon <platonfanica(a)yahoo.com>
wrote:
Hello. Could you tell me how can I take some values
from an html form and
set them to a xwiki class' attributes? Thank you.