Re: [xwiki-users] Automatic subpage creation for application items

2012-04-28 Thread Marius Dumitru Florea
On Thu, Apr 26, 2012 at 10:00 PM, Eugen Colesnicov
 wrote:
>
> Marius Dumitru Florea wrote
>>
>> Hi Moritz,
>>
>> (1) Use the observation module. You can write an event listener that
>> is called each time a new document is created. See
>> http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial
>> for a tutorial on how to do this, and
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Title+Post+Processing+Using+Groovy
>> as a simple example.
>>
>

> In a realty existing very big problem with this method. I should manually
> start event listener every time after restarting application server ... In a

You can of course write the listener in Java (it's a component) and
drop the jar in WEB-INF/lib. You won't have to manually register the
listener in this case.

> theory is possible to write a job in a scheduler, which will restart event
> listener every 10 minutes - I tried - but without success. In any case - it
> is a terrible solution - same as "patching patch" ...

With http://dev.xwiki.org/xwiki/bin/view/Design/WikiComponents
hopefully you'll be able to implement event listeners (which are
components) and they will be detected automatically, even after
restart, by the WikiComponentManager.

Hope this helps,
Marius

>
> As a result - XWiki haven't easy and transparent possibility to "attach"
> additional actions to some internal actions (create, save, delete, etc).
> Methods exists, but all have some big minuses.
>
> --
> Best regards
> Eugen Colesnicov
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Automatic-subpage-creation-for-application-items-tp7491276p7503949.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to add a sub-menu button for image menu in wysiwyg editor inline form

2012-04-28 Thread Marius Dumitru Florea
On Sat, Apr 28, 2012 at 5:23 AM, Geo Du  wrote:
> Hi, Marius,
>

> I looked at the source code, and downloaded the whole 4.1 source code zip

You should clone/fork https://github.com/xwiki/xwiki-platform instead
and then create a branch based on the tag corresponding to the version
of XWiki Enterprise you're using (i.e. checkout xwiki-platform-3.5 tag
and then create a branch from it where you make your changes).

Unfortunately you can't add your new feature without modifying a bit
the code of the WYSIWYG editor, but it should be pretty easy to merge
your changes automatically with Git when you upgrade to a new version
of XWiki Enterprise.

In your branch, you can either modify the existing image plugin or
extend it in a new plugin (kept inside
xwiki-platform/xwiki-platform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-client
under org.xwiki.gwt.wysiwyg.client.plugin package).

> file, it seems like I need to change the source code in the plugin.image
> package, but I am using the 3.5 version stable release, I can see these two
> jar files have WYSIWYG editor:
> xwiki-platform-wysiwyg-client-3.5-shared.jar,
> xwiki-platform-legacy-oldcore-3.5.jar, so I have to either change code for

Note that the editor has a client side and a server side. If you
modify the server side it's enough to rebuild the
xwiki-platform-wysiwyg-server jar and overwrite the one from your XE's
WEB-INF/lib folder. If you modify the client side then you must
rebuild xwiki-platform-wysiwyg-client and then
xwiki-platform-wysiwyg-war and replace resources/js/xwiki/wysiwyg/xwe
folder from XE with the one from the generated war.

> 3.5 version, or upgrade my deployment to 4.1 with my new image handling

The editor version should match the XE version.

> code for addComment tool, also If I change the original source code, in the
> future if we need upgrade to new xwiki release, we need to merge the
> addComment tool again, so what is the best way to do that? is there a way

As I said above, using Git you should be able to automatically merge
your changes most of the time.

> to add the tool by coding in javascript without touching the gwt plugin

You could try, see the JavaScript API exposed by the WYSIWYG editor
http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HJavaScriptAPI
.

> java code, or write java code by extending ImagePlugin with new method to

It's not that easy because when we wrote the image plugin we didn't
thought to much of how it could be extended. Some methods are private
and some are hard to extends. But still, you can try.

Hope this helps,
Marius

