Re: [xwiki-users] Display current date on page

2010-10-28 Thread [Ricardo Rodriguez] eBioTIC.
Hi!

Lockie wrote:
> Hi all,
>
> Is there a date property I can use to automatically display the current date
> on a page? I would do it in javascript but you can't embed 

Re: [xwiki-users] Display current date on page

2010-10-28 Thread Vincent Massol
Hi Stefan,

On Oct 28, 2010, at 8:15 AM, Stefan abageru wrote:

> Hi Lockie !
> 
> You can use $xwiki.getDate() inside your velocity code in order to 
> display the current date.

This is really deprecated stuff and shouldn't be used.

Instead you should use $datetool.

http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/DateTool.html

Thanks
-Vincent

> Stefan
> 
> On 10/28/2010 09:06 AM, Lockie wrote:
>> Hi all,
>> 
>> Is there a date property I can use to automatically display the current date
>> on a page? I would do it in javascript but you can't embed

[xwiki-users] Lucene File Indexing

2010-10-28 Thread Thomas Höschele
Hallo,

 

I noticed that lucene is capable of Indexing various office files (excel,
word, outlook mails); however, this doesn’t happen automatically.
When I add the file it does not get indexed no matter how long I wait. When
I rebuild the Index via the administration terminal the files get indexed. 

 

Also I get an error in the logs (error getting content of attachment … of
doc …).

 

Is this an Lucene Error or has it something todo with my configuration?

 

Thomas

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


Re: [xwiki-users] Lucene File Indexing

2010-10-28 Thread [Ricardo Rodriguez] eBioTIC.
Hi!

Thomas Höschele wrote:
> Hallo,
>
>  
>
> I noticed that lucene is capable of Indexing various office files (excel,
> word, outlook mails); however, this doesn’t happen automatically.
> When I add the file it does not get indexed no matter how long I wait. When
> I rebuild the Index via the administration terminal the files get indexed. 
>
>   
Please, Thomas, could you give more details about your installation? 
XWiki release? Servlet container/application server (Jetty, Tomcat, 
GlassFish,..)? Database?
>  
>
> Also I get an error in the logs (error getting content of attachment … of
> doc …).
>
>  
>   

Could you also check if you have broken attachments and those are the 
ones causing these errors? You can use this:

http://code.xwiki.org/xwiki/bin/view/Snippets/AllBrokenAttachments
> Is this an Lucene Error or has it something todo with my configuration?
>   

I had the same type of errors here (XE/XEM 2.4.1 running on a Suse Linux 
10sp3 box with Apache Tomcat 5.5.27 and Java 1.5.0 ). All but a small 
bunch where related with broken attachments. Among these, three Excel 
spreadsheets with xlsb format. The rest, PDF files. You talk about 
Microsoft Office files, let's see if we can reproduce the error!

I'll try in a new installation running the last XE snapshot ASAP. I'll 
keept this thread posted. If you could confirm that some xlsb files are 
causing problems in Lucene, I think it will be worth to create a new 
Jira issue on this.

Thanks!
>  
>
> Thomas
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>   

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

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


Re: [xwiki-users] conditional redirect after login

2010-10-28 Thread [Ricardo Rodriguez] eBioTIC.
Hi!

Gerritjan Koekkoek wrote:
> Hi,
>
> I really appreciate your interest, this really helps me; Thanks 
>
> You are very right, If users are redirected to their profile they are not 
> forced to enter any extra data.
> But we will put a text in the profile page that it would be very helpfull if 
> they did;
> If they do not, we will not add them to to more functional group, so, i hope, 
> it is also in their interest
> if they want more functionality. This is, by means a manual process, we do 
> not want that the WIKI is crowded with visitors
> that do not ADD to our community
>   

I think Curriki people have done a nice work to create a custimized 
registering process. Do you know Curriki? Check this...

http://www.curriki.org

Register yourself and will see the look and feel of the process.

