Hi, You can use the "closing and opening the html before and after the call" method, just make sure you disable the HTML cleaning in the html macro:
{{html clean="false"}} ... when opening an HTML macro, otherwise you get the mentioned rendering errors (because the HTML cleaner adds HTML elements to "clean" you html and ends up messing up your plans). Marius' suggestion (using the "wiki" parameter) also works, but it`s a bit fragile when you have an <a href="http://...."> element because it interprets the URL as wiki syntax, amongst other annoyances created by everything being parsed as wiki syntax in your html code. Hope this helps, Eduard On Thu, Dec 10, 2015 at 5:22 PM, Marius Dumitru Florea < mariusdumitru.flo...@xwiki.com> wrote: > 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 > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users