IRC Archive for channel #xwiki on 05 January 2009

Last modified by Vincent Massol on 2012/10/18 18:30

xwikibot - (05/01/2009 05:29): Main.News was modified by XWiki.Sergiu (Fixed a performance bug when displaying the latest blog entries) - http://www.xwiki.org/xwiki/bin/view/Main/News
xwikibot - (05/01/2009 05:32): Blog.Macros was modified by XWiki.Sergiu (Fixed a performance bug when viewing this page directly) - http://www.xwiki.org/xwiki/bin/view/Blog/Macros
xwikibot - (05/01/2009 08:36): XWiki.asb was modified by XWiki.asb (Created user) - http://www.xwiki.org/xwiki/bin/view/XWiki/asb
asyd - (05/01/2009 09:30): hello there
vmassol - (05/01/2009 09:43): hi
xwikibot - (05/01/2009 11:30): Macros.TocMacro20 was modified by xwiki:XWiki.ThomasMortagne - http://code.xwiki.org/xwiki/bin/view/Macros/TocMacro20
xwikibot - (05/01/2009 17:01): Design.NewWysiwygEditorInterface was modified by xwiki:XWiki.jvdrean - http://dev.xwiki.org/xwiki/bin/view/Design/NewWysiwygEditorInterface
xwikibot - (05/01/2009 17:34): XWiki.XWikiCommittersGroup was modified by XWiki.ludovic - http://www.xwiki.org/xwiki/bin/view/XWiki/XWikiCommittersGroup
xwikibot - (05/01/2009 17:35): XWiki.XWikiCommittersGroup was modified by xwiki:XWiki.ludovic - http://curriki.xwiki.org/xwiki/bin/view/XWiki/XWikiCommittersGroup
polx - (05/01/2009 23:38): hi everyone, how do you print in a groovy script included with parseGroovyFromPage ?
polx - (05/01/2009 23:38): response.getOutputStream() is "too early".
vmassol_ - (05/01/2009 23:44): polx: try out.print(...)
polx - (05/01/2009 23:45): I did...
polx - (05/01/2009 23:45): and it's not defined if I don't have a <% %> snippet in my page.
vmassol_ - (05/01/2009 23:45): oh I see
vmassol_ - (05/01/2009 23:46): I thought you were using <% %>
polx - (05/01/2009 23:46): well, i was trying to avoid it...
polx - (05/01/2009 23:46): (see my users@ post... I need to avoid it)
polx - (05/01/2009 23:48): so, vmassol_, is there a single way to do it with <% ? Is there a velocity's out ?
polx - (05/01/2009 23:48): (I couldn't find one)
vmassol_ - (05/01/2009 23:49): polx: I don't know
polx - (05/01/2009 23:50): too bad a too late... thanks still
vmassol_ - (05/01/2009 23:50): I think the answer
vmassol_ - (05/01/2009 23:50): is that if you're using parseGroovyFromPage you're calling that from velocity and you don't print in the script, you just call methods that return content
vmassol_ - (05/01/2009 23:50): which you print in velocity
polx - (05/01/2009 23:51): except if your groovy script is precisely... a renderer... 
vmassol_ - (05/01/2009 23:51): but I may be wrong and thre may be a way
polx - (05/01/2009 23:51): that sure works!
vmassol_ - (05/01/2009 23:51): right
polx - (05/01/2009 23:51): but giving back a string of 200-300kb is no good style I find.
vmassol_ - (05/01/2009 23:55): polx: I've asked ludovic and he doesn't know of a solution either so I'd say that's not possible
polx - (05/01/2009 23:55): I'll file an issue for the future of the world then...
polx - (05/01/2009 23:55): too too bad. thx much vmassol_
vmassol_ - (05/01/2009 23:56): unless you haven't sent anything back in the response I guess
vmassol_ - (05/01/2009 23:56): hmm that's the too early
polx - (05/01/2009 23:56): the response is there but things written to the response from velocity are printed before the header... that's no good.
vmassol_ - (05/01/2009 23:56): have you tried calling context.setFinished(true)?
polx - (05/01/2009 23:57): I guess what would be needed is the thread-local or something like that that wraps the velocity stream
polx - (05/01/2009 23:58): funny, I haven't...
vmassol_ - (05/01/2009 23:59): it should work if you use it
polx - (05/01/2009 23:59): a dark hack it seem
vmassol_ - (05/01/2009 23:59): since we're checking for it when we return fro parseTemplate
vmassol_ - (05/01/2009 23:59): no it's a feature! 
vmassol_ - (05/01/2009 23:59): :)
vmassol_ - (05/01/2009 23:59): we've had the need in some other cases
vmassol_ - (05/01/2009 23:59): (but not from groovy)

Get Connected