Thanks!

Guillaume Lerouge wrote:
>> Oops! I've just tried with guest without doing this change and it
>> allowed me to send messages... :-(
>> Could you figure out why? From field: XWikiGuest.
>>     
>
>
> Fixed ;-)
>
> http://code.xwiki.org/xwiki/bin/download/Applications/SendPageByEmailApplicationDownloads/Panels.SendPageByEmail3.xar
>
> Guillaume

Up and running!

Please, take a look to this error:

Author : Ricardo Rodríguez | Date : Mar 24, 2008 02:43 | Email comment : 
Error number 4001 in 4: Error while parsing velocity page 
Main.VideoPromocional Wrapped Exception: Invocation of method 
'sendRedirect' in class com.xpn.xwiki.web.XWikiServletResponse threw 
exception java.lang.IllegalStateException @ Main.VideoPromocional 
<mailbox:///Users/rrodriguez/Library/Thunderbird/Profiles/wm2vak20.default/Mail/mire.environmentalchange.net/InEPEC?number=81396775>2,11?
 
</xwiki/bin/edit/Main/2%2C11?parent=Main.VideoPromocional>

It is generated while sending pages with Velocity code. For instance, if 
I send the home page with the snippet you have proposed to force a given 
skin to be used in a page...

#if("$!request.skin" != "XWiki.SkinPescaderiasHome")
$response.sendRedirect($doc.getURL("view", 
"skin=XWiki.SkinPescaderiasHome"))
#end

Any Velocity statement I've tried with generates the same error.

Perhaps if must be avoided to send Velocity code and send instead a 
warning or something like that. Just an idea. It seems that 
$doc.getRenderedContent() doesn't like this Velocity stuff. Please, do 
you know how this error could be avoided? I am planning to use it a site 
where we many pages uses the code snippet you proposed and other 
Velocity statements.

Thanks for your work!

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to