Re: [xwiki-users] Problem with copy and paste of lines with file attachments

2011-08-26 Thread Dale Amon
On Thu, Aug 25, 2011 at 11:42:15PM -0400, Sergiu Dumitriu wrote:
 More at http://platform.xwiki.org/xwiki/bin/Features/OfficeImporter

A few comments on human factors. Although this looks like it
might be exactly what I want, for a person unfamiliar with
the terminology it is not at all clear how to proceed.

In Administer Wiki, I see Applications, but the only thing which
seems to pop out is 'Extension Manager' which claims to not really
be safe to use yet. And it is not clear where an extension is
synonymous with a plugin, which is what the OfficeImporter is
documented as being.

A search on my Wiki comes up with a blank on 'Plugin'.

On the XWiki document URL, there is no link that tells you
how to download and install the plug in on your own XWiki,
at least not that I have seen.

I imagine this is the way a lot of new users will hit the
issue of plugins; while I may find out how by doing some
hours of RTFM, it just seems there should be something
simple and obvious on my xwiki for installing a plug in
as an administrator. Maybe there is and it is just a matter
of unfamiliar terminology.

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


Re: [xwiki-users] AJAX and Macro

2011-08-26 Thread Grüner Heinrich
Hi Sergiu,
is there a way
1) to programmatically generate the mentioned wiki document that 
generates the data
2) hide this document from the user?

Maybe I should write a servlet instead and register it in xwikis web.xml ?

Thanks,
Stefan.
Am 26.08.2011 06:05, schrieb Sergiu Dumitriu:
 On 08/25/2011 09:50 AM, Grüner Heinrich wrote:
 Hi,
 I am very new to xwiki.
 I've written a java-macro (implementing the
 org.xwiki.rendering.macro.Macro interface), which is generating some
 base content.
 now, this content should be able to query data from the macro-bean via
 ajax-request.
 Is that possible? How should the ajax call look like?
 Well, a java bean isn't exactly ready to respond to HTTP requests by
 itself, so you need to make an intermediary that lies somewhere in the
 way of HTTP requests and exposes this data.

 There are several ways to do this, depending on how complex you want to
 make this interaction.

 The best approach I'd advise is to write a scriptable service component
 that offers some specific methods you need, and use it inside a wiki
 document. Here's a short plan:

 1. Write another class that implements
 org.xwiki.script.service.ScriptService as a component. See
 http://platform.xwiki.org/xwiki/bin/DevGuide/WritingComponents for more
 details about writing components (don't forget to declare it in
 components.txt). The hint of the component is the name of the service,
 so chose something descriptive. Being in Java, you'll find a way to get
 hold of your data and manipulate it as you wish. Build and put the jar
 in WEB-INF/lib, just like your macro (they can be both in the same jar).

 2. Write a wiki document that calls your new scriptable service like:
 $service.myServiceName.getMyData() and outputs the data in the desired
 format. Don't forget to set the correct content type, so if you're
 outputting json put something like this:
 $response.setContentType('application/json')
 Of course, don't forget to wrap your code inside a {{velocity}} macro.

 3. From Javascript make calls to this page using /get/ as the action and
 outputSyntax=plain as the query string. Don't hardcode the URL, use
 $xwiki.getURL('Service.DocumentName', 'get', 'outputSyntax=plain') to
 let the platform give you the correct URL.

 Speaking of javascript, for the best practice you should read
 http://platform.xwiki.org/xwiki/bin/DevGuide/SkinExtensionsTutorial

 Thanks,
 Stefan.


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


Re: [xwiki-users] XWiki upgrade

2011-08-26 Thread Caleb James DeLisle
Hello,

On 08/25/2011 12:46 PM, Jonathan at Crindau wrote:
 Hi,
 
 I am a user of myxwiki and I receive notifications on pages such as June 6:
 Upgraded xwiki to version 3.1 SNAPSHOT from 2011-06-06. Don't forget to
 upgrade your wiki with the latest XAR (Upgrade instructions). Does that
 mean the XWiki Core has been upgraded and I just need to upgrade wiki
 documents?

Yes

 If so, having downloaded the latest XAR
 (xwiki-enterprise-wiki-3.1-20110824.095236-263.xar in this instance) to my
 PC, can I expand it within myxwiki or unzip it on my machine? Do I export my
 xwiki, merge my files into the new build and then import back? 

the most common way to do it is by doing the import on top of your wiki and 
unchecking
documents which contain configuration and should not be re-imported.
It also helps to import as new revision so if you make a mistake you can just 
roll back the
document which was broken in the import.
Of course it makes sense to back up your wiki before hand using the exporter.

Caleb

 Since with
 myxwiki the wiki is already available I don't have the experience of
 building one from scratch and the confidence to just make changes knowing
 they are on a local machine. Please can you provide some clearer guidelines
 for users of myxwiki.
 
 Thanks,
 
 Jonathan
 ___
 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] Problem with copy and paste of lines with file attachments

2011-08-26 Thread Marius Dumitru Florea
On Fri, Aug 26, 2011 at 9:35 AM, Dale Amon a...@vnl.com wrote:
 On Thu, Aug 25, 2011 at 11:42:15PM -0400, Sergiu Dumitriu wrote:
 More at http://platform.xwiki.org/xwiki/bin/Features/OfficeImporter

 A few comments on human factors. Although this looks like it
 might be exactly what I want, for a person unfamiliar with
 the terminology it is not at all clear how to proceed.


 In Administer Wiki, I see Applications, but the only thing which
 seems to pop out is 'Extension Manager' which claims to not really
 be safe to use yet. And it is not clear where an extension is
 synonymous with a plugin, which is what the OfficeImporter is
 documented as being.

You missed the OpenOffice Server administration section? From there
you can start the OpenOffice server, which is used by the office
importer module to import/convert office documents. Of course, you
need to configure the OpenOffice server connection first, and this is
described on 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Office+Importer+Application
(there is a link to this page from
http://platform.xwiki.org/xwiki/bin/Features/OfficeImporter ).


 A search on my Wiki comes up with a blank on 'Plugin'.


 On the XWiki document URL, there is no link that tells you
 how to download and install the plug in on your own XWiki,
 at least not that I have seen.

Office importer is listed as one of the platform features which means
it is available by default. You don't have to install anything. Also,
on 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Office+Importer+Application
, in the information box on the top right corner, it is written that
this application is bundled with XWiki Enterprise so you don't have to
install it either.


 I imagine this is the way a lot of new users will hit the
 issue of plugins; while I may find out how by doing some
 hours of RTFM, it just seems there should be something
 simple and obvious on my xwiki for installing a plug in
 as an administrator. Maybe there is and it is just a matter
 of unfamiliar terminology.

The steps you should take are:

1. Install (if you don't have it already) OpenOffice or LibreOffice on
the machine where XWiki Enterprise runs. Note that there was an issue
with the latest versions of both office servers,
http://jira.xwiki.org/jira/browse/XWIKI-6832 , which was fixed
recently in our code. So you either install on older version of
OpenOffice/LibreOffice (e.g. 3.2) or use the latest XWiki Enterprise
3.2 snapshot (becuse 3.2M3 wasn't released yet).

2. Configure the connection to the office server as described on
http://extensions.xwiki.org/xwiki/bin/view/Extension/Office+Importer+Application
(you have to edit xwiki.properties and restart the XWiki Enterprise
server).

3. Connect/start to the office server from the OpenOffice Server
administration section.

4. Use the Import menu from the WYSIWYG editor.

Hope this helps,
Marius


 ___
 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] XWiki upgrade

2011-08-26 Thread Maxime Sinclair
Hi Jonathan,

Take a look at the documentation about this concern:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradingwikidocuments

Maxime

2011/8/26 Caleb James DeLisle calebdeli...@lavabit.com:
 Hello,

 On 08/25/2011 12:46 PM, Jonathan at Crindau wrote:
 Hi,

 I am a user of myxwiki and I receive notifications on pages such as June 6:
 Upgraded xwiki to version 3.1 SNAPSHOT from 2011-06-06. Don't forget to
 upgrade your wiki with the latest XAR (Upgrade instructions). Does that
 mean the XWiki Core has been upgraded and I just need to upgrade wiki
 documents?

 Yes

 If so, having downloaded the latest XAR
 (xwiki-enterprise-wiki-3.1-20110824.095236-263.xar in this instance) to my
 PC, can I expand it within myxwiki or unzip it on my machine? Do I export my
 xwiki, merge my files into the new build and then import back?

 the most common way to do it is by doing the import on top of your wiki and 
 unchecking
 documents which contain configuration and should not be re-imported.
 It also helps to import as new revision so if you make a mistake you can just 
 roll back the
 document which was broken in the import.
 Of course it makes sense to back up your wiki before hand using the exporter.

 Caleb

 Since with
 myxwiki the wiki is already available I don't have the experience of
 building one from scratch and the confidence to just make changes knowing
 they are on a local machine. Please can you provide some clearer guidelines
 for users of myxwiki.

 Thanks,

 Jonathan
 ___
 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

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


[xwiki-users] AUTO: MaryEllen Coleman/Poughkeepsie/IBM is out of the office. (returning 08/29/2011)

2011-08-26 Thread MaryEllen Coleman

I am out of the office until 08/29/2011.

I have to attend to a personal appointment today; will check email in the
morning and evening, as time permits.  If this is an emergency, please call
my cell.  Thanks and have a pleasant weekend!  :-)


Note: This is an automated response to your message  users Digest, Vol 49,
Issue 27 sent on 8/26/2011 3:06:09.

This is the only notification you will receive while this person is away.

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


[xwiki-users] Panel Context

2011-08-26 Thread Grüner Heinrich
Hi,

I have a java plugin which is running in a panel.
Now I want to find out which main document is currently displayed.
The context of the Plugin only refers to the Panel document.

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


Re: [xwiki-users] Panel Context

2011-08-26 Thread Sergiu Dumitriu
On 08/26/2011 04:19 AM, Grüner Heinrich wrote:
 Hi,

 I have a java plugin which is running in a panel.
 Now I want to find out which main document is currently displayed.
 The context of the Plugin only refers to the Panel document.

Are you sure? $doc (in velocity) refers to the document being displayed 
(the one specified in the URL). I expect the context document to be the 
same.

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


Re: [xwiki-users] Panel Context

2011-08-26 Thread Thomas Mortagne
On Fri, Aug 26, 2011 at 4:38 PM, Sergiu Dumitriu ser...@xwiki.com wrote:
 On 08/26/2011 04:19 AM, Grüner Heinrich wrote:
 Hi,

 I have a java plugin which is running in a panel.
 Now I want to find out which main document is currently displayed.
 The context of the Plugin only refers to the Panel document.

 Are you sure? $doc (in velocity) refers to the document being displayed
 (the one specified in the URL). I expect the context document to be the
 same.

Same for me, AFAIK $doc is supposed to be the current document and not
the panel document.


 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 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] AJAX and Macro

2011-08-26 Thread Sergiu Dumitriu
On 08/26/2011 03:00 AM, Grüner Heinrich wrote:
 Hi Sergiu,
 is there a way
 1) to programmatically generate the mentioned wiki document that
 generates the data

Yes, you can automatically generate it using 
org.xwiki.bridge.DocumentAccessBridge.setDocumentContent (check first if 
it exists using .exists from the same component).

You can do that in an observation listener that listens to the 
ApplicationStartedEvent to do that at startup.

 2) hide this document from the user?

Yes, there are two ways of doing that.

1 is to put it in the XWiki space, which is blacklisted (hidden from 
normal searches) for simple users. Admins and users that specified in 
their profile that they want to be advanced users will still see it 
listed in search results and the index.

2 is to mark it as hidden, but that requires calling the oldcore method 
com.xpn.xwiki.doc.XWikiDocument.setHidden (and save the document after 
that). This will make it really hard to find the document.

 Maybe I should write a servlet instead and register it in xwikis web.xml ?

Yes, this is one of the other more complicated ways of doing this. I say 
complicated because the first solution requires just putting a jar in 
the classpath, while this also requires changes to the web.xml file. The 
most recent version of the servlet specification allows servlets to be 
declared outside the main web.xml file, making it much easier to extend 
the application, but we're still on an older version to support a wider 
range of containers.

 Thanks,
 Stefan.
 Am 26.08.2011 06:05, schrieb Sergiu Dumitriu:
 On 08/25/2011 09:50 AM, Grüner Heinrich wrote:
 Hi,
 I am very new to xwiki.
 I've written a java-macro (implementing the
 org.xwiki.rendering.macro.Macro interface), which is generating some
 base content.
 now, this content should be able to query data from the macro-bean via
 ajax-request.
 Is that possible? How should the ajax call look like?
 Well, a java bean isn't exactly ready to respond to HTTP requests by
 itself, so you need to make an intermediary that lies somewhere in the
 way of HTTP requests and exposes this data.

 There are several ways to do this, depending on how complex you want to
 make this interaction.

 The best approach I'd advise is to write a scriptable service component
 that offers some specific methods you need, and use it inside a wiki
 document. Here's a short plan:

 1. Write another class that implements
 org.xwiki.script.service.ScriptService as a component. See
 http://platform.xwiki.org/xwiki/bin/DevGuide/WritingComponents for more
 details about writing components (don't forget to declare it in
 components.txt). The hint of the component is the name of the service,
 so chose something descriptive. Being in Java, you'll find a way to get
 hold of your data and manipulate it as you wish. Build and put the jar
 in WEB-INF/lib, just like your macro (they can be both in the same jar).

 2. Write a wiki document that calls your new scriptable service like:
 $service.myServiceName.getMyData() and outputs the data in the desired
 format. Don't forget to set the correct content type, so if you're
 outputting json put something like this:
 $response.setContentType('application/json')
 Of course, don't forget to wrap your code inside a {{velocity}} macro.

 3. From Javascript make calls to this page using /get/ as the action and
 outputSyntax=plain as the query string. Don't hardcode the URL, use
 $xwiki.getURL('Service.DocumentName', 'get', 'outputSyntax=plain') to
 let the platform give you the correct URL.

 Speaking of javascript, for the best practice you should read
 http://platform.xwiki.org/xwiki/bin/DevGuide/SkinExtensionsTutorial

 Thanks,
 Stefan.


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


