Thanks Thomas, It was the last one. Il 13/gen/2016 13:29, "Thomas Mortagne" <[email protected]> ha scritto:
Are you sure your ScriptService component have has @Named("evoS") ? Or maybe you forgot to register it in component.txt file.
Another possibility is that your method return null (when a method return null Velocity print as if it was not existing).
On Wed, Jan 13, 2016 at 12:20 PM, Giordano NinonĂ <[email protected]> wrote:
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.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users