[xwiki-users] Invalid URL after a $xwiki.getURL() + deconnection

2009-02-24 Thread Jean Couteau
Hi list,

I have a really weird bug which is quite annoying and I don't find any 
solution to it :

I want to edit a page in inline mode. I have a form to select the page 
to edit with a button. I use the $xwiki.getURL() method to get the right 
URL. When i select my page and click on the edit button, I have an 
invalid URL error and i am deconnected. What is weird is that if I 
reconnect and actualize the page I can access it. The second weird thing 
is that I use exactly the same method to edit other pages form other 
forms in the same first page and I do not have the problem. I am quite 
lost with this issue. I tried to recreate the URL as a string but I have 
the same problem.

I am thinking maybe this is a known bug in xwiki. If not maybe i am 
missing something somewhere. Please open my eyes on the obvious i am 
missing in my code :

FORM method=POST action=
input type=hidden name=backlog value=${backlogId} /
input type=hidden name=webname value=Project /
input type=hidden name=name value=backlog /
input type=hidden name=domain value=${domainId} /
input type=hidden name=cut value=${cut} /
Select topic : SELECT name=topic
  #foreach ($item in $topiclist)
#set 
($topic=$xwiki.getDocument(${item}).getObject(XWiki.TopicClass))
OPTION VALUE=${topic.id}$topic.get(name)/OPTION
  #end
/SELECT
input type=button value=Select 
onclick='{this.form.action=../../view/ + this.form.webname.value + / 
+ this.form.name.value + ?backlog= + this.form.backlog.value + 
domain= + this.form.domain.value + topic= + 
this.form.topic.value.substring(this.form.topic.value.lastIndexOf(${separator})+1)
 
+ cut= + this.form.cut.value; this.form.submit(); }'/
input type=button value=Edit 
onclick='{url=Project.+this.form.topic.value; 
this.form.action=${xwiki.getURL(url, inline)}; this.form.submit(); }' /
  /FORM

Note that the problem is only with the Edit button, the other is working 
fine.

Thanks in advance for your help.

Jean.

-- 

Jean Couteau
Code Lutin - http://www.codelutin.com
44 Bd des Pas Enchantés - 44230 St-Sébastien/Loire
Tél : 02 40 50 29 28 - Fax : 09 59 92 29 28 

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


[xwiki-users] Compatibility issue

2009-02-24 Thread Hernández Cuchí , Francisco Ricardo
Hello,

 

I have been searching for a compatibility matrix of Xwiki, and I hadn't found 
if it is compatible with theses infrastructure:

 

DB:  Oracle 10g

AppServer:Oracle Weblogic 9.2

 

Does anybody know if they are compatible?

 

Thanks a lot,

 

Francisco

**
IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y 
está dirigido únicamente 
para el destinatario/s.
Si Ud recibe este correo por error, por favor póngase en contacto con su 
administrador de correo o con el 
emisor immediatamente y no difunda su contenido a nadie ni haga copias.
*** Este correo ha sido escaneado de virus y contenido malicioso ***
**
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] security concern: XWikiGuest rolling back

2009-02-24 Thread Yishay Mor
 I don't think this is correct since you're not saving the  
 modifications... They'll be in the cache when but they go out of the  
 cache you'll have lost your changes.
 
 See http://code.xwiki.org/xwiki/bin/view/Snippets/SettingRightsSnippet
 
 -Vincent

Thanks Vincent. I thought I need to save, but then when I do, I get -

Exception while saving document Patterns.ObjectsToTalkWith
Wrapped Exception: Row was updated or deleted by another transaction (or 
unsaved-value mapping was incorrect): xpn.xwiki.objects.String Property#?xml 
version=1.0 encoding=UTF-8?


dead-field/dead-field

See:
http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/scripts/fixrights

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


Re: [xwiki-users] Compatibility issue

2009-02-24 Thread Vincent Massol
Hi there,

On Feb 24, 2009, at 11:23 AM, Hernández Cuchí, Francisco Ricardo wrote:

 Hello,



 I have been searching for a compatibility matrix of Xwiki, and I  
 hadn't found if it is compatible with theses infrastructure:



 DB:  Oracle 10g

See
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HInstallandconfigureaRelationalDatabase



 AppServer:Oracle Weblogic 9.2

See
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HInstallandconfigureaServletContainer

Would be great to make a Prerequisite page listing all prerequisites  
for all external dependencies (OO, DB, Container, etc).

If someone wants to help this is a good area to do so :)

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


[xwiki-users] Problem with a 1.8 RC1 install

2009-02-24 Thread Thomas Eveilleau
Hello,

Yesterday we tried to install a 1.8 RC1 on a serv to test some new 
features but we had some blocker issues : no users listed in the admin 
page, no groups listed in the admin page, not any document listed in the 
WhatsNew etc.

We first thought that it was a JS issue, but a :

#set ($sql = where 1=1)
#set ($list = $xwiki.searchDocuments($sql))
{pre}
$list
{/pre}

returned an empty list.

Here is the description of the install :
- We used a Debian Lenny 5.0 template (with Tomcat 6.0.18  Java 
1.6.0_12 pre-packaged)
- We downloaded the .war file on 
http://maven.xwiki.org/releases/com/xpn/xwiki/products/xwiki-enterprise-web/1.8-rc-1/
- We installed Mysql with the debian package (5.0.51a-24 version)
- We installed  configured the XE in UTF-8
- We used the standard hibernate conf (just added UTF-8 conf)
- We kept the standard xwiki.cfg (+UTF8 elements)
- We imported the xwiki-enterprise-wiki-1.8-rc-1 xar  (found on XWiki.org)
- We tested with different mysql-java-connector (current version : 5.0.7)

The install is available here (if you want to check it)
http://testapplis.xwiki.com/
The Whats New page here :
http://testapplis.xwiki.com/xwiki/bin/view/Main/WhatsNew

Have you got any idea of the problem ?

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


Re: [xwiki-users] Invalid URL after a $xwiki.getURL() + deconnection

2009-02-24 Thread Jean Couteau
Vincent Massol a écrit :
 Hi Jean,

 I don't have the answer to your question but seen the questions you've  
 been asking I can deduce that you're doing some advanced usage of  
 XWiki :)
   
 That's great. I'm curious to know what you're using it for.
   
I don't know if advanced is the word, but indeed I use if for an 
application aimed to manage backlog for a scrum team.
It is used for two weeks now (in a  not complete and bugged version), 
and when I will have removed the annoying bugs, I think I will make it 
available on xwiki.org.

For now, it features backlog creation (with arborescence on the user 
stories), backlog planning, effort vote (for poker planning) and 
sprint/release assignment.

I plan to make it manage the dashboard, the task assignations, an 
automatic velocity and burndown chart calculation, an automatic roadmap 
building, and maybe other ideas that will come with the time ;).

Anyway this bug is the last that makes the application unstable. After 
solving it, I think I'll be able to make the application available for 
other users.
 Thanks
 -Vincent

 On Feb 24, 2009, at 10:48 AM, Jean Couteau wrote:

   
 Hi list,

 I have a really weird bug which is quite annoying and I don't find any
 solution to it :

 I want to edit a page in inline mode. I have a form to select the page
 to edit with a button. I use the $xwiki.getURL() method to get the  
 right
 URL. When i select my page and click on the edit button, I have an
 invalid URL error and i am deconnected. What is weird is that if I
 reconnect and actualize the page I can access it. The second weird  
 thing
 is that I use exactly the same method to edit other pages form other
 forms in the same first page and I do not have the problem. I am quite
 lost with this issue. I tried to recreate the URL as a string but I  
 have
 the same problem.

 I am thinking maybe this is a known bug in xwiki. If not maybe i am
 missing something somewhere. Please open my eyes on the obvious i am
 missing in my code :

 FORM method=POST action=
input type=hidden name=backlog value=${backlogId} /
input type=hidden name=webname value=Project /
input type=hidden name=name value=backlog /
input type=hidden name=domain value=${domainId} /
input type=hidden name=cut value=${cut} /
Select topic : SELECT name=topic
  #foreach ($item in $topiclist)
#set
 ($topic=$xwiki.getDocument(${item}).getObject(XWiki.TopicClass))
OPTION VALUE=${topic.id}$topic.get(name)/OPTION
  #end
/SELECT
input type=button value=Select
 onclick='{this.form.action=../../view/ + this.form.webname.value +  
 /
 + this.form.name.value + ?backlog= + this.form.backlog.value +
 domain= + this.form.domain.value + topic= +
 this.form.topic.value.substring(this.form.topic.value.lastIndexOf($ 
 {separator})+1)
 + cut= + this.form.cut.value; this.form.submit(); }'/
input type=button value=Edit
 onclick='{url=Project.+this.form.topic.value;
 this.form.action=${xwiki.getURL(url, inline)};  
 this.form.submit(); }' /
  /FORM

 Note that the problem is only with the Edit button, the other is  
 working
 fine.

 Thanks in advance for your help.

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

   


-- 

Jean Couteau
Code Lutin - http://www.codelutin.com
44 Bd des Pas Enchantés - 44230 St-Sébastien/Loire
Tél : 02 40 50 29 28 - Fax : 09 59 92 29 28 

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


Re: [xwiki-users] Problem with a 1.8 RC1 install

2009-02-24 Thread Niels Mayer
Is this a virtual hosted setup?

It's probably getting all it's users/skin etc from the main wiki-db, and
therefore the empty vhost is not listed in the Dashboard, etc. On top of
this, there's the additional surprise of the global users from the main
Wiki shadowing the local users of the local wiki, so perhaps you were able
to login using your global account?  (FYI, I don't think this is a good
feature of virtual-wikis and should be optional, and perhaps off by
default to prevent surprises).

In the case of http://testapplis.xwiki.com/xwiki/bin/view/Main/Dashboard
It shows the following spaces created -- Spaces: Blog Sandbox Main -- but no
WebHome's for them, therefore no documents?

When I registered, it created a document that shows up in AllDocs
http://testapplis.xwiki.com/xwiki/bin/view/XWiki/NielsMayer
And when I created a document, it showed up in
http://testapplis.xwiki.com/xwiki/bin/view/Main/SpaceIndex?space=Sandbox
Therefore I bet it's getting the Sandbox.Webhome from the main wiki.

If there was a pre-existing wiki behind this setup, perhaps you need to note
the installation document which mentions explicitly that you must name any
virtualwiki databases:

div class=warningmessagespan class=messagetypeWarning: /spanIf you
 're running in a multiwiki setup you'll also need to define the property
 ttxwiki.store.migration.databases=all/tt to your ttxwiki.cfg/tt file
 or explicitly name all databases to be migrated as in
 ttxwiki.store.migration.databases=db1,db2,.../tt./divp/You may also
 want to span class=wikilinka
 href=/xwiki/bin/view/Main/Downloadimport the default wiki XAR/a/span
 in order to benefit from improvements listed above.p/div
 class=warningmessagespan class=messagetypeWarning: /spanAlways make
 sure you compare your ttxwiki.cfg/tt file with the newest version  since
 some configuration parameters were added. Of note, you should add tt
 xwiki.store.migration=1/tt so that XWiki will attempt to automatically mig
 rate your current database to the new schema. Make sure you backup your Data
 base before doing anything./divp/


Niels
http://nielsmayer.com



On Tue, Feb 24, 2009 at 4:25 AM, Thomas Eveilleau tho...@xwiki.com wrote:

 Hello,

 Yesterday we tried to install a 1.8 RC1 on a serv to test some new
 features but we had some blocker issues : no users listed in the admin
 page, no groups listed in the admin page, not any document listed in the
 WhatsNew etc.

 We first thought that it was a JS issue, but a :

 #set ($sql = where 1=1)
 #set ($list = $xwiki.searchDocuments($sql))
 {pre}
 $list
 {/pre}

 returned an empty list.

 Here is the description of the install :
 - We used a Debian Lenny 5.0 template (with Tomcat 6.0.18  Java
 1.6.0_12 pre-packaged)
 - We downloaded the .war file on

 http://maven.xwiki.org/releases/com/xpn/xwiki/products/xwiki-enterprise-web/1.8-rc-1/
 - We installed Mysql with the debian package (5.0.51a-24 version)
 - We installed  configured the XE in UTF-8
 - We used the standard hibernate conf (just added UTF-8 conf)
 - We kept the standard xwiki.cfg (+UTF8 elements)
 - We imported the xwiki-enterprise-wiki-1.8-rc-1 xar  (found on XWiki.org)
 - We tested with different mysql-java-connector (current version : 5.0.7)

 The install is available here (if you want to check it)
 http://testapplis.xwiki.com/
 The Whats New page here :
 http://testapplis.xwiki.com/xwiki/bin/view/Main/WhatsNew

 Have you got any idea of the problem ?

 Thanks,
 Thomas
 ___
 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 a 1.8 RC1 install

2009-02-24 Thread Thomas Eveilleau
Hello Niels,

Thanks for the time you spent on this tests !

No the wiki is not on a virtual host and it was created yesterday from 
nothing, it's not an upgrade.
I was logged with a local account (the Admin one), there's no global 
accounts since it's just an isolated XE.

I saw your account  your pages in the SpaceIndex  in the Recent 
Changes ! That's something new because we tried to create things 
yesterday and nothing was listed.

Thomas



Niels Mayer a écrit :
 Is this a virtual hosted setup?

 It's probably getting all it's users/skin etc from the main wiki-db, and
 therefore the empty vhost is not listed in the Dashboard, etc. On top 
 of this, there's the additional surprise of the global users from 
 the main Wiki shadowing the local users of the local wiki, so 
 perhaps you were able to login using your global account?  (FYI, I 
 don't think this is a good feature of virtual-wikis and should be 
 optional, and perhaps off by default to prevent surprises).

 In the case of http://testapplis.xwiki.com/xwiki/bin/view/Main/Dashboard
 It shows the following spaces created -- Spaces: Blog Sandbox Main -- 
 but no WebHome's for them, therefore no documents?

 When I registered, it created a document that shows up in AllDocs
 http://testapplis.xwiki.com/xwiki/bin/view/XWiki/NielsMayer
 And when I created a document, it showed up in
 http://testapplis.xwiki.com/xwiki/bin/view/Main/SpaceIndex?space=Sandbox
 Therefore I bet it's getting the Sandbox.Webhome from the main wiki.

 If there was a pre-existing wiki behind this setup, perhaps you need 
 to note the installation document which mentions explicitly that you 
 must name any virtualwiki databases:

 div class=warningmessagespan class=messagetypeWarning:
 /spanIf you 're running in a multiwiki setup you'll also need to
 define the property ttxwiki.store.migration.databases=all/tt
 to your ttxwiki.cfg/tt file or explicitly name all databases
 to be migrated as in
 ttxwiki.store.migration.databases=db1,db2,.../tt./divp/You
 may also want to span class=wikilinka
 href=/xwiki/bin/view/Main/Downloadimport the default wiki
 XAR/a/span in order to benefit from improvements listed
 above.p/div class=warningmessagespan
 class=messagetypeWarning: /spanAlways make sure you compare
 your ttxwiki.cfg/tt file with the newest version  since some
 configuration parameters were added. Of note, you should add tt
 xwiki.store.migration=1/tt so that XWiki will attempt to
 automatically mig rate your current database to the new schema.
 Make sure you backup your Data base before doing anything./divp/


 Niels
 http://nielsmayer.com



 On Tue, Feb 24, 2009 at 4:25 AM, Thomas Eveilleau tho...@xwiki.com 
 mailto:tho...@xwiki.com wrote:

 Hello,

 Yesterday we tried to install a 1.8 RC1 on a serv to test some new
 features but we had some blocker issues : no users listed in the admin
 page, no groups listed in the admin page, not any document listed
 in the
 WhatsNew etc.

 We first thought that it was a JS issue, but a :

 #set ($sql = where 1=1)
 #set ($list = $xwiki.searchDocuments($sql))
 {pre}
 $list
 {/pre}

 returned an empty list.

 Here is the description of the install :
 - We used a Debian Lenny 5.0 template (with Tomcat 6.0.18  Java
 1.6.0_12 pre-packaged)
 - We downloaded the .war file on
 
 http://maven.xwiki.org/releases/com/xpn/xwiki/products/xwiki-enterprise-web/1.8-rc-1/
 - We installed Mysql with the debian package (5.0.51a-24 version)
 - We installed  configured the XE in UTF-8
 - We used the standard hibernate conf (just added UTF-8 conf)
 - We kept the standard xwiki.cfg (+UTF8 elements)
 - We imported the xwiki-enterprise-wiki-1.8-rc-1 xar  (found on
 XWiki.org)
 - We tested with different mysql-java-connector (current version :
 5.0.7)

 The install is available here (if you want to check it)
 http://testapplis.xwiki.com/
 The Whats New page here :
 http://testapplis.xwiki.com/xwiki/bin/view/Main/WhatsNew

 Have you got any idea of the problem ?

 Thanks,
 Thomas
 ___
 users mailing list
 users@xwiki.org mailto: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] Velocity + Tables

