On Thu, Dec 10, 2015 at 5:03 PM, gervwyk <gerv...@gmail.com> wrote:

> I'm creating a form but I prefer using HTML and bootstrap rather than only
> velocity syntax. I have the following problem:
>
> <http://xwiki.475771.n2.nabble.com/file/n7597164/userlist.png>
>
> I want to insert user selection list into the form. By doing the following:
>
> {{velocity}}
>


> {{html velocity="true" }}
>

Check the HTML Macro parameters
http://extensions.xwiki.org/xwiki/bin/view/Extension/HTML+Macro#HParametersdefinition
. There's no "velocity" parameter. There is a "wiki" parameter though,
maybe that's what you need.


> <div some html details>
>      #set( $tempobj = $doc.newObject('Classes.USR'))
>      $tempobj.display('userslist','edit')
>
> </div>
> {{html velocity="true" }}
> {{/velocity}}
>
> however I get the {{html}} tag around the search box which I don't want.
> How
> can I remove this?
> closing and opening the html before and after the call gives rendering
> errors. Is there a way to all the  $tempobj.display('userslist','edit')
> function without rendering the {{html}} tags?
> Which function in java lib will give me a simular output? maybe I can do
> this through a java component?
> What output does the    displayEdit() method in BaseObject class give?
>
> I tried something like this, but did not work, I might be totally wrong..
>
>                   XWikiContext xcontext = this.xwikiContextProvider.get();
>                   DocumentReference referenceClass =
> resolver.resolve("Classes.USR");
>                   XWikiDocument doc = xcontext.getDoc();
>                   BaseObject domainObject = doc.getXObject(referenceClass);
>                   String disp = domainObject.displayEdit("userslist",
> xcontext);
>                   return disp
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/Xwiki-html-parsing-of-user-list-tp7597164.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to