Re: [xwiki-users] [Error]: Java heap memory error on adding large attachment

2008-02-18 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Pavel wrote:
> Ricardo,
>
> I did not test the issue on different app servers and databases. 
> However, underlying reasons for this "out of memory" make me strongly 
> believe that changing DB/AS will make little or no difference.
>
> Pavel


Hi Pavel,

Based on your message (almost your message by itself)...

http://www.xwiki.org/xwiki/bin/view/FAQ/HowToSolveAJavaHeapMemoryError

I hope others improves it.

Best,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] MySQL Error "invalid use of group function" in Statistics application

2008-02-18 Thread Sergiu Dumitriu
Marius Dumitru Florea wrote:
> Hi Jeremie,
> 
> The sql query you suggested is cleaner and at least as efficient as the
> current one. It was my first option but unfortunately it's not supported
> by the newer versions of mysql. I've no idea why..
> 
> mysql> select xws_name, sum(xws_page_views) as pageviewcount from
> xwikistatsdoc where xws_action='view' and xws_name like '%.%' group by
> xws_name order by pageviewscount desc;
> ERROR 1054 (42S22): Unknown column 'pageviewscount' in 'order clause'
> 

Note that there's a typo: pageviewcount <> pageview-S-count

> Anyway, hibernate should be responsible for the correct translation from
> hql to a specific sql dialect. A solution would be to use the (idea from
> the) above sql but configure the dialect to MySQL5Dialect (in my case). I
> have to test this. I'll give you feedback soon.
> 
> Best Regards,
> Marius.
> 

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/

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


Re: [xwiki-users] Bulletin Board cannot display topic title and first post !?

2008-02-18 Thread Ngo Thi Hong Nga
I have already entered a title and the first post for the new topic, then
click Save and View and the result is what you see in the left of the
screenshot. That's the reason why I post this problem here.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] MySQL Error "invalid use of group function" in Statistics application

2008-02-18 Thread Marius Dumitru Florea
Hi Jeremie,

The sql query you suggested is cleaner and at least as efficient as the
current one. It was my first option but unfortunately it's not supported
by the newer versions of mysql. I've no idea why..

mysql> select xws_name, sum(xws_page_views) as pageviewcount from
xwikistatsdoc where xws_action='view' and xws_name like '%.%' group by
xws_name order by pageviewscount desc;
ERROR 1054 (42S22): Unknown column 'pageviewscount' in 'order clause'

Anyway, hibernate should be responsible for the correct translation from
hql to a specific sql dialect. A solution would be to use the (idea from
the) above sql but configure the dialect to MySQL5Dialect (in my case). I
have to test this. I'll give you feedback soon.

Best Regards,
Marius.

> To be complete, this same error occurs for all the Statistics panels ...
>
>
> -Original Message-
> From: BOUSQUET Jeremie
> Sent: lundi 18 février 2008 15:50
> To: 'XWiki Users'
> Subject: RE: [xwiki-users] MySQL Error "invalid use of group function" in
> Statistics application
>
>
> Hi Marius and thanks,
>
> Your SQL request returns the same error "invalid use of group function" in
> my mysql version ...
>
> BTW I could have it work by explicitly naming the sum, and using it in the
> order by :
>
> select xws_name, sum(xws_page_views) as pageviewcount from xwikistatsdoc
> where
> xws_action='view' and xws_name like '%.%' group by xws_name order by
> pageviewscount desc
>
> I believe it's a difference in behaviour between MySQL 1.4 and 1.5 ... Do
> you want me to create a JIRA issue for this ?
>
> Best Regards,
>
> Jeremie
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Marius Dumitru Florea
> Sent: lundi 18 février 2008 15:19
> To: users@xwiki.org
> Subject: Re: [xwiki-users] MySQL Error "invalid use of group function" in
> Statistics application
>
> Hi Jeremie,
>
> Sorry for the inconvenience. Your tables' description seems fine. I
> attached the description of my tables so you can check it for yourself. I
> think it all resumes to the following SQL query:
>
> select xws_name, sum(xws_page_views) from xwikistatsdoc where
> xws_action='view' and xws_name like '%.%' group by xws_name order by
> sum(xws_page_views) desc
>
> This query is very similar to the one used for retrieving the Most Viewed
> Pages. It works fine under:
>
> mysql  Ver 14.12 Distrib 5.0.45, for pc-linux-gnu (x86_64) using readline
> 5.2
>
> It would be great if you could run this query and tell me if it works in
> your case.
>
> Best Regards,
> 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] Bulletin Board cannot display topic title and first post !?