> add comment, and then built into a new Jar.
>
> Thanks for your response again.
>
> Dave
>
> On Fri, Apr 6, 2012 at 7:17 PM, du du  wrote:
>
>> Ok, thanks very much for your help.
>> Dave
>>
>>
>> On Fri, Apr 6, 2012 at 6:50 AM, Marius Dumitru Florea <
>> mariusdumitru.flo...@xwiki.com> wrote:
>>
>>> On Fri, Apr 6, 2012 at 1:49 AM, du du  wrote:
>>> > Hi, all,
>>> >
>>> > I am trying to add an addComments sub-menu item to image button from the
>>> > menu bar of WYSIWYG editor, what it does is to add comments for an image
>>> > inserted in the editor because I need to explain what each image is
>>> about
>>> > after I put it in the editor, I checked the
>>> > class:XWiki.WysiwygEditorConfigClass and the wysiwyg.js, I added a
>>> > sub-menu in
>>> > the WysiwygEditorConfigClass for image menu, but after that, I got lost,
>>> > this sub-menu button is supposed to connect to a plugin to trigger java
>>> to
>>> > run I believe since it is a plugin and each sub-menu like
>>> > imageInsertAttached, imageInsertURL is a plugin, but I could not find
>>> the
>>> > code where it calls a plugin, so how is the sub-menu button hooked to
>>> the
>>> > plugin? when a user clicks on the submenu button in the editor (inline
>>> > form) page, which javascript function gets called?
>>>
>>> You can find here
>>>
>>> https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-wysiwyg
>>> the code of the WYSIWYG content editor. For instance, the image
>>> plugin, which handles the image menu, is located here
>>>
>>> https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-client/src/main/java/org/xwiki/gwt/wysiwyg/client/plugin/image
>>> . The actual code that fills the image menu is
>>>
>>> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-client/src/main/java/org/xwiki/gwt/wysiwyg/client/plugin/image/ImageMenuExtension.java
>>> .
>>>
>>> You should know that the WYSIWYG content editor is written using
>>> Google WebToolkit (GWT). The Java code is compiled into JavaScript at
>>> build time.
>>>
>>> Hope this helps,
>>> Marius
>>>
>>> >
>>> > Thanks very much in advance!!
>>> >
>>> > Dave
>>> > ___
>>> > users mailing list
>>> > users@xwiki.org
>>> > http://lists.xwiki.org

Re: [xwiki-users] Inserting the image between macro

2012-04-28 Thread Marius Dumitru Florea
On Fri, Apr 27, 2012 at 10:50 AM, mohit gupta  wrote:
> Hi ,
>
> How can insert the image between the macro. For example i want to display
> the image on the page just after login.e
> https://loaclhost/myWiki/bin/view/Main/WebHome.
> The location i want to display is along the side of welcome message. But as
> i click WYSIWYG. i see the velocity macro, and i click
> image-->attachedImage but it does not insert the image anywhere. Is it
> possible to insert the image at any intended position because content is
> generated at run time. Looking for from both editors i.e WYSIWYG and wiki
> editor

The home page is a dashboard by default so you should edit the
dashboard (Dashboard.WebHome).

Hope this helps,
Marius

>
> I know the way to insert the image on newly created page, But what about
> to insert the existing page using macros.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Broken Livetable?

2012-04-28 Thread Marius Dumitru Florea
On Fri, Apr 27, 2012 at 10:38 AM, jerem  wrote:
> The livetables get their content from json, fetched through an ajax call.
>
> The best way I found to debug a broken livetable, is to use Firefox +
> Firebug. In the console, when displaying the livetable page, you should see
> the complex url used to retrieve json data (call to a page named
> LiveTableResultsMacros).
> Copy-Paste this url in another browser tab, and then you will be able to see
> if :
> - output is really empty,
> - a velocity error is shown, meaning there is a problem with the part that
> generates json. From the error you can start investigating.

Exactly. Also, from Firebug's Console tab you can enable "Break on all
errors" and reload the page to see if there are any JavaScript
exceptions.

Btw, what browser are you using? Do you have this issue when using
other browsers? Clearing the browser cache never hurts.

Hope this helps,
Marius

>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Broken-Livetable-tp7504555p7505229.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Configuration to use log4j instead of logback for xwiki 3.1 and beyond?

2012-04-28 Thread mohit gupta
At http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging, it is
stated that By default XWiki is configured so that SLF4J uses Logback.
XWiki's
Logback configuration is located in the WEB-INF/classes/logback.xml file
for For XWiki 3.1 and beyond. But if user want to use log4j instaed of
logback,
where it needs to be configured.

I did not find any property related to that in xwiki.cfg or
xwiki.properties.What i tried deleting the logback.xml and putting my
log4j.properties instaed. But xwiki
does not pick log4j.properties. As per my understanding, xwiki is using
SLF4J, there should be hook somewhere where we should be able to change to
log4j insteadd
of logback.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuration to use log4j instead of logback for xwiki 3.1 and beyond?