Re: [xwiki-users] Panel Context

2011-08-26 Thread Grüner Heinrich
Sorry for confusing you, I was wrong.
I still trying to find my way through the api.

Am 26.08.2011 16:45, schrieb Thomas Mortagne:
 On Fri, Aug 26, 2011 at 4:38 PM, Sergiu Dumitriuser...@xwiki.com  wrote:
 On 08/26/2011 04:19 AM, Grüner Heinrich wrote:
 Hi,

 I have a java plugin which is running in a panel.
 Now I want to find out which main document is currently displayed.
 The context of the Plugin only refers to the Panel document.
 Are you sure? $doc (in velocity) refers to the document being displayed
 (the one specified in the URL). I expect the context document to be the
 same.
 Same for me, AFAIK $doc is supposed to be the current document and not
 the panel document.

 --
 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


Re: [xwiki-users] Problem with copy and paste of lines with file attachments

2011-08-26 Thread Dale Amon
On Fri, Aug 26, 2011 at 10:04:29AM +0300, Marius Dumitru Florea wrote:
 On Fri, Aug 26, 2011 at 9:35 AM, Dale Amon a...@vnl.com wrote:
  On Thu, Aug 25, 2011 at 11:42:15PM -0400, Sergiu Dumitriu wrote:
  More at http://platform.xwiki.org/xwiki/bin/Features/OfficeImporter
 
  A few comments on human factors. Although this looks like it
  might be exactly what I want, for a person unfamiliar with
  the terminology it is not at all clear how to proceed.
 
 
  In Administer Wiki, I see Applications, but the only thing which
  seems to pop out is 'Extension Manager' which claims to not really
  be safe to use yet. And it is not clear where an extension is
  synonymous with a plugin, which is what the OfficeImporter is
  documented as being.
 
 You missed the OpenOffice Server administration section? From there
 you can start the OpenOffice server, which is used by the office
 importer module to import/convert office documents. Of course, you
 need to configure the OpenOffice server connection first, and this is
 described on 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Office+Importer+Application
 (there is a link to this page from
 http://platform.xwiki.org/xwiki/bin/Features/OfficeImporter ).
 

Well, I installed pretty much everythings which said libreoffice, as
that is the Ubuntu and Debian standard.

Then I changed the openoffice.homepath=/usr/lib/openoffice/
Rebooted the VM just to be sure everything was updated.
Force the current page to clear on my laptop.
In the Administer-Configuration-Open Office I tried to 'Update'.
It replies:

Failed to execute the [velocity] macro

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