Hi,
Im trying to fix http://jira.xwiki.org/jira/browse/XWIKI-4274
Basically if you do $xwiki.getDocument("someDoc").getRenderedContent()
it'll get executed in the context of the current doc which I believe
is wrong especially since other signatures of getRenderedContent()
execute in the target document's context.
I have fixed this locally but found that admin.vm for example is
assuming that getRenderedContent() will get executed in the context of
the calling doc (i.e. XWiki.Import when doing an import for example).
FYI the chain flow is admin.vm -- getRenderedContent() -->
XWiki.AdminSheet --> XWiki.AdminImportSheet --> importinline.vm, which
requires the current doc to be XWiki.Import (to get/put attachments
from/to it).
I can fix this easily using a new getRenderedContent signature I've
introduced.
However I'm wondering if we have other places that incorrectly use
getRenderedContent() and assume it won't be rendered in the context of
the target document.
Is this change too dangerous to make? If not know, we'll need to it
quickly (2.1M1?) since it's an important bug IMO.
WDYT?
Thanks
-Vincent
Could be useful:
http://ocpsoft.com/prettytime/
Idea of usage: For ex we could use that to show the last modified
document dates for dates in the past week (for ex):
"Document created 2 days ago"
It's in the maven central repo and it's under LGPL
-Vincent
Hi Everyone!
I have read this document "Writing GWT applications in XWiki" (
http://dev.xwiki.org/xwiki/bin/view/Drafts/WritingGWTApplicationsInXWiki)
And I know how to develop GWT module for xwiki now. I also have read the
document "WYSIWYG Editor Module" (
http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule). I
followed the instruction which tried to integrate the WYSIWYG editor(GWT
application) in wiki pages, and I put the following code in my wiki editor:
"{{html}}
<script type="text/javascript" src="XWikiWysiwyg.js"> alert('WYSIWYG code is
loaded!'); </script> <textarea id="demo"></textarea> <script
type="text/javascript"> Wysiwyg.onModuleLoad(function() { new
WysiwygEditor({hookId:'demo'}); alert('WYSIWYG code is loaded!'); });
Wysiwyg.onModuleLoad(function() { editor = new WysiwygEditor({hookId:
'demo'}); }); }); </script> {{/html}}"
After saved, it only display a blank text area without any sign of WYSIWYG
editor, also there is no alart 'WYSIWYG code is loaded!' popup. Can you help
me figure it out what is wrong with it?
I am planing to develop a tree view using GWT to display Design Rationale
Element. Could you give me some ideas of after my development, how can I
embeded the GWT application into Xwiki pages and interact with the GWT
application?
Thank you very much!
Leon
Hi Devs,
I'd like to introduce a new configuration property that would define
at which level users should be handled in a farm.
See the proposition about the new entry in xwiki.properties, it should
be self-explanatory:
--------------------------------8<--------------------------------
#-# [Since 2.5M1]
#-# Define at which level users and groups should be handled in the
farm. Available modes:
#-#
#-# mixed (default):
#-# - user registration available in the main wiki and local wikis
#-# - users from the current wiki and the main wiki will be displayed
in the rights interface and user suggests
#-# - user administration is present in all the wikis
#-#
#-# local:
#-# - user registration available in the main wiki and local wikis
#-# - only users from the current wiki will be displayed in the rights
interface and user suggests
#-# - user administration is present in all the wikis
#-#
#-# global:
#-# - user registration available in the main wiki only, the register
link in local wikis will point to the main wiki
#-# - only users from the main wiki will be displayed in the rights
interface and user suggests
#-# - user administration is present in the main wiki only
core.virtual.users=mixed
-------------------------------->8--------------------------------
More details are available here:
http://dev.xwiki.org/xwiki/bin/view/Design/UsersModule
WDYT ?
Thanks,
JV.
Hi,
I'm getting this error when running the tests for xwiki-observation-remote:
Caused by: java.lang.RuntimeException: the type of the stack (IPv6) and the user supplied addresses (IPv4) don't match: localhost/127.0.0.1.
Use system props java.net.preferIPv4Stack or java.net.preferIPv6Addresses to pick the correct stack
at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:108)
at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:54)
at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:453)
at org.jgroups.JChannel.init(JChannel.java:1702)
This thread explains the problem:
http://old.nabble.com/Protocol-stack-issue-on-dual-stack-(IPv4-and-v6)-mach…
This issue has been created to track the problem:
https://jira.jboss.org/browse/JGRP-1152
I've tested with jgroups 2.10.0.Beta2 and it works fine.
I've seen on http://jira.xwiki.org/jira/browse/XWIKI-4917 that jgroups 2.9 and above require JDK 6+.
What do we do?
Should we set the jgroups property to force ipv4 or ipv6?
Thanks
-Vincent
I've made some additions to our Forms Standard page:
http://incubator.myxwiki.org/xwiki/bin/view/Standards/Forms
The standard is very similar to what we have for the WYSIWYG editor:
- vertical alignment
- display of labels (we have uppercase text for Colibri style consistency)
- display of hints/error messages
- primary/secondary buttons
I made a proposal to integrate this standards inside the platform:
http://incubator.myxwiki.org/xwiki/bin/view/Standards/FormsProposal
- administration
- object editor
- user profile
- Create Space/Page
- Copy/Rename Page
Any feedback is welcomed,
Caty
Hi devs,
According to the roadmap [
http://enterprise.xwiki.org/xwiki/bin/Main/Roadmap ], XE 2.5M2 should be
released today. However, there have been some significant changes
recently, which might need more time to stabilize. So, what's the status on:
- CSRF
- Office Preview
- Extension manager
Can we release M2 ASAP, or are there still things to do for these two?
There are also some features that didn't make it in so far:
- "Email this page" feature
- User directory
- Export UI
- Dashboards
- Recent changes
- Localization
Are any of these close to being committed? Should we wait a few more
days or do we postpone them to the next release?
For me:
- "Email this page" should be ready in two days
- Export UI: Postpone
- Localization: Postpone
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
Hi all, hi Caleb!
Clearly I'm not the only one thinking about replacing words with links!
:-) I've found the Replace Words With Links Snippet
(http://tinyurl.com/37f79qu) and would like to know if it is worth to
get it adapted to a different bunch of requirements, if it could be
generalized or if I'm thinking about a different thing that
requires/deserves a different solution.
Having its origin in what I now consider wrong data model design
(http://ftp.ebiotic.net/onPdr/pescaderiasDataModel.png), I now get pages
including an object of User class (representing a given provider), and
pages containing an object of Species class (representing a product
offered by one of several providers).
Doc1.User.species contents a text string like 'species 01, species 04,
species 05'
Doc2.Species.galicianName contents, for instance, 'species 04'
What I need to do is to replace 'species 04' when rendering
Doc1.User.species with a link to Doc2. And the same with the other
strings if it exist a document with a Doc2.Species.galicianName matching
one of the strings in Doc1.User.species.
I've not a clear idea yet about what must be the right implementation to
"assign items to providers, but I've to deal with what I have for now.
Please, is it worth to adapt the Replace Words With Links Snippet to
this use case? Could it be done in some other simpler way? Could you
point me to any other example that could apply to this case? Thanks!
I'm new to Velocity, to Groovy and in most of the senses to XWiki as well!
By the way: the replacement of strings with links must be done on the
fly. Doing it any other way will complicate the way users create new
pages. It could be not the most efficient and cheap way, but I'm forced
to do it this way until we time and resources to modify the whole model.
Thank you so much for your help!
Ricardo
--
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems