Sorry if this has been asked before or is documented, I have found it neither
in the mailing list archives nor in the docs.
I have created a custom panel that I would like to be visible when a user
edits a page using the WIKI or WYSYWIG editor.
I have successfully created the panel and set its type to "edit". Now how do
I add it to the panel column? In the panel wizard, only panels of type
"view" are available. This appears logical to me, because editor panels are
not as straightforward to set up as view panels are, since editor panels
must somehow be assciated with one or multiples types of editors. E.g. the
"Document Information" panel is only visible when the WIKI or WYSIWYG editor
is active, which is exactly the behavior I whish for my panel.
Could someone please give me a pointer to where this is documented or
explain what I have to do?
Thanks in advance and best regards,
Ralph
--
View this message in context: http://n2.nabble.com/Custom-Editor-Panel-tp2761144p2761144.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi Devs,
Jodconverter 3.0-beta-2 version has been released:
http://groups.google.com/group/jodconverter/browse_thread/thread/8b73b26b70…
One of the most important fix for us is the first point mentioned there:
"OOo is now started with -nofirststartwizard by default. This avoids the
frequent problem of OOo refusing to work on a new machine because it's
expecting somebody to accept its license dialogue even in -headless mode"
Without this fix currently we have to copy an already initialized ooprofile
directory to the destination server and point to it from xwiki.properties
file. This is a pain.
Also there are several other enhancements:
http://code.google.com/p/jodconverter/issues/list?can=1&q=label%3ATarget-3.…
Unfortunately some of the public APIs of jodconverter has been changed from
beta-1 release to beta-2 release. But still, upgrading our officeimporter
module to use this new jodconverter release will not require that much of
code changes.
Note: jodconverter is not available in any public maven repository AFAIK. So
we need to release it to our externals repository as we did with the beta-1
version.
The other feature is a frequently requested one (auto-strart) and admins are
having a hard time without this feature :)
Here is my +1 for both features.
Thanks.
- Asiri
Hi devs,
We have (at least) two issues about links inside links:
http://jira.xwiki.org/jira/browse/XWIKI-3149 and
http://jira.xwiki.org/jira/browse/XWIKI-3440
Basically the issue is that XHTML does not support links inside links.
To fix this I see two possibilities:
1) valid in XDOM: this means XHTML renderer has to take care of this
and skip link inside links
2) not valid in XDOM: this means each parser has to make sure not put
link inside links in the XDOM
+1 for 1) and -0 for 2) since it's a XHTML issue only and we could
have some use cases supporting this like XWiki syntax support it.
Thanks,
--
Thomas Mortagne
Hello,
I have compiled code directly from the trunk and I have a simple wiki page
such as:
{{velocity}}
{{html}}
#warning("(% style='font-size:120%' %) [[mylink>>myspace.mypage]]")
{{/html}}
{{/velocity}}
and I get the following text:
(% style='font-size:120%' %) [[mylink>>myspace.mypage]]
The content in the velocity macro is not rendered.
Ok apparently now, default {{html}} is {{html wiki="false"}}
So I write:
{{velocity}}
{{html wiki="true"}}
#warning("(% style='font-size:120%' %) [[mylink>>myspace.mypage]]")
{{/html}}
{{/velocity}}
And I get following exception:
...
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'getRenderedContent' in class com.xpn.xwiki.api.Document threw
exception java.lang.StackOverflowError @ /templates/preview.vm[6,7]
...
Caused by: java.lang.StackOverflowError
at org.xwiki.rendering.renderer.printer.MonitoringWikiPrinter.print(MonitoringWikiPrinter.java:41)
at org.xwiki.rendering.renderer.printer.XMLWikiPrinter.print(XMLWikiPrinter.java:79)
at org.xwiki.rendering.renderer.printer.WrappingWikiPrinter.print(WrappingWikiPrinter.java:39)
at org.xwiki.rendering.renderer.printer.MonitoringWikiPrinter.print(MonitoringWikiPrinter.java:41)
at org.xwiki.rendering.renderer.printer.XMLWikiPrinter.print(XMLWikiPrinter.java:79)
at org.xwiki.rendering.renderer.printer.WrappingWikiPrinter.print(WrappingWikiPrinter.java:39)
at org.xwiki.rendering.renderer.printer.MonitoringWikiPrinter.print(MonitoringWikiPrinter.java:41)
at org.xwiki.rendering.renderer.printer.XMLWikiPrinter.print(XMLWikiPrinter.java:79)
...
Kind of infinite loop...
I have tried other combinations with html before velocity, inside
warning macro etc... but never works as it should...
Do you have an idea???
regards
Pascal
FYI
-Vincent
Begin forwarded message:
> From: Stephen Connolly <stephen.alan.connolly(a)gmail.com>
> Date: April 23, 2009 9:05:16 PM CEDT
> To: "dev(a)mojo.codehaus.org" <dev(a)mojo.codehaus.org>, "user(a)mojo.codehaus.org
> " <user(a)mojo.codehaus.org>, Maven Users List <users(a)maven.apache.org>
> Subject: [ANN] Versions Maven Plugin 1.0-alpha-3 released
> Reply-To: "Maven Users List" <users(a)maven.apache.org>
>
> The Mojo team is pleased to announce the release of the Versions Maven
> Plugin, version 1.0-alpha-3.
>
> The Versions Plugin has the following goals.
>
> * versions:display-dependency-updates scans a project's
> dependencies and
> produces a report of those dependencies which have newer versions
> available.
> * versions:display-plugin-updates scans a project's plugins and
> produces
> a report of those plugins which have newer versions available.
> * versions:update-parent updates the parent section of a project
> so that
> it references the newest available version. For example, if you use a
> corporate root POM, this goal can be helpful if you need to ensure
> you are
> using the latest version of the corporate root POM.
> * versions:update-properties updates properties defined in a
> project so
> that they correspond to the latest available version of specific
> dependencies. This can be useful if a suite of dependencies must all
> be
> locked to one version.
> * versions:update-child-modules updates the parent section of the
> child
> modules of a project so the version matches the version of the current
> project. For example, if you have an aggregator pom that is also the
> parent
> for the projects that it aggregates and the children and parent
> versions get
> out of sync, this mojo can help fix the versions of the child
> modules. (Note
> you may need to invoke Maven with the -N option in order to run this
> goal if
> your project is broken so badly that it cannot build because of the
> version
> mis-match).
> * versions:lock-snapshots searches the pom for all -SNAPSHOT
> versions
> and replaces them with the current timestamp version of that -
> SNAPSHOT, e.g.
> -20090327.172306-4
> * versions:unlock-snapshots searches the pom for all timestamp
> locked
> snapshot versions and replaces them with -SNAPSHOT.
> * versions:resolve-ranges finds dependencies using version ranges
> and
> resolves the range to the specific version being used.
> * versions:use-releases searches the pom for all -SNAPSHOT versions
> which have been released and replaces them with the corresponding
> release
> version.
> * versions:use-next-releases searches the pom for all non-SNAPSHOT
> versions which have been a newer release and replaces them with the
> next
> release version.
> * versions:use-latest-releases searches the pom for all non-
> SNAPSHOT
> versions which have been a newer release and replaces them with the
> latest
> release version.
> * versions:use-next-versions searches the pom for all versions
> which
> have been a newer version and replaces them with the next version.
> * versions:use-latest-versions searches the pom for all versions
> which
> have been a newer version and replaces them with the latest version.
> * versions:commit removes the pom.xml.versionsBackup files. Forms
> one
> half of the built-in "Poor Man's SCM".
> * versions:revert restores the pom.xml files from the
> pom.xml.versionsBackup files. Forms one half of the built-in "Poor
> Man's
> SCM".
>
> The artifacts have been deployed to the mojo repository and will be
> mirrored
> to central within the next 24 hours.
>
> The Mojo Team.
>
> Release Notes - Maven 2.x Versions Plugin - Version 1.0-alpha-3
> ================================================
>
> ** Bug
> * [MVERSIONS-3] - display-plugin-updates does not identify the
> plugin
> version as not being provided when derived from the super-pom
> * [MVERSIONS-10] - Property Placedholders output in
> versions:display-plugin-updates
> * [MVERSIONS-13] - display-plugin-updates warns that version is not
> defined if same versio as in parent pom is defined
>
> ** Improvement
> * [MVERSIONS-25] - Users should be made aware that this plugin
> relies on
> accurate maven-metadata.xml files.
>
> ** New Feature
> * [MVERSIONS-15] - Add comparisonMethod=mercury
> * [MVERSIONS-18] - Expose updated versions as a report
> * [MVERSIONS-21] - Add mojo to lock snapshots to timestamp version
> * [MVERSIONS-24] - Enable resolution of dependency version ranges
> * [MVERSIONS-28] - use-releases mojo
> * [MVERSIONS-32] - Add versions:commit and versions:revert using a
> "Poor-man's SCM" so that changes to the pom can be accepted and
> rolled back
> * [MVERSIONS-33] - add use-next-releases goal
> * [MVERSIONS-34] - add a use-latest-releases goal
> * [MVERSIONS-35] - add use-next-versions goal
> * [MVERSIONS-36] - add use-latest-versions goal
> * [MVERSIONS-37] - add a use-releases goal that replaces -SNAPSHOT
> dependencies with their corresponding release version (if available)
>
> ** Task
> * [MVERSIONS-12] - Documentation is incorrect on
> http://mojo.codehaus.org/versions-maven-plugin/examples/update-parent.html
>
>
> ** Wish
> * [MVERSIONS-26] - Can't resolve pom properties for specifying
> plugin
> version in pluginmanagement
Hai Ludovic.
I liked to continue the survey application project even if I not selected to
GSOC. If you give me a chance I can show my commitment to the Xwiki.
If I'm on the project. I would like to know about the following points.
1. Ideas that need to change in my application.
2. How the milestone plan should be adjusted based on the above ideas
complexity.
3. Changes that need to be done with the mockups that I had created.
Its better if I can have a mentor who can guide me to this target.
Also I would like to thank all the community members of the Xwiki. I
gathered lots of experience to my life during past month.This is my first
FOSS community involvement. If something went wrong from me please forgive
me. I don't want to loose this connections that I had build with those great
people.
So
Good luck Xwiki...
Thank you...
--
~ Chathura Prabuddha Ganegoda~
Undergraduate,
Department of Computer Science & Engineering,
University of Moratuwa,
Sri Lanka.
http://gacpganegoda.blogspot.com/
jvelociter (SVN) wrote:
> -.controlPagination div.prevPagination {
> +.controlPagination span.prevPagination {
Why don't you drop the element name from the selector? Isn't the
classname enough?
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
Hi,
I have been looking at how to notify when an event has been finished. Here
what I have currently understood and I got some confusion.
In order to get notified when login event finished, I think I have to do the
following things.
1. Create a LoginListener class that implements EventListener
2. Create object of DefaultObservationManager class
(DefaultObservationManager implements ObservationManager)
3. Define class UserLoginEvent similar to DocumentSaveEvent
4. call addListener() of ObjectManager interface (using
DefaultObjectManager) with parameters - object of UserLoginEvent and
reference to login listener.
5. get reference to DefaultObjectManager instance
6. call notify() of DefaultObjectManager instance when user successfully
logged in, with parameters - object of UserLoginEvent, doc and context
7. Implement notify() in LoginListener class.
Q. But I have several confusions when I looked at XWiki class,
saveDocument()
1. Where does it create and add a listener to ObservationManager object??
2. And also it takes ObservationManager object from Util.getComponent()but
where does this observationManager instance is added or set ?
Please clarify me on what I currently understood and let me know if its the
right steps to go with.
Kind Regards,
-Tharindu
Hi devs,
To be clear about what a "frame" means in OOo please have a look at
following screenshots:
http://i39.tinypic.com/293aptt.pnghttp://i41.tinypic.com/259fnfq.jpg
The problem with these frames is that OOo server generates html like below:
<code>
<SPAN ID="Frame1" DIR="LTR" STYLE="float: left; width: 3.09in; height:
3.8in; border: 1px solid #000000; padding: 0.06in; background: #ffffff">
<P CLASS="frame-contents">Hello, This is a frame as it is called on
openoffice writer.</P>
<P CLASS="frame-contents"><BR><BR>
</P>
<P CLASS="frame-contents">We have a problem with importing documents
that contain this sort of frames.</P>
<P CLASS="frame-contents"><BR><BR>
</P>
<P CLASS="frame-contents">This is the last paragraph</P>
</SPAN>
<code>
Let's forget the fact that it should be a <div> instead of a <span> for the
moment. But even if we convert it to a <div>, with our style filtering
approach this kind of frames are filtered out (because the frame is made out
of a style).
So, the first question is, should these "frames" be filtered in "filter
styles" mode? I think they should not be filtered because it is same as if
we filter tables with "filter styles" mode.
If they should not be filtered completely, what should be the output under
"filter styles" mode?
I can think of two outputs:
<code>
<DIV STYLE="float: left; border: 1px solid #000000;">
<P CLASS="frame-contents">Hello, This is a frame as it is called on
openoffice writer.</P>
<P CLASS="frame-contents"><BR><BR>
</P>
<P CLASS="frame-contents">We have a problem with importing documents
that contain this sort of frames.</P>
<P CLASS="frame-contents"><BR><BR>
</P>
<P CLASS="frame-contents">This is the last paragraph</P>
</DIV>
<code>
Height & Width are removed because when styles are filtered fonts sizes
change and the size of the box might not be enough for the content to fit
in.
The other output we can have is:
<code>
<table>
<tr>
<td>
<P CLASS="frame-contents">Hello, This is a frame as it is
called on
openoffice writer.</P>
<P CLASS="frame-contents"><BR><BR>
</P>
<P CLASS="frame-contents">We have a problem with importing
documents
that contain this sort of frames.</P>
<P CLASS="frame-contents"><BR><BR>
</P>
<P CLASS="frame-contents">This is the last paragraph</P>
</td>
</tr>
</table>
<code>
So it becomes a single cell table, problem solved.
So, wdyt?
Thanks.
- Asiri
Hi,
The XWiki translation tool located at http://l10n.xwiki.org/ has been
upgraded yesterday. Starting today, new message strings are automatically
loaded into the translation tool every night at 2:00 am Paris time. This
means that whenever a developer commits a new portion of code that requires
to be translated, it will show up on http://l10n.xwiki.org/ the next day.
The immediate effect of this change is that approximately 120 new messages
to translate have been added for XWiki Enterprise since yesterday. Some of
the languages that used to be finished (such as german, romanian or spanish)
are no longer complete. You can check the actual numbers here:
http://l10n.xwiki.org/xwiki/bin/view/XE/XWikiCoreResources
Additionally, some contributions have not been reviewed yet. Reviewing
translations helps finding & fixing typos and other mistakes. It would be
great if members from the community could look at it and review translations
where applicable.
Since we're close to the release date of XE 1.8.3 (and soon XE 1.9 M2) it
would be awesome if some of you guys could update the tool with missing
translations and reviews. I'm done with French already, 15 languages to go
;-)
Many thanks in advance on behalf of the community,
Guillaume
--
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://guillaumelerouge.com/
asiri (SVN) wrote:
> Author: asiri
> Date: 2009-04-29 09:52:15 +0200 (Wed, 29 Apr 2009)
> New Revision: 19183
>
> Modified:
> platform/core/trunk/xwiki-officeimporter/pom.xml
> platform/core/trunk/xwiki-officeimporter/src/main/java/org/xwiki/officeimporter/internal/openoffice/DefaultOpenOfficeServerManager.java
> Log:
> XWIKI-3711: Upgrade officeimporter to use jodconverter-3.0-beta-2
>
Could this port be taken from a configuration? I don't like magic numbers.
> + OfficeConnectionMode connectionMode = OfficeConnectionMode.socket(8100);
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
Warning, warning...
The merge is wrong.... I had made some changes, see below
On Apr 28, 2009, at 5:46 PM, tmortagne (SVN) wrote:
> Author: tmortagne
> Date: 2009-04-28 17:46:00 +0200 (Tue, 28 Apr 2009)
> New Revision: 19162
>
> Modified:
> platform/core/trunk/xwiki-core/src/main/resources/
> ApplicationResources_fr.properties
> Log:
> XWIKI-3718: Update french translations
>
> Modified: platform/core/trunk/xwiki-core/src/main/resources/
> ApplicationResources_fr.properties
> ===================================================================
> --- platform/core/trunk/xwiki-core/src/main/resources/
> ApplicationResources_fr.properties 2009-04-28 14:29:14 UTC (rev 19161)
> +++ platform/core/trunk/xwiki-core/src/main/resources/
> ApplicationResources_fr.properties 2009-04-28 15:46:00 UTC (rev 19162)
[snip]
> -XWiki.XWikiPreferences_smtp_server=Serveur
> -XWiki.XWikiPreferences_smtp_port=Port
> +XWiki.XWikiPreferences_smtp_server=Serveur SMTP
This is not correct for example. There are other places too probably.
You need to check the merge.
Thanks
-Vincent
Hi devs,
I'm going to continue the work on allowing users to write syntax 2.0
macros inside the wiki (http://jira.xwiki.org/jira/browse/XWIKI-3213)
We have several implementations possible for this:
1. Having only one generic wiki macro implementation. This means macro
authors will have to call explicitly the velocity macro inside if they
need velocity scripting (same for other script languages)
* Pros:
- You can use wiki syntax in your macro. This is cool, it enables doing
things like wikipedia templates (http://en.wikipedia.org/wiki/Help:Template)
- We can easily provide the GWT-WYSIWYG to macro authors. This is an
idea I like
- It sound pretty natural to do it this way
* Cons:
- We'll have to put macro parameters in the XWiki context so that they
are available to all script macros used in the macro. It means authors
will have to refer to parameters using $context.get("parameterName")
instead of $parameterName that would be doable with 2.
2. Writing one implementation per script language. This means authors
will create a velocity macro and will write directly velocity code in
the code are of the macro.
* Pros:
- Parameters don't need to be passed in the XWiki context (at least I
think, if I'm wrong please explain me/us why)
* Cons:
- We'll have several XWiki classes, one per supported scripting language
(XWiki.VelocityMacroClass, XWiki.GroovyMacroClass, etc.)
- We cannot use wiki syntax in any implementation, so we cannot do the
wikipedia templates-like thing
3. Keep for ourselves the ability to chose from the wiki the
implementation class of the macro, but default on 1. the generic script
macro. This means we will have a "class" field in the XWiki.MacroClass
which allows to chose which implementation should be the code rendered
against. If we do that I think this field should be hidden in the class
sheet, and only be accessible using the object editor. This is similar
to the way Scheduler Job objects works right now.
* Pros:
- Best of both world, we can have 1. and 2.
- Leaves open the door for new macros implementations we could want in
the future, or that developers would want just for their wiki
* Cons:
- Probably a little more code to handle that
Right now, I tend to think we should do 3. with only one implementation
available at first, being the generic wiki macro described in 1.
WDYT ?
Thanks in advance for your feedback.
Cheers,
Jerome.
hel-o wrote:
> Hi,
>
> the link dialog works much better than in 1.8.1, but one thing i found:
>
> i don't use the space for the page parent when i add the parent manually
> (which i had to, since it wasn't added automatically in the new syntax)
> because i found, that it's not needed to work (as it is in links when the
> link is in the same space).
>
> Now when i want to create a link to a wiki-page i get the tree-view (which
> is great) but it seems i cant see all those pages where no space is
> provided.
Hi Hel,
thanks for reporting this behaviour!
Of what I experimented just now, this seems to be caused by the REST API (used
by the tree) for getting pages and the way it uses the passed "parent"
parameter. Specifically, it does not interpret the value of the document parent
field wrt the document's space.
I see 2 solutions:
1/ either we change the panel to set the parent field to a fully qualified name
(when a user inserts only a document name in the parent field, we append the space)
2/ either we fix the REST API.
Solution 1 might cause problems when it will come to multiwikis, when the parent
can be prefixed by the wiki name as well (wiki:Space.Page).
Or:
3/ we change the parent-child relation in the explorer tree so that we make it
survive such situations.
Happy coding,
Anca Luca
>
> hel.
>
>
>
> -----
> ----
> hel(a)hel.at
>
Hi,
We need to have automatic inline edit mode for XWiki Syntax 2.0
(http://jira.xwiki.org/jira/browse/XWIKI-2891)
I'd like to implement this quickly since it prevents to use the xwiki
syntax 2.0 as the default syntax (for ex if you create a user in 2.0
syntax and click edit you'll edit it in wysiwyg mode instead of inline
mode).
A quick solution I have:
* Use the XWikiDocument template field to set the sheet to use
* When a page has the template field set, when the user clicks on the
edit button it goes automatically in inline edit mode
* Add a new field in the information edit panel to set the template
(only for advanced users I think)
WDYT?
Thanks
-Vincent
On Apr 28, 2009, at 2:04 PM, tmortagne (SVN) wrote:
> Author: tmortagne
> Date: 2009-04-28 14:04:43 +0200 (Tue, 28 Apr 2009)
> New Revision: 19154
>
> Added:
> platform/core/trunk/xwiki-rendering/xwiki-rendering-tests/src/test/
> resources/group/group11.test
I'd have put put in the same test file we already have for testing
parameters for groups (ie group9.test). Otherwise it doesn't sounds
obvious why and we should add some comments anyway in group9.test
saying that we test group parameters.
[snip]
Thanks
-Vincent