2008-02-18 Thread Guillaume Lerouge
Ok, everything's working fine.
Basically, when creating a new topic, the first time you acces the page it
offers you the possibility to enter a title and content for the topic's
first post. So you have to enter those values manually. Since a post is
supposed not to be edited afterwards, when you try to edit the page again it
gives you a message saying that you cannot do so.

So basically you need to be careful & enter a title and a content for the
first post of your new topic each time you create one :-) -> Check the
attached image to see what I mean. It's the page an user should be presented
with right after creating a new topic. You'll see it if you try to create a
new topic.

If you forget to do so, you can edit the page object to update it - as you
did - but this workaround is better left for advanced users only.

Guillaume

On 18/02/2008, Ngo Thi Hong Nga <[EMAIL PROTECTED]> wrote:
>
> The screenshot is here:
> http://farm3.static.flickr.com/2411/2274127483_df5296912f_o.jpg
> In the left is view mode and the right is edit mode.
> I check the contents of the TopicClass object in my topic page, both the
> properties title and post is empty, when I enter something in these 2
> properties, everything is displayed properly.
> I view the code in BBCode.TopicClassSheet, I don't see any code assign the
> value for this 2 properties, I don't know the Bulletin_Board.xar I
> downloaded is the same as yours.
>
<>___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Bulletin Board cannot display topic title and first post !?

2008-02-18 Thread Ngo Thi Hong Nga
The screenshot is here:
http://farm3.static.flickr.com/2411/2274127483_df5296912f_o.jpg
In the left is view mode and the right is edit mode.
I check the contents of the TopicClass object in my topic page, both the
properties title and post is empty, when I enter something in these 2
properties, everything is displayed properly.
I view the code in BBCode.TopicClassSheet, I don't see any code assign the
value for this 2 properties, I don't know the Bulletin_Board.xar I
downloaded is the same as yours.

#if ($context.action == 'inline' && $doc.isNew() == 'true')
$msg.bb_entertopictitle $doc.display('topictitle')
$msg.bb_entertopicpost $doc.display('topicpost')
#set($newtopictitle = $request.topictitle)
#if($newtopictitle)
#set($newtopictitle = $newtopictitle.replaceAll('"',"'"))

var topictitle = "${newtopictitle}";
{pre}
document.forms.inline["BBCode.TopicClass_0_topictitle"].value = topictitle;
{/pre}

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


Re: [xwiki-users] Displaying a panel in inline editing?

2008-02-18 Thread Paul Libbrecht

Le 18 févr. 08 à 16:42, Sergiu Dumitriu a écrit :

I was searching for how to activate the display of a panel when in
inline editing (actually when in inline editing of some classes or  
when
the inline edit actually contains a textarea) but I could not find  
it.

The syntax help panel should be displayed there... and I can only see
that this panel can be of type view (so displayed everywhere?) or  
edit

(so displayed in xwiki or wysiwyg editor?).

1. Make the panel of type "view"
2. In the panel code, write something like:
#if($context.action == "inline" || $showEmptyPanels)
... panel code here...
#end

3. Enable this panel. It will automatically be hidden in non-inline  
mode.


thanks, has worked.
  http://www.xwiki.org/xwiki/bin/view/FAQ/SyntaxHelpPanelInInlineMode

paul

smime.p7s
Description: S/MIME cryptographic signature
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [ANN] XEclipse 1.1 released

2008-02-18 Thread Fabio Mancinelli
The XWiki development team is pleased to announce the release of XWiki  
Eclipse 1.1.

Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download#HXWikiEclipse

XEclipse 1.1 introduces several bug fixes and improvements for a nicer  
user experience.

Changes from 1.0.1:

* XECLIPSE-70 - Invalid text in delete dialog box
* XECLIPSE-84 - Invalid version displayed when editing a page
* XECLIPSE-87 - Cannot reconnect after disconnecting
* XECLIPSE-89 - Login name with space
* XECLIPSE-23 - Double-clicking on a tree node should open the node
* XECLIPSE-73 - Add edit working set feature
* XECLIPSE-77 - In preview panel, display the current URL and allow  
typing any URL
* XECLIPSE-78 - In preview pane, add right click action to open the  
current URL in external browser
* XECLIPSE-81 - Let user decide if they want to overwrite the server  
version rather than merge it

For more information see the Release notes and instructions at:
http://code.xwiki.org/xwiki/bin/view/Extensions/XEclipseExtension

Thanks
-The XWiki dev team
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] controlling display on a per user basis

2008-02-18 Thread Vincent Massol

On Feb 18, 2008, at 4:38 PM, Sergiu Dumitriu wrote:

>
> [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
>> Guillaume Lerouge wrote:
>>> Hi,
>>>
>>> have you tried something akin to
>>>
>>> #if ($context.user == 'XWiki.YourUserName')
>>> Test
>>> #end
>>>
>>> ?
>>
>> Nope. And it perfectly works! Thanks.
>>
>> Given an user with this it is possible to control if a paragraph  
>> appears
>> or not but a new doubt arises from here. Look at this...
>>
>> #toc("2" "3" "")
>>
>> #if ($xwiki.hasAdminRights())
>> 1.1 Entry 1
>> 1.1 Entry 2
>> #end
>>
>> #if ($context.user == 'XWiki.MyUsername')
>> 1.1 Entry 3
>> #end
>>
>> Only Entry 1 and 2 are show in the document for an admin other than
>> MyUsername, but all three entries appear in the TOC.
>>
>> Is it possible to control this? Thanks again!
>>
>
> Not now. The TOC macro is implemented in a wrong way, and it has many
> issues. I have an idea about how it should work, but I don't have time
> for this right now.

BTW this will be fixed when we finish implementing the new rendering  
component.

-Vincent

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


Re: [xwiki-users] Bulletin Board cannot display topic title and first post !?

2008-02-18 Thread Guillaume Lerouge
Hi,
can you please send a screenshot of your topic page in both view & edit
object mode ?

Can you also try to edit the page with
/xwiki/bin/edit/BulletinBoard/YourTopicPage?editor=object
-> on this page check the contents of the TopicClass object -> is something
written there ? If you write something, is it then displayed on the page ?

Also, did you have to log in at some point in the process ? It might be that
an object wasn't properly added at some point in the process. Can you try
creating another topic (making sure you're logged in first) and see what
happens ?

I've checked locally and everything works fine... You need to make sure
nothing specific happens between the moment you click on "create this topic"
and the moment you see the topic page.

Guillaume

PS: I've just finished writing the application and this is its first
iteration, thanks for your patience & feedback ;-)

On 18/02/2008, Ngo Thi Hong Nga <[EMAIL PROTECTED]> wrote:
>
> I use Bulletin Board application with XE 1.1.2. I import the xar file, I
> add a new topic, enter title and first post, then make some reply. Every
> thing is displayed properly (author, post reply,..), except for the topic
> title and topic first post always be the empty string "", although they are
> not empty !?
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>


-- 
http://wikibc.blogspot.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] controlling display on a per user basis

2008-02-18 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:
>
> Not now. The TOC macro is implemented in a wrong way, and it has many 
> issues. I have an idea about how it should work, but I don't have time 
> for this right now.
>   

Thanks both, Vincent and Sergiu. I'll take this into account.

My situation is even worst than yours, Sergiu: no time, no idea! Let's 
see if I manage to improve any of these items... :-(

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Displaying a panel in inline editing?

2008-02-18 Thread Sergiu Dumitriu
Paul Libbrecht wrote:
> 
> Hello,
> 
> I was searching for how to activate the display of a panel when in 
> inline editing (actually when in inline editing of some classes or when 
> the inline edit actually contains a textarea) but I could not find it.
> 
> The syntax help panel should be displayed there... and I can only see 
> that this panel can be of type view (so displayed everywhere?) or edit 
> (so displayed in xwiki or wysiwyg editor?).
> 
> thanks in advance
> 
> paul
> 

1. Make the panel of type "view"
2. In the panel code, write something like:

#if($context.action == "inline" || $showEmptyPanels)
... panel code here...
#end

3. Enable this panel. It will automatically be hidden in non-inline mode.
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] controlling display on a per user basis

2008-02-18 Thread Sergiu Dumitriu

[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
> Guillaume Lerouge wrote:
>> Hi,
>>
>> have you tried something akin to
>>
>> #if ($context.user == 'XWiki.YourUserName')
>> Test
>> #end
>>
>> ?
> 
> Nope. And it perfectly works! Thanks.
> 
> Given an user with this it is possible to control if a paragraph appears 
> or not but a new doubt arises from here. Look at this...
> 
> #toc("2" "3" "")
> 
> #if ($xwiki.hasAdminRights())
> 1.1 Entry 1
> 1.1 Entry 2
> #end
> 
> #if ($context.user == 'XWiki.MyUsername')
> 1.1 Entry 3
> #end
> 
> Only Entry 1 and 2 are show in the document for an admin other than 
> MyUsername, but all three entries appear in the TOC.
> 
> Is it possible to control this? Thanks again!
> 

Not now. The TOC macro is implemented in a wrong way, and it has many 
issues. I have an idea about how it should work, but I don't have time 
for this right now.

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


Re: [xwiki-users] controlling display on a per user basis

2008-02-18 Thread Vincent Massol

On Feb 18, 2008, at 4:27 PM, [Ricardo Rodriguez] Your EPEC Network ICT  
Team wrote:

> Guillaume Lerouge wrote:
>> Hi,
>>
>> have you tried something akin to
>>
>> #if ($context.user == 'XWiki.YourUserName')
>> Test
>> #end
>>
>> ?
>
> Nope. And it perfectly works! Thanks.
>
> Given an user with this it is possible to control if a paragraph  
> appears
> or not but a new doubt arises from here. Look at this...
>
> #toc("2" "3" "")
>
> #if ($xwiki.hasAdminRights())
> 1.1 Entry 1
> 1.1 Entry 2
> #end
>
> #if ($context.user == 'XWiki.MyUsername')
> 1.1 Entry 3
> #end
>
> Only Entry 1 and 2 are show in the document for an admin other than
> MyUsername, but all three entries appear in the TOC.
>
> Is it possible to control this? Thanks again!

This is a limitation of the TOC macro. It looks for 1.* text elements  
in the raw document content. Thus there's no solution for this right  
now apart from rewriting the TOC macro.

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


Re: [xwiki-users] controlling display on a per user basis

2008-02-18 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Guillaume Lerouge wrote:
> Hi,
>
> have you tried something akin to
>
> #if ($context.user == 'XWiki.YourUserName')
> Test
> #end
>
> ?

Nope. And it perfectly works! Thanks.

Given an user with this it is possible to control if a paragraph appears 
or not but a new doubt arises from here. Look at this...

#toc("2" "3" "")

#if ($xwiki.hasAdminRights())
1.1 Entry 1
1.1 Entry 2
#end

#if ($context.user == 'XWiki.MyUsername')
1.1 Entry 3
#end

Only Entry 1 and 2 are show in the document for an admin other than 
MyUsername, but all three entries appear in the TOC.

Is it possible to control this? Thanks again!

Best regards,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] macro content and escaping

2008-02-18 Thread Paul Libbrecht


Hello all,

what is the general strategy for the syntax of the body of a macro?  
of the parameters of a macro?


We see at least that \ldots is passed as ldots to the macro when  
inside a body... I suppose this is an effect of the encoders  
somewhere and I know how to work-around this but I don't think it's a  
good idea... is there a way to say "don't escape content" or "don't  
process content" ?


thanks in advance

paul

smime.p7s
Description: S/MIME cryptographic signature
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Bulletin Board cannot display topic title and first post !?

2008-02-18 Thread Ngo Thi Hong Nga
I use Bulletin Board application with XE 1.1.2. I import the xar file, I add
a new topic, enter title and first post, then make some reply. Every thing
is displayed properly (author, post reply,..), except for the topic title
and topic first post always be the empty string "", although they are not
empty !?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] MySQL Error "invalid use of group function" in Statistics application

2008-02-18 Thread BOUSQUET Jeremie
To be complete, this same error occurs for all the Statistics panels ...


-Original Message-
From: BOUSQUET Jeremie 
Sent: lundi 18 février 2008 15:50
To: 'XWiki Users'
Subject: RE: [xwiki-users] MySQL Error "invalid use of group function" in 
Statistics application


Hi Marius and thanks,

Your SQL request returns the same error "invalid use of group function" in my 
mysql version ...

BTW I could have it work by explicitly naming the sum, and using it in the 
order by :

select xws_name, sum(xws_page_views) as pageviewcount from xwikistatsdoc where
xws_action='view' and xws_name like '%.%' group by xws_name order by
pageviewscount desc
 
I believe it's a difference in behaviour between MySQL 1.4 and 1.5 ... Do you 
want me to create a JIRA issue for this ?

Best Regards,

Jeremie
 

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marius Dumitru 
Florea
Sent: lundi 18 février 2008 15:19
To: users@xwiki.org
Subject: Re: [xwiki-users] MySQL Error "invalid use of group function" in 
Statistics application

Hi Jeremie,

Sorry for the inconvenience. Your tables' description seems fine. I
attached the description of my tables so you can check it for yourself. I
think it all resumes to the following SQL query:

select xws_name, sum(xws_page_views) from xwikistatsdoc where
xws_action='view' and xws_name like '%.%' group by xws_name order by
sum(xws_page_views) desc

This query is very similar to the one used for retrieving the Most Viewed
Pages. It works fine under:

mysql  Ver 14.12 Distrib 5.0.45, for pc-linux-gnu (x86_64) using readline 5.2

It would be great if you could run this query and tell me if it works in
your case.

Best Regards,
Marius.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] MySQL Error "invalid use of group function" in Statistics application

2008-02-18 Thread BOUSQUET Jeremie

Hi Marius and thanks,

Your SQL request returns the same error "invalid use of group function" in my 
mysql version ...

BTW I could have it work by explicitly naming the sum, and using it in the 
order by :

select xws_name, sum(xws_page_views) as pageviewcount from xwikistatsdoc where
xws_action='view' and xws_name like '%.%' group by xws_name order by
pageviewscount desc
 
I believe it's a difference in behaviour between MySQL 1.4 and 1.5 ... Do you 
want me to create a JIRA issue for this ?

Best Regards,

Jeremie
 

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marius Dumitru 
Florea
Sent: lundi 18 février 2008 15:19
To: users@xwiki.org
Subject: Re: [xwiki-users] MySQL Error "invalid use of group function" in 
Statistics application

Hi Jeremie,

Sorry for the inconvenience. Your tables' description seems fine. I
attached the description of my tables so you can check it for yourself. I
think it all resumes to the following SQL query:

select xws_name, sum(xws_page_views) from xwikistatsdoc where
xws_action='view' and xws_name like '%.%' group by xws_name order by
sum(xws_page_views) desc

This query is very similar to the one used for retrieving the Most Viewed
Pages. It works fine under:

mysql  Ver 14.12 Distrib 5.0.45, for pc-linux-gnu (x86_64) using readline 5.2

It would be great if you could run this query and tell me if it works in
your case.

Best Regards,
Marius.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] MySQL Error "invalid use of group function" in Statistics application

2008-02-18 Thread Marius Dumitru Florea
Hi Jeremie,

Sorry for the inconvenience. Your tables' description seems fine. I
attached the description of my tables so you can check it for yourself. I
think it all resumes to the following SQL query:

select xws_name, sum(xws_page_views) from xwikistatsdoc where
xws_action='view' and xws_name like '%.%' group by xws_name order by
sum(xws_page_views) desc

This query is very similar to the one used for retrieving the Most Viewed
Pages. It works fine under:

mysql  Ver 14.12 Distrib 5.0.45, for pc-linux-gnu (x86_64) using readline 5.2

It would be great if you could run this query and tell me if it works in
your case.

Best Regards,
Marius.mysql> desc xwikistatsdoc;
+-+--+--+-+-+---+
| Field   | Type | Null | Key | Default | Extra |
+-+--+--+-+-+---+
| XWS_ID  | int(11)  | NO   | PRI | |   | 
| XWS_NUMBER  | int(11)  | YES  | | NULL|   | 
| XWS_NAME| varchar(255) | NO   | | |   | 
| XWS_CLASSNAME   | varchar(255) | NO   | | |   | 
| XWS_ACTION  | varchar(255) | NO   | | |   | 
| XWS_PAGE_VIEWS  | int(11)  | YES  | | NULL|   | 
| XWS_UNIQUE_VISITORS | int(11)  | YES  | | NULL|   | 
| XWS_PERIOD  | int(11)  | YES  | | NULL|   | 
| XWS_VISITS  | int(11)  | YES  | | NULL|   | 
+-+--+--+-+-+---+

mysql> desc xwikistatsreferer;
++--+--+-+-+---+
| Field  | Type | Null | Key | Default | Extra |
++--+--+-+-+---+
| XWR_ID | int(11)  | NO   | PRI | |   | 
| XWR_NUMBER | int(11)  | YES  | | NULL|   | 
| XWR_NAME   | varchar(255) | NO   | | |   | 
| XWR_CLASSNAME  | varchar(255) | NO   | | |   | 
| XWR_REFERER| varchar(255) | NO   | | |   | 
| XWR_PAGE_VIEWS | int(11)  | YES  | | NULL|   | 
| XWR_PERIOD | int(11)  | YES  | | NULL|   | 
++--+--+-+-+---+

mysql> desc xwikistatsvisit;
++--+--+-+-+---+
| Field  | Type | Null | Key | Default | Extra |
++--+--+-+-+---+
| XWV_ID | int(11)  | NO   | PRI | |   | 
| XWV_NUMBER | int(11)  | YES  | | NULL|   | 
| XWV_NAME   | varchar(255) | NO   | | |   | 
| XWV_CLASSNAME  | varchar(255) | NO   | | |   | 
| XWV_IP | varchar(32)  | NO   | | |   | 
| XWV_USER_AGENT | varchar(255) | NO   | | |   | 
| XWV_COOKIE | varchar(255) | NO   | | |   | 
| XWV_UNIQUE_ID  | varchar(255) | NO   | | |   | 
| XWV_PAGE_VIEWS | int(11)  | YES  | | NULL|   | 
| XWV_PAGE_SAVES | int(11)  | YES  | | NULL|   | 
| XWV_DOWNLOADS  | int(11)  | YES  | | NULL|   | 
| XWV_START_DATE | datetime | YES  | | NULL|   | 
| XWV_END_DATE   | datetime | YES  | | NULL|   | 
++--+--+-+-+---+
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] controlling display on a per user basis

2008-02-18 Thread Guillaume Lerouge
Hi,
have you tried something akin to

#if ($context.user == 'XWiki.YourUserName')
Test
#end

?

Guillaume

On 18/02/2008, [Ricardo Rodriguez] <[EMAIL PROTECTED]>
wrote:
>
>
> Hi all,
>
> I need to control what sections of a document are shown on a per user
> basis.
>
> I know how to do that per group, but I am failing when I try to evaluate
> $xwiki.getUser() output.
>
> For instance, this code write TEST whoever the logged user is:
>
> #if ($xwiki.getUser().equals("[EMAIL PROTECTED]"))
> TEST
> #end
>
> Could you please, help me with this issue? Thanks!
>
> Ricardo
> --
> View this message in context:
> http://www.nabble.com/controlling-display-on-a-per-user-basis-tp15545530p15545530.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
>



-- 
http://wikibc.blogspot.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] controlling display on a per user basis

2008-02-18 Thread [Ricardo Rodriguez]

Hi all,

I need to control what sections of a document are shown on a per user basis.

I know how to do that per group, but I am failing when I try to evaluate 
$xwiki.getUser() output.

For instance, this code write TEST whoever the logged user is:

#if ($xwiki.getUser().equals("[EMAIL PROTECTED]"))
TEST
#end

Could you please, help me with this issue? Thanks!

Ricardo
-- 
View this message in context: 
http://www.nabble.com/controlling-display-on-a-per-user-basis-tp15545530p15545530.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] Displaying a panel in inline editing?

2008-02-18 Thread Paul Libbrecht


Hello,

I was searching for how to activate the display of a panel when in  
inline editing (actually when in inline editing of some classes or  
when the inline edit actually contains a textarea) but I could not  
find it.


The syntax help panel should be displayed there... and I can only see  
that this panel can be of type view (so displayed everywhere?) or  
edit (so displayed in xwiki or wysiwyg editor?).


thanks in advance

paul

smime.p7s
Description: S/MIME cryptographic signature
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] MySQL Error "invalid use of group function" inStatistics application

2008-02-18 Thread BOUSQUET Jeremie
Hello,

 

As a complement here are the tables description (after migration)

mysql> desc xwikistatsdoc;

+-+--+--+-+-+---+

| Field   | Type | Null | Key | Default | Extra |

+-+--+--+-+-+---+

| XWS_ID  | int(11)  |  | PRI | 0   |   |

| XWS_NUMBER  | int(11)  | YES  | | NULL|   |

| XWS_NAME| varchar(255) |  | | |   |

| XWS_CLASSNAME   | varchar(255) |  | | |   |

| XWS_ACTION  | varchar(255) |  | | |   |

| XWS_PAGE_VIEWS  | int(11)  | YES  | | NULL|   |

| XWS_UNIQUE_VISITORS | int(11)  | YES  | | NULL|   |

| XWS_PERIOD  | int(11)  | YES  | | NULL|   |

| XWS_VISITS  | int(11)  | YES  | | NULL|   |

+-+--+--+-+-+---+ 

 

mysql> desc xwikistatsreferer;

++--+--+-+-+---+

| Field  | Type | Null | Key | Default | Extra |

++--+--+-+-+---+

| XWR_ID | int(11)  |  | PRI | 0   |   |

| XWR_NUMBER | int(11)  | YES  | | NULL|   |

| XWR_NAME   | varchar(255) |  | | |   |

| XWR_CLASSNAME  | varchar(255) |  | | |   |

| XWR_REFERER| varchar(255) |  | | |   |

| XWR_PAGE_VIEWS | int(11)  | YES  | | NULL|   |

| XWR_PERIOD | int(11)  | YES  | | NULL|   |

++--+--+-+-+---+

 

mysql> desc xwikistatsvisit;

++--+--+-+-+---+

| Field  | Type | Null | Key | Default | Extra |

++--+--+-+-+---+

| XWV_ID | int(11)  |  | PRI | 0   |   |

| XWV_NUMBER | int(11)  | YES  | | NULL|   |

| XWV_NAME   | varchar(255) |  | | |   |

| XWV_CLASSNAME  | varchar(255) |  | | |   |

| XWV_IP | varchar(32)  |  | | |   |

| XWV_USER_AGENT | varchar(255) |  | | |   |

| XWV_COOKIE | varchar(255) |  | | |   |

| XWV_UNIQUE_ID  | varchar(255) |  | | |   |

| XWV_PAGE_VIEWS | int(11)  | YES  | | NULL|   |

| XWV_PAGE_SAVES | int(11)  | YES  | | NULL|   |

| XWV_DOWNLOADS  | int(11)  | YES  | | NULL|   |

| XWV_START_DATE | datetime | YES  | | NULL|   |

| XWV_END_DATE   | datetime | YES  | | NULL|   |

++--+--+-+-+---+

 

(hope the tables will show correctly ...)

 

Thanks,

Jeremie

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of BOUSQUET Jeremie
Sent: lundi 18 février 2008 10:26
To: users@xwiki.org
Subject: [xwiki-users] MySQL Error "invalid use of group function" inStatistics 
application

 

Hello,

 

I just migrated from XWiki 1.1 to 1.2.2. Migration was ok and everything works 
fine, except the Statistics application.

 

It shows unrecorded stats but there are some. There seems to be an error in an 
SQL request (miss group by ?), either database was not correctly migrated, or 
MySQL version is not compatible ? Of course, stats are activated in xwiki.cfg.

 

Here's the error  log when trying to display the most viewed pages :

 

 [.../Stats/MostViewedPages] [http-80-Processor18] WARN  
util.JDBCExceptionReporter  - SQL Error: , SQLState: HY000

 [.../Stats/MostViewedPages] [http-80-Processor18] ERROR 
util.JDBCExceptionReporter  - Invalid use of group function

(2 times)

 

I use :

mysql  Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i386) using readline 4.3

java version "1.5.0_11"

 

Thanks for help,

 

Jeremie

 

 

 

 

 

 

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


[xwiki-users] MySQL Error "invalid use of group function" in Statistics application

2008-02-18 Thread BOUSQUET Jeremie
Hello,

 

I just migrated from XWiki 1.1 to 1.2.2. Migration was ok and everything
works fine, except the Statistics application.

 

It shows unrecorded stats but there are some. There seems to be an error
in an SQL request (miss group by ?), either database was not correctly
migrated, or MySQL version is not compatible ? Of course, stats are
activated in xwiki.cfg.

 

Here's the error  log when trying to display the most viewed pages :

 

 [.../Stats/MostViewedPages] [http-80-Processor18] WARN
util.JDBCExceptionReporter  - SQL Error: , SQLState: HY000

 [.../Stats/MostViewedPages] [http-80-Processor18] ERROR
util.JDBCExceptionReporter  - Invalid use of group function

(2 times)

 

I use :

mysql  Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i386) using
readline 4.3

java version "1.5.0_11"

 

Thanks for help,

 

Jeremie

 

 

 

 

 

 

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


[xwiki-users] ParseErrorException

2008-02-18 Thread David Delbecq
Hello,

we get this error in xwiki top menu after importing from 0.9. Can someone 
explain me how to solve this? thanks!




org.apache.velocity.exception.ParseErrorException: Encountered
">Blog<.a> | <.span> Knowledge
Base |  \r\n-->\r\n ...

at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:212)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:95)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.interpret(XWikiVelocityRenderer.java:60)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:247)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.interpretText(DefaultXWikiRenderingEngine.java:150)
at com.xpn.xwiki.XWiki.parseContent(XWiki.java:1313)
at com.xpn.xwiki.api.XWiki.parseContent(XWiki.java:554)
at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1354)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607)
at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1354)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:105)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:158)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:673)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:362)
at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:283)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at
org.apache.coyote.http11.Http11Prot

Re: [xwiki-users] Severe problem, can't login as admin, neither as superadmin

2008-02-18 Thread Rustedt, Florian
Thanks ;)

Using solution 1 now ;)

Kind regards, Florian 

> -Ursprüngliche Nachricht-
> Von: Sergiu Dumitriu [mailto:[EMAIL PROTECTED] 
> Gesendet: Sonntag, 17. Februar 2008 22:29
> An: XWiki Users
> Betreff: Re: [xwiki-users] Severe problem, can't login as 
> admin, neither as superadmin
> 
> 3 options:
> 
> 1. Use tomcat 5.5.25 or 6.0.14
> 2. Compile xwiki-core and put the compiled 
> com.xpn.xwiki.user.impl.xwiki.MyPersistentManager.class into 
> /WEB-INF/classes/com/xpn/xwiki/user/impl/xwiki/
> 3. Use the upcoming 1.3M2 release
> 
> Antonio Goncalves wrote:
> > Hi Sergiu,
> >  
> > I have exactly the same problem with Tomcat 5.5.26 (I'm using XWiki 
> > 1.2.2). Should I wait for a bug fix from XWiki or should I use a 
> > previous version of Tomcat (if yes, which one) ?
> >  
> > Thanks,
> >  
> > Antonio
> > 
> >  
> > 2008/2/15, Sergiu Dumitriu <[EMAIL PROTECTED] 
> >:
> > 
> > I'm looking into the problem now.
> > 
> > Probably in
> > 
> com.xpn.xwiki.user.impl.xwiki.MyPersistentLoginManager#setupCookie
> > (you have to recompile the code and update that class 
> into the XWiki
> > installation)
> > 
> > Too bad tomcat doesn't have an option to configure this.
> > 
> > Rustedt, Florian wrote:
> >  > Hi,
> >  >
> >  > Perhaps a stupid question but... WHERE do i insert
> > "cookie.setVersion(1);"?
> >  >
> >  > Florian
> >  >
> >  >> -Ursprüngliche Nachricht-
> >  >> Von: Sergiu Dumitriu [mailto:[EMAIL PROTECTED]
> > ]
> >  >> Gesendet: Freitag, 15. Februar 2008 16:51
> >  >> An: XWiki Users
> >  >> Betreff: Re: [xwiki-users] Severe problem, can't login as
> >  >> admin, neither as superadmin
> >  >>
> >  >> See http://jira.xwiki.org/jira/browse/XWIKI-2119
> >  >>
> 
> 
> --
> 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