> One principle is that I try to do everything from within the WIKI and stay 
> away from configuration files.
> WE are hosting our wiki on a external system, so it is difficult to get 
> access to filesystem anyway!
> Second; we are fully happy with the default behaviour of to what groups a 
> registered user is added after registration
>   

I do agree with this approach. It also helps in the upgrade process. 
There are a number of "extension things" playing around lately in XWiki 
that is worth to pay attention to! For JavaScript and Stylesheet 
extensions seam simply great... even though I'm not able to use them 
yet! :-) The Extensions Manager will ease the process.

Regarding the modification of the login.vm, I think it is quite simple 
to copy login.vm to a customized skin.
> Regarding the login.vm modification
> (snippet from default login.vm in XWIKI 2.5
> #if ($xcontext.user != 'XWiki.XWikiGuest')
>   #if ($request.xredirect)
> $response.sendRedirect($request.xredirect)
>   #else
> $response.sendRedirect($xwiki.getURL('Main.WebHome'))
>   #end
> #elseif($doc.fullName != 'XWiki.XWikiLogin')
>   #set($qs = "$!{request.queryString}")
>   #if(!$request.getParameter('xredirect'))
> #set($qs = "xredirect=$escapetool.url($doc.getURL('view'))&${qs}")
>   #end
>   $response.sendRedirect($xwiki.getURL('XWiki.XWikiLogin', 'login', $qs))
> #else
> ###
> ### Login page
> ###
> ###
> ...
> #end
>
> I think I should inject the code after #if ($xcontext.user != 
> 'XWiki.XWikiGuest')
> You think I could use #includeInContext('YourSpace.YourDocument') or would a 
> macro make more sense?
> I'm always trying to keep standard XWIKI code as supplied with the product as 
> standard as possible, otherwise 
> I'm facing more complex upgrade paths?
>   

Have you tried this? I'm not able to get it working. Or there is some 
more element involved in the login process, or I don't
understand the first code chunk behaviour. I've substitute this block...

#if ($xcontext.user != 'XWiki.XWikiGuest')
  #if ($request.xredirect)
$response.sendRedirect($request.xredirect)
  #else
$response.sendRedirect($xwiki.getURL('Main.WebHome'))
  #end
#elseif($doc.fullName != 'XWiki.XWikiLogin')
  #set($qs = "$!{request.queryString}")
  #if(!$request.getParameter('xredirect'))
#set($qs = "xredirect=$escapetool.url($doc.getURL('view'))&${qs}")
  #end
  $response.sendRedirect($xwiki.getURL('XWiki.XWikiLogin', 'login', $qs))
#else

with this one...

#if ($xcontext.user != 'XWiki.XWikiGuest')
  $response.sendRedirect($xwiki.getURL('XWiki.RogerGoldman'))
#else

And I keep being redirected to the homepage after log in.

XWiki.RogerGoldman is a dummy user and it exists. It works when included 
in a "regular" document. See this..

http://epecnetcore.environmentalchange.net:8080/xwiki/bin/view/ICT/Redirect

Please, do you understand why? Thanks!
> Gerritjan
>
> Op 25 okt 2010, om 23:59 heeft [Ricardo Rodriguez] eBioTIC. het volgende 
> geschreven:
>
>
>
> Gerritjan Koekkoek wrote:
>
>   
>> Hi,
>>
>> The condition is:
>> After user has registered he/she only belongs to XWikiAllGroup (right?)
>>
>> 
>
> Right, by default. You should want to consider these two parameters in 
> xwiki.cfg (as stated in its preamble, commented parameters show the 
> default value)
>
> #-# List of groups that a new user should be added to by default after 
> registering. Comma-separated list of group document
> #-# names.
> # xwiki.users.initialGroups=XWiki.XWikiAllGroup
>
> #-# Should all users be considered members of XWiki.XWikiAllGroup, even 
> if they don't have an associated object in the
> #-# group's document?
> # xwiki.authentication.group.allgroupimplicit=0
>
>   
>> If this condition is true; we would like to ask the user to 'tell us more 
>> about yourself' by re-directing to the profile
>>
>> 
>
> But redirecting to her/his profile doesn't enforce more information to 
> be entered. Please, how are you planning to get that? Users can just 
> arrive to their profiles and to enter nothing.
>
>   
>> Updating the userprofile with extra data; with this  data we can then add 
>> the user to appropriate group(s)
>>
>> I understand : the $query 

