How can I rename items in my applications? I can only modify all the values
of my specified fields but not the name or title of the items.
Thx + kind regards,
Moritz
By the way: What is the difference between the page title and the page name?
They appear to be the same in my applications.
On 04/17/12 10:50, Moritz Hesse (EA GmbH) wrote:
> Detailed information:
> Error number 0 in 11: Uncaught exception
> Wrapped Exception: Java heap space
> com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
> Wrapped Exception: Java heap space
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:254)
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
> at
> org.apache
You have to increase amount of RAM for your JVM process.
See
http://www.xwiki.org/xwiki/bin/view/FAQ/HowToSolveAJavaHeapMemoryError
If you have a big .xar to import, you may have to:
* export your source wiki space-by-space (see
http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+Export+By+Space+…)
* split your .xar manually (unzip/edit packages.xml/zip part of dirs -
risky if you have weird page names)
* use some BIG machine (I've used EC2 High-Memory instance)
Cheers,
R.
Hi,
after upgrading to 3.5 the Admin lost its ability to change the
WebPreferences like "showcomment".
In the "Administration: Page Elements" - Section only a Save Button is
shown, but the elements are not editable.
Any suggestions?
Thanks, Stefan.
Hi - I'm trying to add a checkbox to the account registration form (XWiki Enterprise 3.5). I can add the field so it renders on the form:
##
## The terms of service agreement, checking.
#set($field =
{'name' : 'tos_agree',
'label' : '<hr />I have read and agree to the above terms of use.',
'params': {
'type' : 'checkbox'
}
})
#set($discard = $fields.add($field))
However, I would like to validate that the checkbox has been checked before allowing the registration to take place. I do not need to store the checkbox value in the user objects. I've tried several validation variations based upon the examples in the registration code and other places, but nothing has worked, so I thought I would turn to the community for some help.
Thanks in advance!
-Andrew
City of New York
I'm playing around with dynamically extracting YouTube's captions into a
XWiki document via my macro
http://m.nielsmayer.com/bin/view/Macros/YouTubeCaptioner
Examples:
http://m.nielsmayer.com/bin/view/Sandbox/Google+Talk%3A+Mindfulness+with+Jo…http://m.nielsmayer.com/bin/view/Sandbox/XWiki+-+the+french+open+source+cou…http://m.nielsmayer.com/bin/view/Macros/YouTubeCaptioner_Test (Steve Jobs
Stanford Commencement Address)
An interesting possibility entailed by the above approach is that XWiki's
annotation system can be used to annotate the extracted deep-links to the
video. Unfortunately, in the first two examples, when annotations are
turned on, the video display disappears.
Any suggestions on having both annotations and YouTube's video player on
the same document at the same time? Seems as if the page gets redisplayed
when annotations get turned on, but the YouTube-suggested "hook" to create
the player out of JavaScript doesn't get called. I changed YouTube's code
to load the YouTube javascript out of XWiki as suggested by
http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI#HDOMEvents2…,
but it didn't help.
Here's my code for the macro YouTubeCaptioner:
---------------------------------
{{velocity}}
{{html}}
<div id="ytplayer"></div>
<script type="text/javascript">
// Load the IFrame Player API code asynchronously. If you load the iframe
// the normal way (
//
http://developers.google.com/youtube/player_parameters#Manual_IFrame_Embeds)
// you get cross-domain-error attempting to retrieve the YouTube player
object
// in JavaScript from parent frame that is in different domain. Some
browsers
// seem stricter than others in enforcing this potential security
exploit, but
// Chrome will definitely prevent it. Instead, must create the player in
// JavaScript (
//
http://developers.google.com/youtube/player_parameters#IFrame_Player_API )
// so that the caption links in the Groovy section below can reference the
// YouTube embedded player as 'player'
//
// NPM: augmented original YouTube suggested init with suggestion from
//
http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI#HDOMEvents2…
// in the hopes that annotations will display at same time as video
player.
function youtube_init() {
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
}
(XWiki && XWiki.domIsLoaded && init()) ||
document.observe("xwiki:dom:loaded", youtube_init);
// Replace the 'ytplayer' element with an <iframe> and
// YouTube player after the API code downloads.
var player;
function onYouTubePlayerAPIReady() {
player = new YT.Player('ytplayer', {
height: '390',
width: '90%',
videoId: '${xcontext.macro.params.videoId}', //pass in videoID
parameter of macro
cc: '1' //force closed
captions display
});
}
</script>
{{/html}}
##
## Make Groovy-generated HTML Table filterable and sortable in browser via
JavaScript
## http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HTables
##
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
{{/velocity}}
{{groovy}}
import org.apache.commons.lang.StringEscapeUtils;
def url = ("http://www.youtube.com/api/timedtext?v="
+ xcontext.macro.params.videoId //pass in videoID parameter
of macro
+ (xcontext.macro.params.ttOptions ?
xcontext.macro.params.ttOptions : "")
+ "&format=1&lang=en"
).toURL().text;
def root = new XmlSlurper().parseText(url);
println "(% class='grid filterable doOddEven' id='tableid' %)";
println "|=Caption|=Start Time|=Duration";
root.children().each() {
def dec = it.text().replace("\n", " ").replace(">>", "\n####");
//remove linebreaks embedded in captions
dec = StringEscapeUtils.unescapeXml(dec);
println
"|[[{{{${dec}}}}>>path:javascript:player.seekTo(${it.attributes().start},
true);]]|${it.attributes().start}|${it.attributes().dur}";
}
{{/groovy}}
---------------------------------
Also, I've noticed that when selecting items in a table for annotation, you
have to select the entire table-row, in order for the selection to be
displayed successfully. Is this a general feature of XWiki's annotations or
a specific problem caused by my examples, which annotate dynamically
generated content.
-- Niels
http://m.nielsmayer.com <-- my new http://Jelastic.com cloud-hosted XWiki
Hi All,
2 questions regarding the printing of pages:
1. is it possible to "force" a page break for printouts of Wiki-pages to make sure, that a certain amount of information is on 1 page?
2. is it possible to repeat part of a wiki-table (caption)automatically on each page?
I need to use those as a middle step before moving to xwiki completely regarding Quality-related documents..
Thanks,
Sebastian
--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
I'm wondering if I ran into a bug or I just don't understand the
methods very well for Livetable macro. When I order with
'selectedColumn', all pages without a value for that property
disappear from the results.
See the example below, but I've tried various types of properties.
{{velocity}}
#set($columns = ["doc.name", "_Deadline"])
#set($options = {
"className":"App.DemoClass",
"selectedColumn": "_Deadline"
})
#livetable("bydeadline" $columns $columnsProperties $options)
{{/velocity}}
Thanks for your ideas!
I tested the new hidden documents feature in xwiki 4.0RC1. I do not see
any impact of the "Hidden document" flag.
I can see hidden documents as unregistered user and also as user with
user preferences "Display hidden documents" set to "No".
Changes on the hidden document are visible in the activity stream for
such users.
Is it working?
Hi,
I have just upgraded our XWiki 3.1 to the current 3.5 version.
When trying to import into the main wiki the default pages XAR (xwiki-enterprise-ui-all-3.5.xar - from which I had removed the appropriate pages and updated the package.xml) from the Administration: Import page, I chose the file and hit upload and nothing happens.
I have tried a number of times and the result is the same.
Trying to find out what is wrong I looked at the tomcat logs and My catalina.out file is full of hundreds of errors and warnings similar to the following:
Has anyone any idea what is going on or what I might try next??
==================================================================================================================================
…
2012-04-12 14:44:25,836 [http://<my server name>/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import] WARN c.x.x.w.XWikiMessageTool - The document [MindMap.Translations] is listed as an internationalization document bundle but it does not exist.
…
2012-04-12 14:44:26,462 [Lucene Index Rebuilder] WARN c.x.x.w.XWikiMessageTool - The document [MindMap.Translations] is listed as an internationalization document bundle but it does not exist.
…
[http://<my server name>/favicon.ico] WARN c.x.x.w.XWikiMessageTool - The document [MindMap.Translations] is listed as an internationalization document bundle but it does not exist.
…
2012-04-12 14:44:30,794 [New I/O client worker #229-1] WARN h.c.p.n.NettyAsyncHttpProvider - Unexpected error on close
java.lang.IllegalStateException: An Executor cannot be shut down from the thread acquired from itself. Please make sure you are not calling releaseExternalResources() from an I/O worker thread.
…
2012-04-12 14:45:05,762 [http://<my server name>/xwiki/bin/import/XWiki/Import?editor=globaladmin§ion=Import] ERROR o.i.j.JmxUtil - ISPN000034: There's already an cache manager instance registered under 'org.infinispan' JMX domain. If you want to allow multiple instances configured with same JMX domain enable 'allowDuplicateDomains' attribute in 'globalJmxStatistics' config element
…
2012-04-12 14:45:05,768 [http://<my server name>/xwiki/bin/import/XWiki/Import?editor=globaladmin§ion=Import] ERROR c.x.x.w.XWikiAction - Uncaught exception during XWiki initialisation:
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Failed to get cache factory component
…
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [justicepump], type = [WIKI], parent = [null]]]]
Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiGlobalRights], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [justicepump], type = [WIKI], parent = [null]]]]
Wrapped Exception: a different object with the same identifier value was already associated with the session: [com.xpn.xwiki.doc.XWikiDocument#981637980]
...
2012-04-12 15:46:25,496 [http://<my server name>/bin/view/Main/] WARN o.i.m.DefaultCacheManager - ISPN000156: You are not starting all your caches at the same time. This can lead to problems as asymmetric clusters are not supported, see ISPN-658. We recommend using EmbeddedCacheManager.startCaches() to start all your caches upfront.
…
2012-04-12 15:47:07,816 [Lucene Index Updater] WARN c.x.x.p.l.AttachmentData - error getting content of attachment [cat2.jpg] for document [name = [LightboxMacro], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]]
org.apache.tika.exception.TikaException: Can't read JPEG metadata
...
==================================================================================================================================
Has anyone any idea what is going on or what I might try next??
Thanks for any insight you might have,
Tim
18-20. April http://www.medetel.luwww.medetel.lu in Luxembourg
THE INTERNATIONAL eHEALTH, TELEMEDICINE AND HEALTH ICT FORUM For Education,
Networking and Business
Will anybody from the XWiki community be there?
I will be there, send me a mail if you are interested to meet and discuss
XWiki there.
Volker from Oslo. XWiki ((at)) radiology.no.
--
View this message in context: http://xwiki.475771.n2.nabble.com/18-20-april-THE-INTERNATIONAL-eHEALTH-TEL…
Sent from the XWiki- Users mailing list archive at Nabble.com.