Hi Devs,
Currently the method signature looks like:
public String officeToXHTML(String pageName, Map<String, String>
cleaningParams) throws XWikiGWTException
The contract is that this method will import whatever the "latest"
attachment to the given document into xhtml. This is bit unsafe and we have
a better option of using com.xpn.xwiki.wysiwyg.client.util.Attachment
instead.
So the new method that would be introduced is:
public String officeToXHTML(Attachment attachment, Map<String, String>
cleaningParams) throws XWikiGWTException;
This is more clean, expressive and safe.
WDYT?
- Asiri
Hi Everyone, Hi Marius,
I was wondering when I embed a GWT application, the Mail sample, provided
by GWT SDK into Xwiki page like this:
<script type="text/javascript" language='javascript'
src='js/xwiki/mail/mail.nocache.js'></script>
why this GWT application would not appear in the Xwiki page, nothing
happened? I have read the
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html
<http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html>In
"The Bootstrap Sequence" section, it has an example
7. myApp/myApp.nocache.js completes, and the compiled script (
<hashname>.cache.html) begins fetching in a hidden IFRAME (this is
non-blocking).
8. <hashname>.cache.html completes. onModuleLoad() is not called yet, as
we're still waiting on externalScriptOne.js to complete before the document
is considered 'ready'.
9. externalScriptOne.js completes. The document is ready, so
onModuleLoad() fires.
Why in the Xwiki page, the onModuleLoad() seems does not work?
PS: I am willing to contribute to Xwiki, what can I do for you guys? What I
can think of is that I have poster presentation at the Graduate Research
Forum on November 6, 2009, I will present my work on posters and I print
and hand out some flyers about Xwiki to people to give Xwiki a advertise.
What do you guys think of. If anything I could help please let me know.
Thank you all.
--
http://freeleons.spaces.live.com/
Life might lead me where I least expected.However,I have faith I'm exactly
where I am meant to be.
Hi Marius,
Last time you said, "Of course you can keep it simple and load your tree
when the page loads.In the first versions of the GWT-based WYSIWYG editor
the Wysiwyg.onModuleLoad method was creating an editor instance for
each 'window.WysiwygXXX' JavaScript object found. " Could you please point
me to which source file I can refer to as an example to load the tree when
the page loads? I need to write a JavaScript like "XWikiWysiwyg.js" to do
that, right? Your bootstrapper is pretty cool and I think it is hard for me.
Maybe the in future it needs load on demand then I will do that.
PS: if you guys write English on Facebook, I would know what does it mean.
:-)
Thank you!
Leon
LinkedIn
------------
I'd like to add you to my professional network on LinkedIn.
- freeleons
Accept freeleons Wang's invite:
https://www.linkedin.com/e/isd/781708562/_daoWutU/
------
(c) 2009, LinkedIn Corporation
For my application I would like to be able to easily set up a set of 'home' spaces for each student in a class as well as a common shared space. For the 'home' spaces I would like the default permissions to be world readable but only editable by the space owner. The owner can open it up if they desire later. The shared class space would be editable by all the students. Ideally I would like to import a csv that had the user names and email addresses. I see the process as follows:
Read/parse the csv file
Create each user, assigning either a random password or one read from the csv
Create space for each user and set permissions on the space
Put all the students into a group and create a shared space with group edit permissions
Has anyone done something similar? What is the best approach for something like this? Groovy vs java jar? Any pointers to the apis to easily create users/assign permissions etc would be helpful as well.
Thanks,
Glenn
The XWiki development team is pleased to announce the release of XWiki
Enterprise 1.9.4 and XWiki Enterprise Manager 1.7.4.
Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download
This release is targeted to users who are not yet ready to upgrade to
the more recent 2.0.x releases, but who still need some of the more
important recent fixes and improvements.
Improvements since XWiki Enterprise 1.9.3:
* XWIKI-4139 : New {{formula}} macro for displaying mathematical expressions
Important fixes:
* XWIKI-4309 : Links fail to open in a new window
* XWIKI-4249 : . key acts like the delete key at the end of the list items
* XWIKI-4349 : Livetable "avatar", "photos" and "attachments"
columns do not work
* XWIKI-4385 : NPE in XWikiDocument.CopyDocument() introduced by
the patch of XWIKI-4283
* XWIKI-4314 : Switching the editor tabs without focusing the rich
text area can lead to HTML in the source editor
* XWIKI-4170 : Wrong encoding in ApplicationResources_pt.properties
* XWIKI-4283 : XWikiDocument.copyDocument duplicate the object's uniques ids
For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise194
and http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM174
Thanks,
JV.
Hi devs,
Since XE 2.0 will be released soon I'd like to release XE 1.9.4 and
XEM 1.7.4 tomorrow.
After this XEM release I suggest to create the 1.7 branch and make XEM
trunk 2.0.
Changelog since 1.9.3:
XWIKI-4249 . key acts like the delete key at the end of the list items
XWIKI-4263 Include macro should expose the default value of "context" property
XWIKI-4175 Livetable sorting failed when the text of the header column
is clicked
XWIKI-4093 Refactor the code to use the new EventHandler system
XWIKI-4158 Update the Feed Plugin to work properly with latest XWiki
and Rome Code
XWIKI-4170 Wrong encoding in ApplicationResources_pt.properties
XWIKI-4139 New {{formula}} macro for displaying mathematical expressions
Here's my +1.
JV.
Hi,
Just looked at the Sonar reports for XWiki (which are false regarding
testing coverage btw since they don't include integration tests) but
the duplicate section is interesting.
Global dashboard for XWiki Platform:
http://nemo.sonarsource.org/project/index/168852
For example we have quite a few code duplication for the REST module:
http://nemo.sonarsource.org/drilldown/measures/168852?highlight=duplicated_…
[]=128556
And several other new modules too.
Would be good if devs could have a look and fix duplicates they have
introduced :)
Thanks
-Vincent
Hi Marius,
I have installed Firebug days ago since you first time recommended and I am
learning it. Thank you for your recommendation!
Thank you guys for helping me. I really appreciate it. I will try to figure
out your replies and see whether I have further questions.
Leon
Hi (especially Denis),
I've just found an interesting library: Emory Utilities
It has a URIClassLoader that fixes a lof of bugs from the JDK version
and will work for fixing my problem with the script macros.
Doc: http://dcl.mathcs.emory.edu/php/loadPage.php?content=util/features.html#cla…
Sources: http://dcl.mathcs.emory.edu/bin/viewvc/software/harness2/trunk/util/src/edu…
Denis, could you have a look and check if it solves the problems you
have also solved with your implementation? From what I see it solves
most of the pb you have seen and a few others related to special chars
in URLs. I just want to be sure your version isn't fixing something
more this impl. is not fixing.
I'll be trying to use it over the week end but I've already found a
way to make it work for my use case (even though these guys didn't
know about dependency injection at that time - it was back in 2005...).
Thanks
-Vincent