Hello,
with velocity I have a hashmap: sort of variable with (key:value) that I want to sort, then I use:
#set ($myHashMap = $collectionstool.getSortedMap(String, String))
$myHashMap.put('Mykey3','My value 3')
http://platform.xwiki.org/xwiki/bin/view/ScriptingDocumentation/?url=http:%…
It's working well ... except with uppercase because I want a sort with insensitive case.
I tried to decrypt Javadoc and I found I could use: String.CASE_INSENSITIVE_ORDER
#set ($myHashMap = $collectionstool.getSortedMap(String.CASE_INSENSITIVE_ORDER, String))
#set ($myHashMap = $collectionstool.getSortedMap(String::compareToIgnoreCase, String)) with java8
but unfortunaly it doesn't work (I have xwiki error)
Any idea to sort my hashmap with with insensitive case?
(Unfortunaly the better way I found is an ugly way: I mix velocity with a piece of groovy but I'm not satisfied at all because I use velocity loop and other if.)
Thxs for any help.
Pascal B
Hey,
thank you very much :) This helped a lot! Now the raw content is not shown.
Unfortunately I have another problem now: The text inside {{html}} tags (and so on) seems not to be indexed.
Best regards,
Patrick
Hello,
I have a problem with pdf export extensions. I want to export multiple sites in a defined space which is no problem at all.
But it starts getting serious when I want to include links.
The &includelinks=1 for example works fine but it only includes the direct links to the website.
I need a possibility to change the links to the website to pdf intern links.
Can you see a way how this could work?
That means that I want to export for example a front page with links to other pages and export them as well and have an internal link to the pages below the front page in the pdf file .
Thank you in advance.
Kind regards
Timo Dachs-Wegmann
-IT-
--------------------------------------
I am attempting to follow the guidance at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorialManual
The idea of this page is to walk one through the creation of a new data
type. However the page is out of date. For example on the
xwiki/bin/view/XWiki/XWikiClasses page, things are not the same as the
tutorial image in the "Create a new data type" section. The tutorial says
one could fill out the space and class fields with "FAQ" but the 8.4.3 xwiki
does not offer a space field. The most recent comment made in Nov 2016
states
This example no longer works correctly in 8.4. However, it will if...
After you create the WebHome (FAQs) page.
Delete the FAQClass object from WebHome
For a new xwiki user this kind of stuff is confusing. I am hesitant to
proceed because I don't know what the missing "space" field implies and am
not sure if I'll get tripped up by the FAQClass issue. I already ran the
"Apps within Minutes" FAQ tutorial, so I'm concerned that I'll have a
namespace collision with this new FAQ application unless I know what the
space issue implies.
--
View this message in context: http://xwiki.475771.n2.nabble.com/The-FAQ-Tutorial-Manual-is-somewhat-out-o…
Sent from the XWiki- Users mailing list archive at Nabble.com.
I am looking to use xwiki as a communication tool for my volunteer leadership team for a campaign for the Leukemia and Lymphoma Society. I am the LLS Man and Woman of the Year Campaign Manager.
Owner name: Luis Gomez
Wiki name: mwoyorlando
Thank you,
Luis Gomez
Man & Woman of the Year Campaign Manager, Orlando
Leukemia and Lymphoma Society
407-965-6575
NOTICE: This message, including all attachments transmitted with it, is for the use of the addressee only. It may contain proprietary, confidential and/or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient, you must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message. If you believe you have received this message in error, please delete it and all copies of it from your system and notify the sender immediately by reply email. Thank you.
I'm not sure if this is the correct venue for reporting an issue with a
"recommended" extension? After installing Task Manager 2.4.1, when I visit
the Task Manager page it shows an empty task list. Fine, but there is also
an error reported.
Failed to execute the [velocity] macro. Cause: [The data types text and
nvarchar are incompatible in the equal to operator.].
The error message ends with these:
Caused by: com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception
while hibernate execute
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1333)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:1394)
at
com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:165)
... 163 more
Caused by: org.hibernate.exception.SQLGrammarException: could not execute
query
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:92)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.loader.Loader.doList(Loader.java:2545)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
at org.hibernate.loader.Loader.list(Loader.java:2271)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:459)
at
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:365)
at
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at
com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor$1.doInHibernate(HqlQueryExecutor.java:174)
at
com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor$1.doInHibernate(HqlQueryExecutor.java:166)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1327)
... 165 more
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The data types
text and nvarchar are incompatible in the equal to operator.
at
com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:217)
at
com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1655)
at
com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:440)
at
com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:385)
at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7505)
at
com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2444)
at
com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:191)
at
com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:166)
at
com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeQuery(SQLServerPreparedStatement.java:297)
at
org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:83)
at
org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:83)
at
org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1953)
at org.hibernate.loader.Loader.doQuery(Loader.java:802)
at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
at org.hibernate.loader.Loader.doList(Loader.java:2542)
... 175 more
--
View this message in context: http://xwiki.475771.n2.nabble.com/Install-Task-Manager-Application-2-4-1-ve…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hey,
I have googled for quite some time but wasn't able to find an answer to my question.
Is it possible to exclude the "raw content" from the solr search? I don't want it to be indexed and I don't want it to be shown as result. At the moment every "{{html}}" (and so on) can be found via search.
I am using XWiki 7.1.1.
Best regards,
Patrick Enste
Hi,
Is it possible to have multiple xForms on one page when the objects to be edited are not on the same page.
We have a object of class "child" and a object of Class "parent"; each object is stored on it's own page.
But users would like to be able to modify the object of class "header" while they are editing the object of class
In my headerClass sheet I have...
{{velocity}}
## You can modify this page to customize the presentation of your object.
## At first you should keep the default presentation and just save the document.
#if(!$headerDoc)
#set($headerDoc = $xwiki.getDocument("Sandbox.testHeader"))
#end
#set($classHeader = $headerDoc.getObject('Sandbox.classHeader').xWikiClass)
#foreach($prop in $classHeader.properties)
; $prop.prettyName
: $headerDoc.display($prop.getName())
#end
{{/velocity}}
In my childClass sheet I have:
{{velocity}}
#set($headerDoc = $xwiki.getDocument("Sandbox.testHeader") )
{{display reference="$headerDoc"/}}
## You can modify this page to customize the presentation of your object.
## At first you should keep the default presentation and just save the document.
#set($class = $doc.getObject('Sandbox.classChild').xWikiClass)
#foreach($prop in $class.properties)
; $prop.prettyName
: $doc.display($prop.getName())
#end
{{/velocity}}
When I create or edit the page holding the childClass object I do get the impression I can Edit the header object, but when I save only the properties of the child object are saved?
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
I have the openoffice server configured to import from word docs and it does
quite well. However a direct copy/past from word still loses the images
while keeping much of the formatting. This is just how it is, correct? To
preserve Word formatting and embedded images, the import process must be
used? Or is there a workaround? It's not a show stopper just want to know if
I'm missing anything. Possibly a later version of Word would work better,
I've tried using 2003 and 2010.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Copy-Paste-from-Word-loses-images-tp76023…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Howdy again,
I just upgraded to 8.4.4 via the Ubuntu packages, and the Navigation Panel has no content whatsoever! It’s blank except for the title. Is there a quick or obvious fix for this?
Thanks,
Craig