What I get is the code line *$services.evoS.addInstance("$type", "$pName", "$description") *printed in the wiki page. GIordano. 2016-01-13 12:18 GMT+01:00 Giordano NinonĂ <[email protected]>:
Hi devs,
I am developing a sort of UI for my java component and I have encountered a problem: In a wiki page I've put some input text boxes(i.e. *Page name: <input type="text" name="pName" >*) in which the user will insert the information needed by the method that I want to invoke from Velocity when I push a button.
I have tried some solution but I don't know how to do that, following the code in my page:
*{{velocity}}* *#if("$!request.create" == 1)* * $services.evoS.addInstance("$type", "$pName", "$description")* *#end*
*{{html}} * * <form action="" id="dataForm" method="POST">* * Page name: <input type="text" name="pName" value="$!pName"><br>* * Description: <input type="text" name="description" value="$!description"><br>* * Type: <input type="text" name="type" value="$!type"><br>* * <div>* * <input type="hidden" name="create" value="1"/> * * <span class="buttonwrapper">* * <input type="submit" value="Create" class="button"/>* * </span>* * </div>* *</form> * *{{/html}}*
* {{/velocity}}* Thank you, Giordano.