[xwiki-users] How to use doc.displayHidden ?
Hello, I'm trying to create a form on a page, and would like to use displayHidden but I couldn't make it work as I expected ... This is what I do (in groovy, for a class Space.Class, and for its field "field") : As output, viewing the html source reveals that I get the <form> but nothing inside ... What's wrong ? Thanks, Jeremie -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-use-doc-displayHidden-tp7020234p702... Sent from the XWiki- Users mailing list archive at Nabble.com.
In fact, I have same behaviour (no output) if I replace "displayHidden" by "displayView" or "displayEdit" ... I must be doing something wrong but couldn't find it ... :/ -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-use-doc-displayHidden-tp7020234p703... Sent from the XWiki- Users mailing list archive at Nabble.com.
I suppose you're using the {{html}} macro so first make sure your HTML is valid (or use {{html clean="false"}} instead). For instance, make sure you don't output inline HTML elements (e.g. any form field) directly inside the form tag because it must have block-level elements as direct children. Wrap them with a DIV or use a definition list DL. This http://platform.xwiki.org/xwiki/bin/view/DevGuide/VerticalForms might be useful. Hope this helps, Marius On Fri, Nov 25, 2011 at 3:56 PM, jerem <[email protected]> wrote:
In fact, I have same behaviour (no output) if I replace "displayHidden" by "displayView" or "displayEdit" ... I must be doing something wrong but couldn't find it ... :/
-- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-use-doc-displayHidden-tp7020234p703... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
jerem -
Marius Dumitru Florea