2012-04-28 Thread Vincent Massol
Hi Mohit,

On Apr 28, 2012, at 1:34 PM, mohit gupta wrote:

> At http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging, it is
> stated that By default XWiki is configured so that SLF4J uses Logback.
> XWiki's
> Logback configuration is located in the WEB-INF/classes/logback.xml file
> for For XWiki 3.1 and beyond. But if user want to use log4j instaed of
> logback,
> where it needs to be configured.
> 
> I did not find any property related to that in xwiki.cfg or
> xwiki.properties.What i tried deleting the logback.xml and putting my
> log4j.properties instaed. But xwiki
> does not pick log4j.properties. As per my understanding, xwiki is using
> SLF4J, there should be hook somewhere where we should be able to change to
> log4j insteadd
> of logback.

I've updated http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging

You could also have read about how SLF4J works at http://www.slf4j.org/ ;)

Hope it helps,
-Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] programming rights in xwiki farm

2012-04-28 Thread Bob Egolf
I have been running a simple xwiki farm with 2 sub wikis for some time and
I recently tried to add a macro with a groovy script in the sub-wiki and
got the "You don't have the right to execute this script".  I tried to
grant programming to the user by logging into the wiki farm site and
granting programming to the group and to the user I am using in the
sub-wiki.  I imported the Admin tools application and ran the Programming
rights Check and applied the config.

I still am not able to grant the user programming rights and my macro with
the script will not run, same permissions error.
I have tried to create a new user in the wiki farm and grant programming to
it, but when I login to the subwiki it has no permissions so I don't
believe I have him setup quite right.

This is running XWiki Enterprise 2.3.1.29183 build, not sure where to go
from here.

Any help appreciated.
Bob
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to add a sub-menu button for image menu in wysiwyg editor inline form

2012-04-28 Thread Geo Du
Hi, Marius,

Thanks very much, I will follow your instruction.

Dave

On Sat, Apr 28, 2012 at 5:28 AM, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> On Sat, Apr 28, 2012 at 5:23 AM, Geo Du  wrote:
> > Hi, Marius,
> >
>
> > I looked at the source code, and downloaded the whole 4.1 source code zip
>
> You should clone/fork https://github.com/xwiki/xwiki-platform instead
> and then create a branch based on the tag corresponding to the version
> of XWiki Enterprise you're using (i.e. checkout xwiki-platform-3.5 tag
> and then create a branch from it where you make your changes).
>
> Unfortunately you can't add your new feature without modifying a bit
> the code of the WYSIWYG editor, but it should be pretty easy to merge
> your changes automatically with Git when you upgrade to a new version
> of XWiki Enterprise.
>
> In your branch, you can either modify the existing image plugin or
> extend it in a new plugin (kept inside
>
> xwiki-platform/xwiki-platform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-client
> under org.xwiki.gwt.wysiwyg.client.plugin package).
>
> > file, it seems like I need to change the source code in the plugin.image
> > package, but I am using the 3.5 version stable release, I can see these
> two
> > jar files have WYSIWYG editor:
> > xwiki-platform-wysiwyg-client-3.5-shared.jar,
> > xwiki-platform-legacy-oldcore-3.5.jar, so I have to either change code
> for
>
> Note that the editor has a client side and a server side. If you
> modify the server side it's enough to rebuild the
> xwiki-platform-wysiwyg-server jar and overwrite the one from your XE's
> WEB-INF/lib folder. If you modify the client side then you must
> rebuild xwiki-platform-wysiwyg-client and then
> xwiki-platform-wysiwyg-war and replace resources/js/xwiki/wysiwyg/xwe
> folder from XE with the one from the generated war.
>
> > 3.5 version, or upgrade my deployment to 4.1 with my new image handling
>
> The editor version should match the XE version.
>
> > code for addComment tool, also If I change the original source code, in
> the
> > future if we need upgrade to new xwiki release, we need to merge the
> > addComment tool again, so what is the best way to do that? is there a way
>
> As I said above, using Git you should be able to automatically merge
> your changes most of the time.
>
> > to add the tool by coding in javascript without touching the gwt plugin
>
> You could try, see the JavaScript API exposed by the WYSIWYG editor
>
> http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HJavaScriptAPI
> .
>
> > java code, or write java code by extending ImagePlugin with new method to
>
> It's not that easy because when we wrote the image plugin we didn't
> thought to much of how it could be extended. Some methods are private
> and some are hard to extends. But still, you can try.
>
> Hope this helps,
> Marius
>
> > add comment, and then built into a new Jar.
> >
> > Thanks for your response again.
> >
> > Dave
> >
> > On Fri, Apr 6, 2012 at 7:17 PM, du du  wrote:
> >
> >> Ok, thanks very much for your help.
> >> Dave
> >>
> >>
> >> On Fri, Apr 6, 2012 at 6:50 AM, Marius Dumitru Florea <
> >> mariusdumitru.flo...@xwiki.com> wrote:
> >>
> >>> On Fri, Apr 6, 2012 at 1:49 AM, du du  wrote:
> >>> > Hi, all,
> >>> >
> >>> > I am trying to add an addComments sub-menu item to image button from
> the
> >>> > menu bar of WYSIWYG editor, what it does is to add comments for an
> image
> >>> > inserted in the editor because I need to explain what each image is
> >>> about
> >>> > after I put it in the editor, I checked the
> >>> > class:XWiki.WysiwygEditorConfigClass and the wysiwyg.js, I added a
> >>> > sub-menu in
> >>> > the WysiwygEditorConfigClass for image menu, but after that, I got
> lost,
> >>> > this sub-menu button is supposed to connect to a plugin to trigger
> java
> >>> to
> >>> > run I believe since it is a plugin and each sub-menu like
> >>> > imageInsertAttached, imageInsertURL is a plugin, but I could not find
> >>> the
> >>> > code where it calls a plugin, so how is the sub-menu button hooked to
> >>> the
> >>> > plugin? when a user clicks on the submenu button in the editor
> (inline
> >>> > form) page, which javascript function gets called?
> >>>
> >>> You can find here
> >>>
> >>>
> https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-wysiwyg
> >>> the code of the WYSIWYG content editor. For instance, the image
> >>> plugin, which handles the image menu, is located here
> >>>
> >>>
> https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-client/src/main/java/org/xwiki/gwt/wysiwyg/client/plugin/image
> >>> . The actual code that fills the image menu is
> >>>
> >>>
> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-client/src/main/java/org/xwiki/gwt/wysiwyg/client/plugin/image/ImageMenuExtension.java
> >>> 