Re: [xwiki-users] getRenderedContent issues

2010-10-28 Thread Thomas Mortagne
On Sun, Oct 24, 2010 at 00:31, Eugen Colesnicov  wrote:
>
> Hi colleagues!
>
> I testing some application with standart organization (many of XWiki
> applications organized in a same way):
> Exists TestAppCode space with all classes, templates, sheets, codes and
> exists TestApp space with visualization pages using {{include
> document="TestAppCode.SomeTemplate"/}}
>
> When I trying to use getRenderedContent for this document from TestApp (for
> example, when I want to send this page by email form another page with my
> own code) I get rendered content of TestAppCode.SomeTemplate - not the
> content of my data.
>
> I want to clarify - this is because of
> http://jira.xwiki.org/jira/browse/XWIKI-4274? Looks like my situation ... I
> staying in one page and trying to getRenderedContent for the another page.
>
> Maybe exists some ways to overcome this issue?

There is several ways:
- use
#set($document = $xwiki.getDocument("somepage"))
$document.getRenderedContent($document.content, $document.syntax)

which properly set the context document (yes I agree that this
difference between the two API is pretty weird)

- if you have programming right you can set the context document
yourself before calling getRenderedContent

>
> Thanks beforehand
> Eugen Colesnicov
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/getRenderedContent-issues-tp5666553p5666553.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
>



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


Re: [xwiki-users] Lucene File Indexing

2010-10-28 Thread Thomas Höschele
Hallo,

checked broken attachments. There some put these are picture files only,
which should not be affected by the lucene engine.
Also how can I make the rebuild with the scheduler, my code does not seem to
work. 

Thanks for your answer.
Thomas

-Ursprüngliche Nachricht-
Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im Auftrag von
[Ricardo Rodriguez] eBioTIC.
Gesendet: Donnerstag, 28. Oktober 2010 11:54
An: XWiki Users
Betreff: Re: [xwiki-users] Lucene File Indexing

Hi!

Thomas Höschele wrote:
> Hallo,
>
>  
>
> I noticed that lucene is capable of Indexing various office files (excel,
> word, outlook mails); however, this doesn’t happen automatically.
> When I add the file it does not get indexed no matter how long I wait.
When
> I rebuild the Index via the administration terminal the files get indexed.

>
>   
Please, Thomas, could you give more details about your installation? 
XWiki release? Servlet container/application server (Jetty, Tomcat, 
GlassFish,..)? Database?
>  
>
> Also I get an error in the logs (error getting content of attachment … of
> doc …).
>
>  
>   

Could you also check if you have broken attachments and those are the 
ones causing these errors? You can use this:

http://code.xwiki.org/xwiki/bin/view/Snippets/AllBrokenAttachments
> Is this an Lucene Error or has it something todo with my configuration?
>   

I had the same type of errors here (XE/XEM 2.4.1 running on a Suse Linux 
10sp3 box with Apache Tomcat 5.5.27 and Java 1.5.0 ). All but a small 
bunch where related with broken attachments. Among these, three Excel 
spreadsheets with xlsb format. The rest, PDF files. You talk about 
Microsoft Office files, let's see if we can reproduce the error!

I'll try in a new installation running the last XE snapshot ASAP. I'll 
keept this thread posted. If you could confirm that some xlsb files are 
causing problems in Lucene, I think it will be worth to create a new 
Jira issue on this.

Thanks!
>  
>
> Thomas
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>   

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

___
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] Xwiki installed in WebSphere error

2010-10-28 Thread Aaron Obst
Greetings all ...

We are testing out xwiki at my company and have opted for the option to
install into WebSphere (on Linux) with a MySQL backend.  I have created the
backend database and installed the war file into the application server.
 However at start-up time I get the following error;  (Has anyone seen this
before and know what has to be done)

