[xwiki-devs] List with HTML Form
Hi Devs, i like to create dynamic list inside a page with {{velocity}} {{html}} <form action="" id="song"> Song: <input type="text" name="name" value="Name of the song" /> <input type="button" value="Add Song" onclick='this.form.submit();'> </form> {{/html}} #if($request.getParameter("song")); $response.sendRedirect($doc.getURL('view')) #end $request.getParameter("name") {{/velocity}} I want to place some text-lines and they should be displayed in a table. Is there an example which already use something similar? Regards, Matthias -- View this message in context: http://xwiki.475771.n2.nabble.com/List-with-HTML-Form-tp7588413.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Tue, Dec 17, 2013 at 12:02 AM, Matthias Wegner <[email protected]> wrote:
Hi Devs,
i like to create dynamic list inside a page with
{{velocity}}
{{html}} <form action="" id="song"> Song: <input type="text" name="name" value="Name of the song" /> <input type="button" value="Add Song" onclick='this.form.submit();'> </form> {{/html}}
#if($request.getParameter("song")); $response.sendRedirect($doc.getURL('view')) #end $request.getParameter("name") {{/velocity}}
I want to place some text-lines and they should be displayed in a table. Is there an example which already use something similar?
It's not clear (for me at least) what you want to achieve. Do you need a list (as per the mail subject) or a table (as per the previous paragraph)? What do you want to put in the list/table? I don't see the relation between the pasted code and the mail topic. Are you trying to display the songs in a list/table? What's the meaning of the 'song' parameter? You use 'name' for the song name so I don't know what 'song' is. Hope this helps, Marius
Regards, Matthias
-- View this message in context: http://xwiki.475771.n2.nabble.com/List-with-HTML-Form-tp7588413.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Side note: the devs mailing list is "For XWiki development itself (to be used by Committers and Contributors to the XWiki development)." as stated on http://dev.xwiki.org/xwiki/bin/view/Community/MailingLists . I think your question is suited for the users mailing list. Thanks, Marius On Tue, Dec 17, 2013 at 7:43 AM, Marius Dumitru Florea <[email protected]> wrote:
On Tue, Dec 17, 2013 at 12:02 AM, Matthias Wegner <[email protected]> wrote:
Hi Devs,
i like to create dynamic list inside a page with
{{velocity}}
{{html}} <form action="" id="song"> Song: <input type="text" name="name" value="Name of the song" /> <input type="button" value="Add Song" onclick='this.form.submit();'> </form> {{/html}}
#if($request.getParameter("song")); $response.sendRedirect($doc.getURL('view')) #end $request.getParameter("name") {{/velocity}}
I want to place some text-lines and they should be displayed in a table. Is there an example which already use something similar?
It's not clear (for me at least) what you want to achieve. Do you need a list (as per the mail subject) or a table (as per the previous paragraph)? What do you want to put in the list/table? I don't see the relation between the pasted code and the mail topic. Are you trying to display the songs in a list/table? What's the meaning of the 'song' parameter? You use 'name' for the song name so I don't know what 'song' is.
Hope this helps, Marius
Regards, Matthias
-- View this message in context: http://xwiki.475771.n2.nabble.com/List-with-HTML-Form-tp7588413.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Hi Marius, thank you for your comment. I will respect the rule and think more about posting to devs-forum. I found a simple way and added it to http://extensions.xwiki.org/xwiki/bin/view/Extension/Lyrics. Regards, Matthias -- View this message in context: http://xwiki.475771.n2.nabble.com/List-with-HTML-Form-tp7588413p7588418.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Tue, Dec 17, 2013 at 11:20 PM, Matthias Wegner <[email protected]> wrote:
Hi Marius,
thank you for your comment. I will respect the rule and think more about posting to devs-forum.
Hi Matthias, Actually, I checked the most recent topics on this mailing list after I clicked Send and it seems that rule is not really followed. Maybe we need to update it. It seems devs mailing list is perceived as being about "developing on top of XWiki" more than "developing the XWiki platform".
I found a simple way and added it to http://extensions.xwiki.org/xwiki/bin/view/Extension/Lyrics.
I'm glad you found a solution. Thanks, Marius
Regards, Matthias
-- View this message in context: http://xwiki.475771.n2.nabble.com/List-with-HTML-Form-tp7588413p7588418.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (2)
-
Marius Dumitru Florea -
Matthias Wegner