Re: [xwiki-users] severe trouble with web crawlers

2012-04-28 Thread jerem
For my wiki, we used to have a crawler like this (snuffing every links out
there), then, due to the useless time spent trying to retrieve pages and
checking rights, I wrote small scripts to provide an indexing page to the
crawler.
This page lists all links that I WANT the crawler to fetch (and filtered for
anonymous users), and is updated regularly from a cron (so it is not
computed upon request but pre-computed).
I really helped, the crawler was bringing performances really low :)

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/severe-trouble-with-web-crawlers-tp7442162p7509174.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] jQuery is undefined error for IE7

2012-04-28 Thread Sergiu Dumitriu

On 04/26/2012 06:26 PM, Geo Du wrote:

Hi, All,

Can anybody help me this this issue? I tested on IE8, still the same
problem as in IE7.

Thanks

Dave

On Mon, Apr 23, 2012 at 9:43 PM, Geo Du  wrote:


Hi, all,

I am using jQuery for javascript, since it is conflicting with prototype,
I use the jQuery help extension:
http://extensions.xwiki.org/xwiki/bin/view/Extension/jQuery+Helpers, so
far everything works fine on Firefox, the problem is the IE7, I got jQuery
is undefined error from the UI library: $xwiki.jsx.use("jQuery.jQueryUI"),
I can see the javascript code in firebug with last par of the code:
.bind("blur",h)})})})(jQuery);

I noticed that there is a ";" in the end, but in IE7, I checked the code
from Microsoft Script Editor when I debug, it shows no ";", not sure if
that is the problem.

In IE7, I clicked the jQuery helper extension demo pages:
bin/view/jQuery/Demo1 page and bin/view/jQuery/Demo2 page, they both gave
me "jQuery is undefined" error. so this error happens to the extension as
well.

Could anybody help me with is issue?

Thanks very much.

Dave



There were some problems with the 1.0 version. I fixed them and 
published the 1.1 version, please upgrade and check the release notes at 
http://purl.org/xwiki/e/jQuery+Helpers#HReleaseNotes


In summary, there were two problems:
- at the end of the jQueryUI script there was indeed an invalid 
character, a ZERO WIDTH SPACE, which was properly ignored by Firefox as 
a space character
- the main jQuery script should always be used non-deferred, so when 
you're going to use it, you have to include it with:

$xwiki.jsx.use('jQuery.jQuery', {'defer': false})
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuration to use log4j instead of logback for xwiki 3.1 and beyond?

2012-04-28 Thread Sergiu Dumitriu

On 04/28/2012 08:02 AM, Vincent Massol wrote:

Hi Mohit,

On Apr 28, 2012, at 1:34 PM, mohit gupta wrote:


At http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging, it is
stated that By default XWiki is configured so that SLF4J uses Logback.
XWiki's
Logback configuration is located in the WEB-INF/classes/logback.xml file
for For XWiki 3.1 and beyond. But if user want to use log4j instaed of
logback,
where it needs to be configured.

I did not find any property related to that in xwiki.cfg or
xwiki.properties.What i tried deleting the logback.xml and putting my
log4j.properties instaed. But xwiki
does not pick log4j.properties. As per my understanding, xwiki is using
SLF4J, there should be hook somewhere where we should be able to change to
log4j insteadd
of logback.


I've updated http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging


Some feedback on the documentation you just added:

I wonder if log4j-over-slf4j should be removed or not, since it might 
conflict with the real log4j library (they define the same classes).


Also, should the documentation mention that the log4j jar must be 
included as well? slf4j-log4j12 declares it as a dependency, so it's not 
included in that jar.



You could also have read about how SLF4J works at http://www.slf4j.org/ ;)




--
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuration to use log4j instead of logback for xwiki 3.1 and beyond?

2012-04-28 Thread Vincent Massol

On Apr 28, 2012, at 8:48 PM, Sergiu Dumitriu wrote:

> On 04/28/2012 08:02 AM, Vincent Massol wrote:
>> Hi Mohit,
>> 
>> On Apr 28, 2012, at 1:34 PM, mohit gupta wrote:
>> 
>>> At http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging, it is
>>> stated that By default XWiki is configured so that SLF4J uses Logback.
>>> XWiki's
>>> Logback configuration is located in the WEB-INF/classes/logback.xml file
>>> for For XWiki 3.1 and beyond. But if user want to use log4j instaed of
>>> logback,
>>> where it needs to be configured.
>>> 
>>> I did not find any property related to that in xwiki.cfg or
>>> xwiki.properties.What i tried deleting the logback.xml and putting my
>>> log4j.properties instaed. But xwiki
>>> does not pick log4j.properties. As per my understanding, xwiki is using
>>> SLF4J, there should be hook somewhere where we should be able to change to
>>> log4j insteadd
>>> of logback.
>> 
>> I've updated http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging
> 
> Some feedback on the documentation you just added:
> 
> I wonder if log4j-over-slf4j should be removed or not, since it might 
> conflict with the real log4j library (they define the same classes).

It must be there or the bridging won't work. Our build automatically verifies 
that no 3rd party dependency we drag includes log4J. We handle this by using 
 when a jar includes log4J transitively.

> Also, should the documentation mention that the log4j jar must be included as 
> well? slf4j-log4j12 declares it as a dependency, so it's not included in that 
> jar.

Indeed, fixed, thanks.

Thanks
-Vincent

>> You could also have read about how SLF4J works at http://www.slf4j.org/ ;)

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] View Version History for XWiki.XWikiPreferences Page

2012-04-28 Thread phancox
Is it possible to view the version history for the XWiki.XWikiPreferences
page?  Version is 4.0rc1.

I've made updates using the object editor to set "Maximum Upload Size" and
added an appropriate comment in version history.  I now find that I can't
access the "History" information due to the special handling of this page.

Any hints would be much appreciated.

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/View-Version-History-for-XWiki-XWikiPreferences-Page-tp7510089.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] View Version History for XWiki.XWikiPreferences Page

2012-04-28 Thread Sergiu Dumitriu

On 04/28/2012 11:12 PM, phancox wrote:

Is it possible to view the version history for the XWiki.XWikiPreferences
page?  Version is 4.0rc1.

I've made updates using the object editor to set "Maximum Upload Size" and
added an appropriate comment in version history.  I now find that I can't
access the "History" information due to the special handling of this page.

Any hints would be much appreciated.


Not from the UI, but you can manually enter the right URL in the address 
bar:


/xwiki/bin/view/XWiki/XWikiPreferences?viewer=history

--
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuration to use log4j instead of logback for xwiki 3.1 and beyond?

2012-04-28 Thread Sergiu Dumitriu

On 04/28/2012 04:40 PM, Vincent Massol wrote:


On Apr 28, 2012, at 8:48 PM, Sergiu Dumitriu wrote:


On 04/28/2012 08:02 AM, Vincent Massol wrote:

Hi Mohit,

On Apr 28, 2012, at 1:34 PM, mohit gupta wrote:


At http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging, it is
stated that By default XWiki is configured so that SLF4J uses Logback.
XWiki's
Logback configuration is located in the WEB-INF/classes/logback.xml file
for For XWiki 3.1 and beyond. But if user want to use log4j instaed of
logback,
where it needs to be configured.

I did not find any property related to that in xwiki.cfg or
xwiki.properties.What i tried deleting the logback.xml and putting my
log4j.properties instaed. But xwiki
does not pick log4j.properties. As per my understanding, xwiki is using
SLF4J, there should be hook somewhere where we should be able to change to
log4j insteadd
of logback.


I've updated http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging


Some feedback on the documentation you just added:

I wonder if log4j-over-slf4j should be removed or not, since it might conflict 
with the real log4j library (they define the same classes).


It must be there or the bridging won't work. Our build automatically verifies that no 
3rd party dependency we drag includes log4J. We handle this by 
using  when a jar includes log4J transitively.


What bridging? From log4j to slf4j? But when slf4j will try to write 
back to log4, won't it cycle back through this bridge? As I said, this 
jar defines the same classes as the real log4j jar. One can't have two 
classes with the same name in the classpath.



Also, should the documentation mention that the log4j jar must be included as 
well? slf4j-log4j12 declares it as a dependency, so it's not included in that 
jar.


Indeed, fixed, thanks.

Thanks
-Vincent


You could also have read about how SLF4J works at http://www.slf4j.org/ ;)


--
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] View Version History for XWiki.XWikiPreferences Page

2012-04-28 Thread phancox
Hi Sergiu,

Many thanks for the quick response; that worked perfectly.  I had tried a
few URL combinations along those lines myself, but without success.

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/View-Version-History-for-XWiki-XWikiPreferences-Page-tp7510089p7510198.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuration to use log4j instead of logback for xwiki 3.1 and beyond?

2012-04-28 Thread Vincent Massol

On Apr 29, 2012, at 5:24 AM, Sergiu Dumitriu wrote:

> On 04/28/2012 04:40 PM, Vincent Massol wrote:
>> 
>> On Apr 28, 2012, at 8:48 PM, Sergiu Dumitriu wrote:
>> 
>>> On 04/28/2012 08:02 AM, Vincent Massol wrote:
 Hi Mohit,
 
 On Apr 28, 2012, at 1:34 PM, mohit gupta wrote:
 
> At http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging, it is
> stated that By default XWiki is configured so that SLF4J uses Logback.
> XWiki's
> Logback configuration is located in the WEB-INF/classes/logback.xml file
> for For XWiki 3.1 and beyond. But if user want to use log4j instaed of
> logback,
> where it needs to be configured.
> 
> I did not find any property related to that in xwiki.cfg or
> xwiki.properties.What i tried deleting the logback.xml and putting my
> log4j.properties instaed. But xwiki
> does not pick log4j.properties. As per my understanding, xwiki is using
> SLF4J, there should be hook somewhere where we should be able to change to
> log4j insteadd
> of logback.
 
 I've updated http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging
>>> 
>>> Some feedback on the documentation you just added:
>>> 
>>> I wonder if log4j-over-slf4j should be removed or not, since it might 
>>> conflict with the real log4j library (they define the same classes).
>> 
>> It must be there or the bridging won't work. Our build automatically 
>> verifies that no 3rd party dependency we drag includes log4J. We handle this 
>> by using  when a jar includes log4J transitively.
> 
> What bridging? From log4j to slf4j? But when slf4j will try to write back to 
> log4, won't it cycle back through this bridge? As I said, this jar defines 
> the same classes as the real log4j jar. One can't have two classes with the 
> same name in the classpath.

You're right. I thought you wanted to do this for our build. I didn't 
understand you meant fixing the doc…

Fixed now.

Thanks
-Vincent

>>> Also, should the documentation mention that the log4j jar must be included 
>>> as well? slf4j-log4j12 declares it as a dependency, so it's not included in 
>>> that jar.
>> 
>> Indeed, fixed, thanks.
>> 
>> Thanks
>> -Vincent
>> 
 You could also have read about how SLF4J works at http://www.slf4j.org/ ;)
> 
> -- 
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users