[10/28/10 7:19:51:596 CDT] 0029 ApplicationMg A   WSVR0204I:
Application: xwiki-enterprise-manager-web-2_5_war  Application build level:
Unknown
[10/28/10 7:20:00:191 CDT] 0029 webappI
com.ibm.ws.webcontainer.webapp.WebGroupImpl WebGroup SRVE0169I: Loading Web
Module: xwiki.
[10/28/10 7:20:00:283 CDT] 0029 WASSessionCor I SessionContextRegistry
getSessionContext SESN0176I: Will create a new session context for
application key default_host/xwiki
[10/28/10 7:20:00:381 CDT] 0029 MBeanDescript I   ADMN1216I: One or more
methods in Portlet mbean is excluded from access check.
[10/28/10 7:20:00:405 CDT] 0029 MBeanDescript I   ADMN1216I: One or more
methods in PortletApplication mbean is excluded from access check.
[10/28/10 7:20:01:299 CDT] 0029 jsp   W
com.ibm.ws.jsp.taglib.TldParser endElement JSPG0235E: The JSP container
failed to load the TagExtraInfo class
[org.apache.struts.taglib.EnumerateTei]  from /WEB-INF/struts.tld
[10/28/10 7:20:01:301 CDT] 0029 jsp   W
com.ibm.ws.jsp.taglib.TldParser endElement JSPG0235E: The JSP container
failed to load the TagExtraInfo class [org.apache.struts.taglib.IterateTei]
 from /WEB-INF/struts.tld
[10/28/10 7:20:03:902 CDT] 0029 webappE
com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E:
Exception caught while initializing context: {0}
 java.lang.RuntimeException: Failed to find
the Observation Manager component
at
org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:81)
at
com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1667)
at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:368)
at
com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:294)
at
com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
at
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
at
com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)
at
com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1120)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1313)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:619)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:938)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:723)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1264)
at
com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4566)
at
com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4654)
at
com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1269)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2041)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:437)
at
com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:122)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:380)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:651)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:613)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)

Re: [xwiki-users] Lucene File Indexing

2010-10-28 Thread [Ricardo Rodriguez] eBioTIC.
Hi!

Thomas Höschele wrote:
> Hallo,
>
> checked broken attachments. There some put these are picture files only,
> which should not be affected by the lucene engine.
>   

I've seen issues with PDF files including only images. I'd fix all and 
every problem with attachments before debugging problems with Lucene. I 
guess you can configure Lucene to exclude some file extensions, but I 
don't now how to do that.

> Also how can I make the rebuild with the scheduler, my code does not seem to
> work. 
>
>   

My Search Administration don't work neither with Lucene as default 
search engine. To force a rebuild of the index, simply delete its files 
and restart your applications server/servlet container. About index 
files location, xwiki.cfg reads:

#-# Lucene search engine
#-# Location where to place the lucene index files. The default is the 
"lucene" subdirectory in the container's "work"



Please, could you tell something else about your installation? Thanks!


> Thanks for your answer.
> Thomas
>
> -Ursprüngliche Nachricht-
> Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im Auftrag von
> [Ricardo Rodriguez] eBioTIC.
> Gesendet: Donnerstag, 28. Oktober 2010 11:54
> An: XWiki Users
> Betreff: Re: [xwiki-users] Lucene File Indexing
>
> Hi!
>
> Thomas Höschele wrote:
>   
>> Hallo,
>>
>>  
>>
>> I noticed that lucene is capable of Indexing various office files (excel,
>> word, outlook mails); however, this doesn't happen automatically.
>> When I add the file it does not get indexed no matter how long I wait.
>> 
> When
>   
>> I rebuild the Index via the administration terminal the files get indexed.
>> 
>
>   
>>   
>> 
> Please, Thomas, could you give more details about your installation? 
> XWiki release? Servlet container/application server (Jetty, Tomcat, 
> GlassFish,..)? Database?
>   
>>  
>>
>> Also I get an error in the logs (error getting content of attachment ... of
>> doc ...).
>>
>>  
>>   
>> 
>
> Could you also check if you have broken attachments and those are the 
> ones causing these errors? You can use this:
>
> http://code.xwiki.org/xwiki/bin/view/Snippets/AllBrokenAttachments
>   
>> Is this an Lucene Error or has it something todo with my configuration?
>>   
>> 
>
> I had the same type of errors here (XE/XEM 2.4.1 running on a Suse Linux 
> 10sp3 box with Apache Tomcat 5.5.27 and Java 1.5.0 ). All but a small 
> bunch where related with broken attachments. Among these, three Excel 
> spreadsheets with xlsb format. The rest, PDF files. You talk about 
> Microsoft Office files, let's see if we can reproduce the error!
>
> I'll try in a new installation running the last XE snapshot ASAP. I'll 
> keept this thread posted. If you could confirm that some xlsb files are 
> causing problems in Lucene, I think it will be worth to create a new 
> Jira issue on this.
>
> Thanks!
>   
>>  
>>
>> Thomas
>>
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>   
>> 
>
>   

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

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


[xwiki-users] Disabling "Save & Continue" button

2010-10-28 Thread ccoreggioli

Hi,

is there a way to hide/disable (better hide) the "Save & Continue" button
when editing a page? My users like to click it very often creating a
very long history. 

If there isn't a property to do so, i think i'll customize the source code,
in which .vm file do i have to put my hands? or is it in a .js file?

Thanks a lot,
claudio
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Disabling-Save-Continue-button-tp5682916p5682916.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] Disabling "Save & Continue" button

2010-10-28 Thread Sergiu Dumitriu
On 10/28/2010 05:02 PM, ccoreggioli wrote:
>
> Hi,
>
> is there a way to hide/disable (better hide) the "Save&  Continue" button
> when editing a page? My users like to click it very often creating a
> very long history.
>
> If there isn't a property to do so, i think i'll customize the source code,
> in which .vm file do i have to put my hands? or is it in a .js file?

templates/editactions.vm

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


Re: [xwiki-users] conditional redirect after login

2010-10-28 Thread [Ricardo Rodriguez] eBioTIC.


[Ricardo Rodriguez] eBioTIC. wrote:
> Hi!
>
> Gerritjan Koekkoek wrote:
>   
>> Hi,
>>
>> I really appreciate your interest, this really helps me; Thanks 
>>
>> You are very right, If users are redirected to their profile they are not 
>> forced to enter any extra data.
>> But we will put a text in the profile page that it would be very helpfull if 
>> they did;
>> If they do not, we will not add them to to more functional group, so, i 
>> hope, it is also in their interest
>> if they want more functionality. This is, by means a manual process, we do 
>> not want that the WIKI is crowded with visitors
>> that do not ADD to our community
>>   
>> 
>
> I think Curriki people have done a nice work to create a custimized 
> registering process. Do you know Curriki? Check this...
>
> http://www.curriki.org
>
> Register yourself and will see the look and feel of the process.
>
>   
>> One principle is that I try to do everything from within the WIKI and stay 
>> away from configuration files.
>> WE are hosting our wiki on a external system, so it is difficult to get 
>> access to filesystem anyway!
>> Second; we are fully happy with the default behaviour of to what groups a 
>> registered user is added after registration
>>   
>> 
>
> I do agree with this approach. It also helps in the upgrade process. 
> There are a number of "extension things" playing around lately in XWiki 
> that is worth to pay attention to! For JavaScript and Stylesheet 
> extensions seam simply great... even though I'm not able to use them 
> yet! :-) The Extensions Manager will ease the process.
>
> Regarding the modification of the login.vm, I think it is quite simple 
> to copy login.vm to a customized skin.
>   
>> Regarding the login.vm modification
>> (snippet from default login.vm in XWIKI 2.5
>> #if ($xcontext.user != 'XWiki.XWikiGuest')
>>   #if ($request.xredirect)
>> $response.sendRedirect($request.xredirect)
>>   #else
>> $response.sendRedirect($xwiki.getURL('Main.WebHome'))
>>   #end
>> #elseif($doc.fullName != 'XWiki.XWikiLogin')
>>   #set($qs = "$!{request.queryString}")
>>   #if(!$request.getParameter('xredirect'))
>> #set($qs = "xredirect=$escapetool.url($doc.getURL('view'))&${qs}")
>>   #end
>>   $response.sendRedirect($xwiki.getURL('XWiki.XWikiLogin', 'login', $qs))
>> #else
>> ###
>> ### Login page
>> ###
>> ###
>> ...
>> #end
>>
>> I think I should inject the code after #if ($xcontext.user != 
>> 'XWiki.XWikiGuest')
>> You think I could use #includeInContext('YourSpace.YourDocument') or would a 
>> macro make more sense?
>> I'm always trying to keep standard XWIKI code as supplied with the product 
>> as standard as possible, otherwise 
>> I'm facing more complex upgrade paths?
>>   
>> 
>
> Have you tried this? I'm not able to get it working. Or there is some 
> more element involved in the login process, or I don't
> understand the first code chunk behaviour. I've substitute this block...
>
> #if ($xcontext.user != 'XWiki.XWikiGuest')
>   #if ($request.xredirect)
> $response.sendRedirect($request.xredirect)
>   #else
> $response.sendRedirect($xwiki.getURL('Main.WebHome'))
>   #end
> #elseif($doc.fullName != 'XWiki.XWikiLogin')
>   #set($qs = "$!{request.queryString}")
>   #if(!$request.getParameter('xredirect'))
> #set($qs = "xredirect=$escapetool.url($doc.getURL('view'))&${qs}")
>   #end
>   $response.sendRedirect($xwiki.getURL('XWiki.XWikiLogin', 'login', $qs))
> #else
>
> with this one...
>
> #if ($xcontext.user != 'XWiki.XWikiGuest')
>   $response.sendRedirect($xwiki.getURL('XWiki.RogerGoldman'))
> #else
>
> And I keep being redirected to the homepage after log in.
>
> XWiki.RogerGoldman is a dummy user and it exists. It works when included 
> in a "regular" document. See this..
>
> http://epecnetcore.environmentalchange.net:8080/xwiki/bin/view/ICT/Redirect
>
> Please, do you understand why? Thanks!
>   

Nothing to do with the script. "'ve had to restart the server due to a 
java.lang.OutOfMemoryError: PermGen space" error and now it  does work. 
I'll try later to "inject" the script in this template.

>> Gerritjan
>>
>> Op 25 okt 2010, om 23:59 heeft [Ricardo Rodriguez] eBioTIC. het volgende 
>> geschreven:
>>
>>
>>
>> Gerritjan Koekkoek wrote:
>>
>>   
>> 
>>> Hi,
>>>
>>> The condition is:
>>> After user has registered he/she only belongs to XWikiAllGroup (right?)
>>>
>>> 
>>>   
>> Right, by default. You should want to consider these two parameters in 
>> xwiki.cfg (as stated in its preamble, commented parameters show the 
>> default value)
>>
>> #-# List of groups that a new user should be added to by default after 
>> registering. Comma-separated list of group document
>> #-# names.
>> # xwiki.users.initialGroups=XWiki.XWikiAllGroup
>>
>> #-# Should all users be considered members of XWiki.XWikiAllGroup, even 
>> if they don't have an associated object in the
>> #-# group's document?
>> # xwiki.authentication.group.allgroupimplicit=0
>>
>>   
>> 
>>> If

[xwiki-users] Successful FreeBSD (Tomcat) to Solaris (Glassfish) migration

2010-10-28 Thread Kaya Saman
Hi guys,

I've managed to successfully migrate XWiki from FreeBSD 8.0 x64 Release 
running Postgresql 8.2 and Apache Tomcat 6 to Nexenta Core 3 x86 
(OpenSolaris distro) running as a virtual test machine on Virtual Box 
running Postgresql 8.3 and Glassfish v3

I'd love to get the information out as a guide since the XWiki site 
doesn't show anything in regards to migration let alone between systems 
(that I've seen so far) or running XWiki with Glassfish and Postgresql 
as the current version shows MySQL.

--or in addition doesn't have anything on installing Xwiki on FreeBSD 
either which isn't very straight forward.

Of course this information will go on my wiki portal as it is basically 
a portfolio of what I have done in my time of engineering both 
UNIX/Linux and Cisco systems; however, I am just wondering if I could 
create a login on the Xwiki site to post this information or 
alternatively give it to someone that has access

I think it would be a great commodity to Xwiki users wishing to test out 
new installs or migrations between systems especially for new 
users like myself who have either just started with Xwiki or only been 
using it for a short period of time.


Regards,


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


Re: [xwiki-users] documentation wiki user account

2010-10-28 Thread jminne

Oh!  so xwiki.org has a register link, but the "sub wikis" only have a login
link.  That seems odd to me.  

Anyway, that worked and now I have an account.  Thanks.

-John
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/documentation-wiki-user-account-tp5680688p5684074.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] Successful FreeBSD (Tomcat) to Solaris (Glassfish) migration

2010-10-28 Thread Sergiu Dumitriu
On 10/28/2010 06:39 PM, Kaya Saman wrote:
> Hi guys,
>
> I've managed to successfully migrate XWiki from FreeBSD 8.0 x64 Release
> running Postgresql 8.2 and Apache Tomcat 6 to Nexenta Core 3 x86
> (OpenSolaris distro) running as a virtual test machine on Virtual Box
> running Postgresql 8.3 and Glassfish v3
>
> I'd love to get the information out as a guide since the XWiki site
> doesn't show anything in regards to migration let alone between systems
> (that I've seen so far) or running XWiki with Glassfish and Postgresql
> as the current version shows MySQL.
>
> --or in addition doesn't have anything on installing Xwiki on FreeBSD
> either which isn't very straight forward.
>
> Of course this information will go on my wiki portal as it is basically
> a portfolio of what I have done in my time of engineering both
> UNIX/Linux and Cisco systems; however, I am just wondering if I could
> create a login on the Xwiki site to post this information or
> alternatively give it to someone that has access

Did you see 
http://xwiki.475771.n2.nabble.com/documentation-wiki-user-account-tp5680688p5680747.html
 
?

Basically, you can register an account, but only on the main wiki 
(www.xwiki.org), not on subwikis.

> I think it would be a great commodity to Xwiki users wishing to test out
> new installs or migrations between systems especially for new
> users like myself who have either just started with Xwiki or only been
> using it for a short period of time.
>

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


[xwiki-users] issue with getAttachment from different document in Groovy

2010-10-28 Thread Arnaud bourree
Hello

I put a file Text.txt as attachment in a page: Sandbox.Page1
I in an other page Sandbox.Page2, I write the following script:
{{groovy}}
def mydoc=xwiki.getDocument('Sandbox.Page1')
def myfile=mydoc.getAttachment('Text.txt')
println "|"+mydoc+"|"+myfile
{{/goovy}}
The result is
|Sandbox.Page1|null

If I put the same script in Sandbox.Page2, the result become:
|Sandbox.Page1|com.xpn.xwiki.api.attachm...@331be8

Why cannot get attachments from other document?

I run XWiki 2.5 with Tomcat 6.0.28, Mysql 5.1.49, Ubuntu 10.10

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


Re: [xwiki-users] documentation wiki user account

2010-10-28 Thread [Ricardo Rodriguez] eBioTIC.
Hi,

jminne wrote:
> Oh!  so xwiki.org has a register link, but the "sub wikis" only have a login
> link.  That seems odd to me.  
>   

Yeap, perhaps the register link should be available in all and every 
page a guest visit in the first visits to the xwiki.org ecosystem. As 
happens to you, if you decide to log in a site other than the main wiki, 
xwiki.org, you only see a log in link, but not the register one.

It is not a problem for people understanding the environment, but it is 
by no means obvious for first time or occasional visitors. Let see what 
others have to say!

> Anyway, that worked and now I have an account.  Thanks.
>
> -John
>   

I do hope you enjoy XWiki!

Ricardo

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

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


Re: [xwiki-users] issue with getAttachment from different document in Groovy

2010-10-28 Thread [Ricardo Rodriguez] eBioTIC.
Hi!

Arnaud bourree wrote:
> Hello
>
> I put a file Text.txt as attachment in a page: Sandbox.Page1
> I in an other page Sandbox.Page2, I write the following script:
> {{groovy}}
> def mydoc=xwiki.getDocument('Sandbox.Page1')
> def myfile=mydoc.getAttachment('Text.txt')
> println "|"+mydoc+"|"+myfile
> {{/goovy}}
> The result is
> |Sandbox.Page1|null
>
> If I put the same script in Sandbox.Page2, the result become:
> |Sandbox.Page1|com.xpn.xwiki.api.attachm...@331be8
>   

I don't understand the situation: do you have two documents? One having 
an attachment, and another one without it? In any case, myfile gets an 
array: classname (com.xpn.xwiki.api.Attachment) and an object ID. I 
can't explain why it varies though.
> Why cannot get attachments from other document?
>   

Check this...

http://ebiotic.net/bin/ICT/HasAttachment#Attachments
http://ebiotic.net/bin/ICT/GetAttachment#Attachments

This should help:

http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/com/xpn/xwiki/platform/xwiki-core/2.5/xwiki-core-2.5-javadoc.jar/!/com/xpn/xwiki/api/Attachment.html

Please, take into account that I'm not a maven! I've just picked up some 
ideas here and there. Please, consider critically this message! Thanks.
> I run XWiki 2.5 with Tomcat 6.0.28, Mysql 5.1.49, Ubuntu 10.10
>
> Arnaud.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>   

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

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


Re: [xwiki-users] issue with getAttachment from different document in Groovy

2010-10-28 Thread Caleb James DeLisle
Hi Arnaud,

I have indeed repeated this problem. It appears that I have introduced a bug 
when I fixed
http://jira.xwiki.org/jira/browse/XWIKI-5405. This bug nolonger exists on the 
2.6 trunk due to
additional refactoring and I will work on a targeted patch for v2.5.1
Terribly sorry for the inconvenience and thank you for the report!

Caleb


On 10/28/2010 06:25 PM, [Ricardo Rodriguez] eBioTIC. wrote:
> Hi!
> 
> Arnaud bourree wrote:
>> Hello
>>
>> I put a file Text.txt as attachment in a page: Sandbox.Page1
>> I in an other page Sandbox.Page2, I write the following script:
>> {{groovy}}
>> def mydoc=xwiki.getDocument('Sandbox.Page1')
>> def myfile=mydoc.getAttachment('Text.txt')
>> println "|"+mydoc+"|"+myfile
>> {{/goovy}}
>> The result is
>> |Sandbox.Page1|null
>>
>> If I put the same script in Sandbox.Page2, the result become:
>> |Sandbox.Page1|com.xpn.xwiki.api.attachm...@331be8
>>   
> 
> I don't understand the situation: do you have two documents? One having 
> an attachment, and another one without it? In any case, myfile gets an 
> array: classname (com.xpn.xwiki.api.Attachment) and an object ID. I 
> can't explain why it varies though.
>> Why cannot get attachments from other document?
>>   
> 
> Check this...
> 
> http://ebiotic.net/bin/ICT/HasAttachment#Attachments
> http://ebiotic.net/bin/ICT/GetAttachment#Attachments
> 
> This should help:
> 
> http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/com/xpn/xwiki/platform/xwiki-core/2.5/xwiki-core-2.5-javadoc.jar/!/com/xpn/xwiki/api/Attachment.html
> 
> Please, take into account that I'm not a maven! I've just picked up some 
> ideas here and there. Please, consider critically this message! Thanks.
>> I run XWiki 2.5 with Tomcat 6.0.28, Mysql 5.1.49, Ubuntu 10.10
>>
>> Arnaud.
>> ___
>> 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