2009-02-24 Thread Lewis Denizen
Hi Vincent, have to thank you again for such a quick and precise response
;-)  Switching the two tags worked perfectly!  And apologies for not trying
this out before posting!

On Mon, Feb 23, 2009 at 9:30 AM, Vincent Massol vinc...@massol.net wrote:

 Hi Lewis,

 On Feb 23, 2009, at 12:14 AM, Vincent Massol wrote:

  Hi Lewis,
 
  On Feb 22, 2009, at 5:56 PM, Lewis Denizen wrote:
 
  Hi xwiki-users,
 
  I've been playing with the new XWiki Syntax 2.0,
 
  Great, we need feedback on the new syntax from using it in the real
  world!
 
  but there are still some
  things possible with the old 1.0 syntax which are impossible in the
  new 2.0
  syntax.  One thing that I still cannot figure out is something like
  the
  following:
 
  {{html wiki=true}}
  table id=serverList class=grid sortable filterable doOddEven
  tr class=sortHeader
th class=selectFilterSpace/th
thClass/th
thServer Name/th
th class=unsortable noFilterLink/th
  /tr
  {{velocity}}
  #foreach($serverDocument in $serverDocuments)
  tr
td$serverDocument.Space/td
td$serverDocument.Name/td
td
#foreach($serverObject in $serverDocument.getObjects($serverClass))
  * $serverObject.HostName
#end
/td
td[[$serverDocument]]/td
  /tr
  #end
  {{/velocity}}
  /table
  {{/html}}
 
  I've tried your example and indeed it's not working. I've created the
  following issue:
  http://jira.xwiki.org/jira/browse/XWIKI-3258
 
  You can monitor it if you want to follow the progress. I'll be working
  on it tomorrow.

 Actually I've worked on it and the result is that it's not valid... :)

 The HTML macro must only contain valid HTML and it's not the case in
 your example.

 You need to have the velocity content evaluated first so that the
 content is valid HTML:

 {{velocity}}{{html}}...

 Thanks
 -Vincent

 [snip]


 ___
 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] Upgrade fails!

2009-02-24 Thread Stefan Gundlach

Hi xwiki-users!

Our xwiki is in version 0.9.543 and we need a working upgrade path. But it
seems that all our effort end up in a non operational state. 

Currently i try to get working the stable XWiki Enterprise 1.7.2. After
installing, importing the xar, copying the database and starting tomcat, it
does a lot of conversions. All I get afterwards is an exception report:

root cause
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main
XWiki context
Wrapped Exception: Error number 3201 in 3: Exception while saving document
XWiki.XWikiPreferences
Wrapped Exception: java.lang.String
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:326)
[...]

In the logfile a probably wrong sql statement can be found:

insert into xwikipreferences (XWP_LANGUAGE, XWP_DEFAULT_LANGUAGE,
XWP_MULTI_LINGUAL, XWP_AUTHENTICATE_EDIT, XWP_AUTHENTICATE_VIEW,
XWP_AUTH_ACTIVE_CHECK, XWP_BACKLINKS, XWP_SKIN, XWP_STYLESHEET,
XWP_STYLESHEETS, XWP_EDITOR, XWP_EDITBOX_WIDTH, XWP_EDITBOX_HEIGHT,
XWP_WEBCOPYRIGHT, XWP_TITLE, XWP_VERSION, XWP_MENU, XWP_META,
XWP_USE_EMAIL_VERIFICATION, XWP_SMTP_SERVER, XWP_ADMIN_EMAIL,
XWP_VALIDATION_EMAIL_CONTENT, XWP_CONFIRMATION_EMAIL_CONTENT,
XWP_INVITATION_EMAIL_CONTENT, XWP_MACROS_LANGUAGE, XWP_MACROS_VELOCITY,
XWP_MACROS_GROOVY, XWP_MACROS_WIKI2, XWP_MACROS_MAPPING,
XWP_NOTIFICATION_PAGES, XWP_LEFT_PANELS, XWP_RIGHT_PANELS,
XWP_SHOW_LEFT_PANELS, XWP_SHOW_RIGHT_PANELS, XWP_PAGE_WIDTH, XWP_LANGUAGES,
XWP_REGISTRATION_ANONYMOUS, XWP_REGISTRATION_REGISTERED, XWP_EDIT_ANONYMOUS,
XWP_EDIT_REGISTERED, XWP_COMMENT_ANONYMOUS, XWP_COMMENT_REGISTERED,
XWP_DOCUMENT_BUNDLES, XWP_ID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?)
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving
document XWiki.XWikiPreferences
Wrapped Exception: java.lang.String
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:590)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:135)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:128)

Can someone give me a helping hand, please?

Stefan
-- 
View this message in context: 
http://n2.nabble.com/Upgrade-fails%21-tp2378958p2378958.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] Problem with a 1.8 RC1 install

2009-02-24 Thread Raffaello Pelagalli
Thomas Eveilleau tho...@xwiki.com writes:

 Hello Niels,

 Thanks for the time you spent on this tests !

 No the wiki is not on a virtual host and it was created yesterday from 
 nothing, it's not an upgrade.
 I was logged with a local account (the Admin one), there's no global 
 accounts since it's just an isolated XE.

 I saw your account  your pages in the SpaceIndex  in the Recent 
 Changes ! That's something new because we tried to create things 
 yesterday and nothing was listed.

 Thomas


Hi Thomas,

It's a compatibility problem between hibernate and the mysql connector.
The connector should be upgraded to at least version 5.0.7, and the xar 
have to be reimported if you want the pages to appear.

Best regards,
-- 
Raffaello Pelagalli

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


Re: [xwiki-users] Invalid URL after a $xwiki.getURL() + deconnection

