On May 4, 2009, at 12:46 PM, Jean-Vincent Drean wrote:
On Mon, May 4, 2009 at 11:29 AM, Thomas Mortagne
<thomas.mortagne(a)xwiki.com> wrote:
Hi devs,
In 2.0 architecture we have no way currently to print a strongly
formatted text (like JSON) or simply a plain text without XHTML which
we are doing generally using xpage=plain in XWiki 1.0
With the 1.0 syntax xpage=plain was mainly used to:
1/ Output data in special format (JSON, xls, etc). In those cases
{pre} was used to avoid xhtml transformations.
2/ Output xhtml content without the XWiki UI, I can think of one use
case where this content was put in ajax tooltips.
Is 2/ covered ? Do we need a xpage=xhtml for it ?
Note that xpage=xpart&vm=contentview.vm can be used as a workaround.
If you we want to have something clean for the future it seems to me
that having a parameter called outputType (or simply output, or type,
or contentType) which can take all renderer values would be best.
For ex outputType=xhtml, xwiki, text, pdf, rtf, etc
And when not specified it would default to outputType=xhtml.
For removing the UI I'd use another parameter since it's orthogonal.
Something like showUI=true|false
Thanks
-Vincent