[xwiki-users] Platform module - javascript.vm template from header is ignored
Hello, Ive build and deployed the WAR from *platform* module. When I access the xwiki, the main page displays in the header some velocity syntax instead of what it should normally output. See the attachement pls.(I ve modified a little bit the javascript.vm content - adding some quotes to the first lines and a pretty bad word but the problem is the same)! So the problem is in the *htmlheader.vm* file when it includes the j* avascript.vm* template. If i've just commented the line 75 in htmlheader.vm, the UI problem vanished. So i suspect something in the javascript.vm file is wrong. Whats the problem? Also, i think some maven dependencies should also be added in pom.xml for lucene and calendar plugins, because when i copied the generated WAR in tomcat, i got 2 ClassNotFoundException.
Hi Bogdan, On 03/15/2010 04:25 PM, Bogdan Flueras wrote:
Hello, Ive build and deployed the WAR from *platform* module. When I access the xwiki, the main page displays in the header some velocity syntax instead of what it should normally output. See the attachement pls.(I ve modified a little bit the javascript.vm content - adding some quotes to the first lines and a pretty bad word but the problem is the same)!
I didn't understand exactly, it's failing with these modifications or without them? Also, think of either pasting the content of the file at the end of the mail, or putting it in a pastebin of some sort (http://pastebin.com/) since attachments are not allowed on the list (and now we cannot see the attachment). Happy hacking, Anca
So the problem is in the *htmlheader.vm* file when it includes the j* avascript.vm* template. If i've just commented the line 75 in htmlheader.vm, the UI problem vanished. So i suspect something in the javascript.vm file is wrong.
Whats the problem?
Also, i think some maven dependencies should also be added in pom.xml for lucene and calendar plugins, because when i copied the generated WAR in tomcat, i got 2 ClassNotFoundException.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
With AND without them. The content of the file does not really mater, as it were my hackings. Still the problem remains with the original code. The content of the javascript.vm is spit with no processing in the resulted HTML. Ex: *<head>* <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>XWiki - XWiki - Register</title> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="imagetoolbar" content="no"/> <meta name="document" content="XWiki.Register"/> <meta name="wiki" content="xwiki"/> <meta name="space" content="XWiki"/> <meta name="page" content="Register"/> <meta name="version" content="1.1"/> <meta name="restURL" content="/xwiki/rest/wikis/xwiki/spaces/XWiki/pages/Register"/> <meta name="gwt:property" content="locale=en" /> <!-- com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin --> <link href="/xwiki/resources/js/xwiki/suggest/ajaxSuggest.css" rel="stylesheet" type="text/css" /> <link href="/xwiki/bin/skin/resources/js/xwiki/lightbox/lightbox.css" rel="stylesheet" type="text/css" /> <!--[if IE]> <link href="/xwiki/bin/skin/resources/js/xwiki/lightbox/lightboxIE.css" rel="stylesheet" type="text/css" /> <![endif]--> $xwiki.jsfx.use('js/scriptaculous/effects.js', true) $xwiki.jsfx.use('js/xwiki/widgets/modalPopup.js', true) $xwiki.ssfx.use('js/xwiki/widgets/modalPopup.css', true) $xwiki.jsfx.use('js/xwiki/widgets/jumpToPage.js', true) $xwiki.ssfx.use('js/xwiki/widgets/jumpToPage.css', true) $xwiki.jsfx.use('uicomponents/widgets/confirmationBox.js', true) $xwiki.ssfx.use('uicomponents/widgets/confirmationBox.css', true) $xwiki.jsfx.use('uicomponents/widgets/confirmedAjaxRequest.js', true) $xwiki.jsfx.use('uicomponents/widgets/notification.js', true) $xwiki.ssfx.use('uicomponents/widgets/notification.css', true) <script type="text/javascript" src="/xwiki/resources/js/prototype/prototype.js"></script> <script type="text/javascript" src="/xwiki/bin/skin/resources/js/xwiki/xwiki.js"></script> <script type="text/javascript" src="/xwiki/resources/js/xwiki/suggest/ajaxSuggest.js"></script> *</head>* 2010/3/15 Anca Luca <[email protected]>
Hi Bogdan,
On 03/15/2010 04:25 PM, Bogdan Flueras wrote:
Hello, Ive build and deployed the WAR from *platform* module. When I access the xwiki, the main page displays in the header some velocity syntax instead of what it should normally output. See the attachement pls.(I ve modified a little bit the javascript.vm content - adding some quotes to the first lines and a pretty bad word but the problem is the same)!
I didn't understand exactly, it's failing with these modifications or without them?
Also, think of either pasting the content of the file at the end of the mail, or putting it in a pastebin of some sort (http://pastebin.com/) since attachments are not allowed on the list (and now we cannot see the attachment).
Happy hacking, Anca
So the problem is in the *htmlheader.vm* file when it includes the j* avascript.vm* template. If i've just commented the line 75 in htmlheader.vm, the UI problem vanished. So i suspect something in the javascript.vm file is wrong.
Whats the problem?
Also, i think some maven dependencies should also be added in pom.xml for lucene and calendar plugins, because when i copied the generated WAR in tomcat, i got 2 ClassNotFoundException.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- dipl. ing. Flueras Bogdan Ionut Yahoo, Skype: flueras_bogdan
On 03/15/2010 04:46 PM, Bogdan Flueras wrote:
With AND without them. The content of the file does not really mater, as it were my hackings. Still the problem remains with the original code. The content of the javascript.vm is spit with no processing in the resulted HTML.
Ex:
$xwiki.jsfx.use('js/scriptaculous/effects.js', true) $xwiki.jsfx.use('js/xwiki/widgets/modalPopup.js', true) $xwiki.ssfx.use('js/xwiki/widgets/modalPopup.css', true)
This means that the skin extension plugin is not active. You should not build platform/web/standard to obtain the war, but enterprise/web/ which also packages the plugins. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Ok got it. I want to build just the Platform, not the Enterprise. Are you saying that if i want to build just the platform/web/standard it wont work? Ive just folowed the steps from Building Wiki<http://dev.xwiki.org/xwiki/bin/view/Community/Building%20>(Building XWiki Platform). It is written that Maven is smart enough to handle the dependencies. What about the missing plugins in the resulting jar (obtained when building platform)? See my first post. 2010/3/15 Sergiu Dumitriu <[email protected]>
On 03/15/2010 04:46 PM, Bogdan Flueras wrote:
With AND without them. The content of the file does not really mater, as it were my hackings. Still the problem remains with the original code. The content of the javascript.vm is spit with no processing in the resulted HTML.
Ex:
$xwiki.jsfx.use('js/scriptaculous/effects.js', true) $xwiki.jsfx.use('js/xwiki/widgets/modalPopup.js', true) $xwiki.ssfx.use('js/xwiki/widgets/modalPopup.css', true)
This means that the skin extension plugin is not active.
You should not build platform/web/standard to obtain the war, but enterprise/web/ which also packages the plugins.
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- dipl. ing. Flueras Bogdan Ionut Yahoo, Skype: flueras_bogdan
On 03/15/2010 05:17 PM, Bogdan Flueras wrote:
Ok got it. I want to build just the Platform, not the Enterprise. Are you saying that if i want to build just the platform/web/standard it wont work? Ive just folowed the steps from Building Wiki<http://dev.xwiki.org/xwiki/bin/view/Community/Building%20>(Building XWiki Platform). It is written that Maven is smart enough to handle the dependencies.
Yes, Maven is smart enough, just that we didn't say that those plugins are needed for the standalone platform build. This is wrong, it should be fixed on our side, but in the meantime you have three options: - build enterprise/web - manually copy the needed jars into the exploded war, and edit xwiki.cfg to enable those plugins - change the standalone pom.xml to include the extra plugins and build again
What about the missing plugins in the resulting jar (obtained when building platform)? See my first post.
2010/3/15 Sergiu Dumitriu<[email protected]>
On 03/15/2010 04:46 PM, Bogdan Flueras wrote:
With AND without them. The content of the file does not really mater, as it were my hackings. Still the problem remains with the original code. The content of the javascript.vm is spit with no processing in the resulted HTML.
Ex:
$xwiki.jsfx.use('js/scriptaculous/effects.js', true) $xwiki.jsfx.use('js/xwiki/widgets/modalPopup.js', true) $xwiki.ssfx.use('js/xwiki/widgets/modalPopup.css', true)
This means that the skin extension plugin is not active.
You should not build platform/web/standard to obtain the war, but enterprise/web/ which also packages the plugins.
-- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (3)
-
Anca Luca -
Bogdan Flueras -
Sergiu Dumitriu