2009-02-24 Thread Sergiu Dumitriu
Jean Couteau wrote:
 Hi list,
 
 I have a really weird bug which is quite annoying and I don't find any 
 solution to it :
 
 I want to edit a page in inline mode. I have a form to select the page 
 to edit with a button. I use the $xwiki.getURL() method to get the right 
 URL. When i select my page and click on the edit button, I have an 
 invalid URL error and i am deconnected. What is weird is that if I 
 reconnect and actualize the page I can access it. The second weird thing 
 is that I use exactly the same method to edit other pages form other 
 forms in the same first page and I do not have the problem. I am quite 
 lost with this issue. I tried to recreate the URL as a string but I have 
 the same problem.
 
 I am thinking maybe this is a known bug in xwiki. If not maybe i am 
 missing something somewhere. Please open my eyes on the obvious i am 
 missing in my code :
 
 FORM method=POST action=
 input type=hidden name=backlog value=${backlogId} /
 input type=hidden name=webname value=Project /
 input type=hidden name=name value=backlog /
 input type=hidden name=domain value=${domainId} /
 input type=hidden name=cut value=${cut} /
 Select topic : SELECT name=topic
   #foreach ($item in $topiclist)
 #set 
 ($topic=$xwiki.getDocument(${item}).getObject(XWiki.TopicClass))
 OPTION VALUE=${topic.id}$topic.get(name)/OPTION
   #end
 /SELECT
 input type=button value=Select 
 onclick='{this.form.action=../../view/ + this.form.webname.value + / 
 + this.form.name.value + ?backlog= + this.form.backlog.value + 
 domain= + this.form.domain.value + topic= + 
 this.form.topic.value.substring(this.form.topic.value.lastIndexOf(${separator})+1)
  
 + cut= + this.form.cut.value; this.form.submit(); }'/
 input type=button value=Edit 
 onclick='{url=Project.+this.form.topic.value; 
 this.form.action=${xwiki.getURL(url, inline)}; this.form.submit(); }' /

Classic mix between serverside and clientside scripting.
${xwiki.getURL...} is executed on the server, before the page is
displayed in the browser. url is a javascript variable, created long
after the velocity engine tried to generate the URL. I'm surprised you
didn't get a stack trace instead of the panel.

Still, this doesn't explain why you get disconnected, this should not
happen.

Try this:

 input type=button value=Edit
 onclick='this.form.action=${xwiki.getURL(Project.__topic__,
inline)}.replace(__topic__, this.form.topic.value);
this.form.submit();' /

This uses $xwiki.getURL to obtain a valid URL template, which uses a
placeholder (__topic__) instead of the real topic name, which in the
generated HTML appears as a string like
/xwiki/bin/inline/Project/__topic__, and javascript replaces this
placeholder with the real value taken from the form.

   /FORM
 
 Note that the problem is only with the Edit button, the other is working 
 fine.
 
 Thanks in advance for your help.
 
 Jean.
 


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


[xwiki-users] Problem with the new blog application running on XWiki 1.1.1

2009-02-24 Thread Antonio Goncalves
Hi all,
I've installed the new blog application (
http://code.xwiki.org/xwiki/bin/view/Applications/BlogApplication) on XWiki
1.1.1. My old blog entries have been migrated and I can created new entries.
But when I go to the  Blog/WebHome page (
http://www.antoniogoncalves.org/xwiki/bin/view/Blog/WebHome) I get the
following text showing instead of the list of entries :

#preparePagedViewParams($totalEntries 10)
  $xwiki.jsx.use($blogScriptsDocumentName) 1.1 Create a new post

Do you know if I need to do something special to make this page work and get
the 10 last entries of my blog ?

Thank you,

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


Re: [xwiki-users] Problem with the new blog application running on XWiki 1.1.1

2009-02-24 Thread Sergiu Dumitriu
Antonio Goncalves wrote:
 Hi all,
 I've installed the new blog application (
 http://code.xwiki.org/xwiki/bin/view/Applications/BlogApplication) on XWiki
 1.1.1. My old blog entries have been migrated and I can created new entries.
 But when I go to the  Blog/WebHome page (
 http://www.antoniogoncalves.org/xwiki/bin/view/Blog/WebHome) I get the
 following text showing instead of the list of entries :
 
 #preparePagedViewParams($totalEntries 10)
   $xwiki.jsx.use($blogScriptsDocumentName) 1.1 Create a new post
 
 Do you know if I need to do something special to make this page work and get
 the 10 last entries of my blog ?

The new blog application works with recent (= 1.7) versions of XE (at
least somehow original versions). To fix your problems, you must:

- use a recent version of the macros.vm file, which contains the
preparePagedViewParams macro (you can just copy it into from a
downloaded XE distribution into your installation)
- install and enable the ssx and jsx plugins
- install and enable the JsxAction and SsxAction Struts actions

These tasks can be done in older version of XE, too, if you don't want
to upgrade.
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users