Re: [xwiki-users] [myxwiki] new wiki request

2010-08-23 Thread Thomas Mortagne
Hi,

On Sun, Aug 22, 2010 at 23:20, Fernando Paiva nand...@gmail.com wrote:
 requested server name: richapp.xwiki.org

As you can see on http://www.myxwiki.org, you have to register and
give us your user name.


 New wiki to share knowled acquired with a study group of RIA in the
 Federal University of Juiz de Fora, MG, Brazil.
 ___
 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] RES: RES: Calendar Application on XE 2.4 not working properly

2010-08-23 Thread Raluca Stavro
Yes, you can do that.
You have to change the parameters for the getHTMLCalendar method.
See 
http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-plugins/trunk/calendar/src/main/java/com/xpn/xwiki/plugin/calendar/CalendarPluginApi.java
.
So this is what you should do in your homepage:

...
## Set the calendar parameters
...
## Display calendar
$cview.getHTMLCalendar($cparams,
$xwiki.getDocument('MySpace.MyEventCalendarPage'), )

Where 'MySpace.MyEventsPage' is 'Main.EventCalendar' by default.

Raluca.

On Mon, Aug 23, 2010 at 5:10 AM, Lockie loc...@gmail.com wrote:

 Ah, thanks.

 I have a question though - I would like to mirror the calendar on my
 homepage without having the entry form on it, and instead have a link to a
 page where you can put events into the calendar. When I use {{include
 document=XWiki.CalendarSheet/}} it creates a new instance of the calendar,
 so if I add events directly to CalendarSheet they don't display on the
 calendar on the homepage.

 So, how can I make the entry form display its user input on a calendar on
 another page?

 Lockie.
 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5451203.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] Can not import default.xar

2010-08-23 Thread Colesnicov Eugen

Look at -
http://xwiki.475771.n2.nabble.com/Re-Upgrade-from-2-2-to-2-4-RC-1-base64-init-error-td5358966.html#a5358966

Also - http://jira.xwiki.org/jira/browse/XE-690

Shortly:
You should copy commons-codec-1.4.jar from the \xwiki\WEB-INF\lib to the
\glassfishv3\glassfish\modules and also delete commons-codec-repackaged.jar
in a \glassfishv3\glassfish\modules folder
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Can-not-import-default-xar-tp5450534p5451732.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


[xwiki-users] Ratings Application

2010-08-23 Thread Zuzana Zapletalova
Hello,
does anybody use Ratings Application? It is still a sandbox application but I 
think it works. Can you give me a help how to implement this application to 
xWiki? 

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


Re: [xwiki-users] Access denied for user 'xwiki'@'localhost'

2010-08-23 Thread [Ricardo Rodriguez] eBioTIC.
Thanks, Sergiu,

Sergiu Dumitriu wrote:
 Sometimes the connection comes from 127.0.0.1, not from localhost. 
 Although they're actually the same thing, it seems that mysql doesn't do 
 a normalization of the host. Or something else, maybe an alias of the 
 host. Anyway, you could connect to the mysql server from a console and 
 run show processlist; to see which hostname is printed for the 
 connections from XWiki.

   
Here the output of show processlist;

ricardorodrig...@peat:~ mysql -u xwiki -p -e show processlist
Enter password:
+-+---+-+---+-+--+---+--+
| Id  | User  | Host| db| Command | Time | State | 
Info |
+-+---+-+---+-+--+---+--+
| 100 | xwiki | localhost:37677 | xwiki | Sleep   |4 |   | 
NULL |
| 135 | xwiki | localhost   | NULL  | Query   |0 | NULL  | show 
processlist |
+-+---+-+---+-+--+---+--+
ricardorodrig...@peat:~

It keeps been a mystery for me what is happening with that error when 
installing/using XEM. Something related with

If XWiki generates tcp packets going in and out lo, it is clear that it 
is not using sockets but tcp. But these packets are from/to localhost 
so, why 'xwiki'@'localhost' with all privileges is not able to create 
schemas on demand?

Just trying to understand what is going on here and if it could be of 
any importance for XWiki development. Thanks for your help!

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] Access denied for user 'xwiki'@'localhost'

2010-08-23 Thread [Ricardo Rodriguez] eBioTIC.
Hi! Thanks for the insight!

Caleb James DeLisle wrote:

 Check your ifconfig for different addresses attached to the the loopback 
 device.
 Also you will get a lot more info by running tcpdump on the loopback and then 
 on ethernet
 and filtering by destination port = mysql port.
 A wild guess is that the ethernet device is being used as a loopback.

   
As far as I can see here 
(http://xen.net/fromPeat/ifconfig20100822.html), there is no other IP 
assigned to the loop-back device than the standard one, 127.0.0.1. In 
fact, tcpdump filtered by MySQL port and lo interface captures packets 
only when XWiki receive, and reply to, any request 
(http://xen.net/fromPeat/tcpdumplo20100822.html) but no when a MySQL 
client located on a remote workstation executes a query.

Filtering for MySQL port and eth0 interface captures packets originated 
by these remote MySQL queries.

Thus, I don't find any anomalous behaviour in lo and eth0, and I am not 
able to figure out why privileges granted to 'xwiki'@'localhost' and/or 
'xwiki'@'127.0.0.1' doesn't allow xwiki MySQL user to create new schemas 
on demand.

The only explanation I am able to figure out is that 
mysql-connector-java-5.1.13-bin.jar is generating remote calls (I guess 
this is the expected behaviour) and these calls are identified as not 
coming from localhost or 127.0.0.1, so xw...@% is required to have all 
privileges. But this is not what I see by using show processlist; as 
proposed by Sergiu (see this same thread).

So. I am out of ideas! Well, I am not a MySQL, Linux, XWiki or whatever 
wizard so, any new idea will be really welcome!!!

Thanks for your help,

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] Ratings Application

2010-08-23 Thread Elena-Oana Tabaranu
Hi,

You can find the ratings in the xwiki contrib repository:
http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/xwiki-plugin-ratings/
http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/xwiki-application-ratings/

To build the plugin jar use mvn clean install in the trunk folder.  The 
next step is to copy the jar to the lib folder of your wiki.
Build the application xar with mvn clean install and import the xar into 
your wiki.
This code should help you get started:

{{include document=XWiki.RatingsMacros/}}
{{velocity}}
$xwiki.ssx.use(XWiki.Ratings)##
$xwiki.jsx.use(XWiki.Ratings)##

==Full Ratings==

#displayFullRating($doc)

==Small Ratings==

#displaySmallRating($doc)

{{/velocity}}

I have tested with XWiki Enterprise 2.4 and I think the Javascript code 
needs to be updated because of the changes made on the top menu in the 
latest versions of XWiki.

Hope this helps,
Oana


Zuzana Zapletalova wrote:
 Hello,
 does anybody use Ratings Application? It is still a sandbox application but I 
 think it works. Can you give me a help how to implement this application to 
 xWiki? 

 Thanks, Zuzana.
 ___
 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 Building xwatch with maven

2010-08-23 Thread Simerpreet Singh
Hi,
I tried building with  instructions  given in
http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven
 what i was missing is settings.xml in .m2 folder.i also created that 
and then run command
'mvn clean install' but still getting following error

[INFO] Scanning for projects...
Downloading: 
http://maven.xwiki.org/externals/com/xpn/xwiki/platform/xwiki/22/xw
iki-22.pom
[WARNING] Unable to get artifact com.xpn.xwiki.platform:xwiki:pom:22 
from reposi
tory xwiki-externals (http://maven.xwiki.org/externals): Error 
transferring file
: Connection reset
Downloading: 
http://maven.xwiki.org/releases/com/xpn/xwiki/platform/xwiki/22/xwi
ki-22.pom
[WARNING] Unable to get artifact com.xpn.xwiki.platform:xwiki:pom:22 
from reposi
tory xwiki-releases (http://maven.xwiki.org/releases): Error 
transferring file:
Connection reset
Downloading: 
http://repo1.maven.org/maven2/com/xpn/xwiki/platform/xwiki/22/xwiki
-22.pom
[WARNING] Unable to get artifact com.xpn.xwiki.platform:xwiki:pom:22 
from reposi
tory central (http://repo1.maven.org/maven2): Error transferring file: 
Connectio
n reset
[ERROR] The build could not read 1 project - [Help 1]
[ERROR]   The project 
com.xpn.xwiki.products:xwiki-watch-parent:1.1-SNAPSHOT (E:
\SVN MAIN\Xwatch\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM com.xpn.xwiki.platform:xwiki:22 
for com.xp
n.xwiki.products:xwiki-watch-parent:1.1-SNAPSHOT: Failed to resolve POM 
for com.
xpn.xwiki.platform:xwiki:22 due to Error transferring file: Connection reset
  com.xpn.xwiki.platform:xwiki:pom:22

from the specified remote repositories:
  xwiki-externals (http://maven.xwiki.org/externals, releases=true, 
snapshots=tr
ue),
  xwiki-releases (http://maven.xwiki.org/releases, releases=true, 
snapshots=fals
e),
  xwiki-snapshots (http://maven.xwiki.org/snapshots, releases=false, 
snapshots=t
rue),
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
- [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the 
-e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please rea
d the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] 
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
delException


Thanks,
Simer

users-requ...@xwiki.org wrote:
 Send users mailing list submissions to
   users@xwiki.org

 To subscribe or unsubscribe via the World Wide Web, visit
   http://lists.xwiki.org/mailman/listinfo/users
 or, via email, send a message with subject or body 'help' to
   users-requ...@xwiki.org

 You can reach the person managing the list at
   users-ow...@xwiki.org

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of users digest...


 Today's Topics:

1. Re: How do I run a query from a rdf database in xwiki page
   (Eduard Moraru)
2. Re: Calendar Application on XE 2.4 not working  properly
   (Raluca Stavro)
3. RES: Calendar Application on XE 2.4 not workingproperly
   (Ramon Gomes Brand?o - SERINT)
4. Re: Problem building code for xwatch with maven (Anca Luca)
5. Re: RES: Calendar Application on XE 2.4 not workingproperly
   (Lockie)
6. Re: RES: Calendar Application on XE 2.4 not workingproperly
   (Raluca Stavro)
7. Re: Wysiwyg Application Translation (Thomas Mortagne)


 --

 Message: 1
 Date: Tue, 17 Aug 2010 13:15:07 +0300
 From: Eduard Moraru eduard.mor...@xwiki.com
 Subject: Re: [xwiki-users] How do I run a query from a rdf database in
   xwiki page
 To: users@xwiki.org
 Message-ID: 4c6a612b.5040...@xwiki.com
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

   Hi abrante,

 If I understood correctly your question, you want to know how to query 
 (using a SPARQL query) your RDF knowledge base server (hosted on some 
 remote machine) trough the SPARQL protocol from an XWiki page by the 
 push of a button or link and display the results on the same page.

 There are 2 options:
 1. Manually use the SPARQL protocol to send a HTTP request to your 
 server trough AJAX from the XWiki page.
 2. Have(make) an XWiki plugin that uses some java library like Jena or 
 Sesame to make remote SPARQL queries and use it with Velocity from an 
 XWiki page.

 For both cases, see the specification of the SPARQL protocol and how to 
 use it over HTTP (or SOAP): 
 http://www.w3.org/TR/rdf-sparql-protocol/#query-bindings-http

 If you like Option 1, then you must:
 1. Create a button or link and assign it an ID.
 2. Create a div or some sort of container for the result and assign it 
 an ID as well.
 3. Add a JavaScriptExtension (JSX) object to your xwiki page and observe 
 the click event ( 

Re: [xwiki-users] Panels

2010-08-23 Thread Sergiu Dumitriu
On 08/23/2010 06:46 AM, Lockie wrote:

 I was going to make a thread asking this but found this one. Is there any way
 to default panels as collapsed?

All panels, or just some?

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


Re: [xwiki-users] [myxwiki] new wiki request

2010-08-23 Thread Fernando Paiva
My user name is fernandonp.

Server Name: richapp.wiki.org




On Sun, Aug 22, 2010 at 6:20 PM, Fernando Paiva nand...@gmail.com wrote:

 requested server name: richapp.xwiki.org

 New wiki to share knowled acquired with a study group of RIA in the Federal 
 University of Juiz de Fora, MG, Brazil.



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


Re: [xwiki-users] [myxwiki] new wiki request

2010-08-23 Thread Thomas Mortagne
You can access your new wiki on http://richapp.myxwiki.org

Enjoy !

On Mon, Aug 23, 2010 at 18:53, Fernando Paiva nand...@gmail.com wrote:
 My user name is fernandonp.

 Server Name: richapp.wiki.org




 On Sun, Aug 22, 2010 at 6:20 PM, Fernando Paiva nand...@gmail.com wrote:

 requested server name: richapp.xwiki.org

 New wiki to share knowled acquired with a study group of RIA in the Federal 
 University of Juiz de Fora, MG, Brazil.



 ___
 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] Panels

2010-08-23 Thread Lockie


Sergiu Dumitriu-2 wrote:
 
 On 08/23/2010 06:46 AM, Lockie wrote:

 I was going to make a thread asking this but found this one. Is there any
 way
 to default panels as collapsed?
 
 All panels, or just some?
 

I'm looking at having them all closed and I'm using the colibri skin if it
helps.

Thanks,

Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Panels-tp5306756p5454672.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] Panels

2010-08-23 Thread Sergiu Dumitriu
On 08/24/2010 01:17 AM, Lockie wrote:


 Sergiu Dumitriu-2 wrote:

 On 08/23/2010 06:46 AM, Lockie wrote:

 I was going to make a thread asking this but found this one. Is there any
 way
 to default panels as collapsed?

 All panels, or just some?


 I'm looking at having them all closed and I'm using the colibri skin if it
 helps.

Then you can create a JavaScript extension (see 
http://platform.xwiki.org/xwiki/bin/DevGuide/SkinExtensionsTutorial ) 
with the following code:

document.observe('xwiki:dom:loaded', function() {
   $$('.panel').each(function(item) {
 item.removeClassName('expanded');
 item.addClassName('collapsed');
   });
});

and set the extension to be used Always on this wiki.

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


Re: [xwiki-users] Can not import default.xar

2010-08-23 Thread Grant Keiter
Colesnicov,

Thank you. That fixed it right up.

Grant

--- On Mon, 8/23/10, Colesnicov Eugen ecolesni...@gmail.com wrote:

 From: Colesnicov Eugen ecolesni...@gmail.com
 Subject: Re: [xwiki-users] Can not import default.xar
 To: users@xwiki.org
 Date: Monday, August 23, 2010, 3:16 AM
 
 Look at -
 http://xwiki.475771.n2.nabble.com/Re-Upgrade-from-2-2-to-2-4-RC-1-base64-init-error-td5358966.html#a5358966
 
 Also - http://jira.xwiki.org/jira/browse/XE-690
 
 Shortly:
 You should copy commons-codec-1.4.jar from the
 \xwiki\WEB-INF\lib to the
 \glassfishv3\glassfish\modules and also delete
 commons-codec-repackaged.jar
 in a \glassfishv3\glassfish\modules folder
 -- 
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/Can-not-import-default-xar-tp5450534p5451732.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] RES: RES: Calendar Application on XE 2.4 not working properly

2010-08-23 Thread Lockie


Raluca Stavro wrote:
 
 Yes, you can do that.
 You have to change the parameters for the getHTMLCalendar method.
 See
 http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-plugins/trunk/calendar/src/main/java/com/xpn/xwiki/plugin/calendar/CalendarPluginApi.java
 .
 So this is what you should do in your homepage:
 
 ...
 ## Set the calendar parameters
 ...
 ## Display calendar
 $cview.getHTMLCalendar($cparams,
 $xwiki.getDocument('MySpace.MyEventCalendarPage'), )
 
 Where 'MySpace.MyEventsPage' is 'Main.EventCalendar' by default.
 
 Raluca.
 

Thanks Raluca for all the help I really appreciate it. I don't really
understand what I'm meant to do though. I tried putting the code you
provided on the homepage and in different places but I can't seem to get it
to work. Can you tell me exactly where to put it, and am I meant to edit the
calendar parameters java code?

I have made a new page that users will use to fill out the calendar form. It
is called Main.Calendar and in it the only code is: 
{{include document=XWiki.CalendarSheet/}}

Then in Main.Home I have the Main.Calendar appearing below the dashboard:
{{include document=Main.Dashboard/}}
{{include document=Main.Calendar/}}

But rather than displaying the events made in Main.Calendar it only displays
events made on the actual Main.Home page.

All my pages are in 2.0 syntax and I'm using the colibri skin. I hope
nothing went wrong when I converted the calendar from 1.0 to 2.0 syntax. The
reason I need this is because I don't want the user to have to scroll down
on the home page, so if I can get the calendar form on another page, then I
can hide it on the home page with an external stylesheet, making everything
much more organised and neat. I managed to mirror the blog, recent changes,
and other pages on the home page but this one has me baffled.

Thanks again,

Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5455028.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] Panels

2010-08-23 Thread Lockie


Sergiu Dumitriu-2 wrote:
 
 
 Then you can create a JavaScript extension (see 
 http://platform.xwiki.org/xwiki/bin/DevGuide/SkinExtensionsTutorial ) 
 with the following code:
 
 document.observe('xwiki:dom:loaded', function() {
$$('.panel').each(function(item) {
  item.removeClassName('expanded');
  item.addClassName('collapsed');
});
 });
 
 and set the extension to be used Always on this wiki.
 
 
Thanks! That worked fine.

One final quick question- I have a panel for each space, and I need each of
these panels to automatically display a list of pages within their
respective space to work as a menu. The 
http://code.xwiki.org/xwiki/bin/view/Snippets/ChildParentSnippet
ChildParentSnippet  code seems to work in panels, but now I need help in
determining what part of it I can change so that it only picks up pages of
individual spaces. Because I'm making the panels manually, I can put the
space names into the code manually.

Thanks,
Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Panels-tp5306756p5455547.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] RES: RES: Calendar Application on XE 2.4 not working properly

2010-08-23 Thread Lockie

Ah nevermind I found the answer in the FAQ, was alot simpler than I thought:
--

#foreach ($item in $xwiki.searchDocuments(where doc.web='SpaceName'))
 * [$item]
#end

--
Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5455565.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