Hi,
I have an object (Intranet.AbCompany) where I would like to insert a
relation to objects of type Intranet.AbPerson
Does "display type input" allow to display one field and submit a
different field (I mean to work in the same way select list does)?
This is useful because if you have 1000 or more values select is not
practical and the only solution is an input box with suggest. In this
scenario, I need to display the person surname, but store the related
object id (my use case is an internal address book, where you need to
connect company and person)
Thank you,
Gianluca
------- Note, settings an errors ------------------------
Settings:
- multiple objects are stored in a single page
- field type is "database list"
- multiple select, relational storage, suggest are all checked
- If display type is select it works well
- if display type is input, the suggest ajax call throw an exception
- Hibernate query used:
SELECT pval.value, pid.value FROM BaseObject obj, StringProperty
pval, StringProperty pid WHERE obj.className='Intranet.AbPersonClass'
AND obj.name <> 'Intranet.AbPersonTemplate' AND pval.id.id = obj.id
AND pval.id.name = 'surname' AND pid.id.id = obj.id AND pid.id.name =
'name'
- ajax exception:
Request URL:http://....../xwiki/bin/view/Main/WebHome?
xpage
=suggest&classname=Intranet.AbCompanyClass&fieldname=person&firCol=-
&secCol=-&input=gianl
Request Method:GET
Status Code:200 OK
1 requests ❘ 9.92KB transferred
WebHome
/xwiki/bin/view/Main
HeadersContentCookiesTiming
<a href=""
onclick="document.getElementById('xwikierror1').style.display='block';
return false;">Error number 4001 in 4: Error while parsing velocity
page /templates/suggest.vm
Wrapped Exception: Failed to evaluate content with id [/templates/
suggest.vm]<div id="xwikierror1" style="display: none;"><pre
class="xwikierror">
Error number 4001 in 4: Error while parsing velocity page /templates/
suggest.vm
Wrapped Exception: Failed to evaluate content with id [/templates/
suggest.vm]
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while
parsing velocity page /templates/suggest.vm
Wrapped Exception: Failed to evaluate content with id [/templates/
suggest.vm]
at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:122)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1840)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:153)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
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:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org
.xwiki
.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:
152)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com
.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org
.xwiki
.container
.servlet
.filters
.internal
.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:
218)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org
.xwiki
.container
.servlet
.filters
.internal
.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
112)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at
org
.mortbay
.jetty
.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:
230)
at
org
.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:
114)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:915)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at
org
.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)
Wrapped Exception:
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'search' in class com.xpn.xwiki.api.XWiki threw exception
com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception while
searching documents with sql SELECT pval.value, pid.value FROM
BaseObject obj, StringProperty pval, StringProperty pid WHERE lower()
like ? and obj.className='Intranet.AbPersonClass' AND obj.name <>
'Intranet.AbPersonTemplate' AND pval.id.id = obj.id AND pval.id.name =
'surname' AND pid.id.id = obj.id AND pid.id.name = 'name'
Wrapped Exception: could not execute query at /templates/
suggest.vm[line 44, column 26]
at
org
.apache
.velocity
.runtime
.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:243)
at
org
.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:
187)
at
org
.apache
.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:
280)
at
org
.apache
.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
at
org
.apache
.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at
org
.apache
.velocity
.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
72)
at
org
.apache
.velocity
.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org
.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
342)
at
org
.xwiki
.velocity
.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:195)
at
org
.xwiki
.velocity
.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:160)
at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1840)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:153)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
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:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org
.xwiki
.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:
152)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com
.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org
.xwiki
.container
.servlet
.filters
.internal
.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:
218)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org
.xwiki
.container
.servlet
.filters
.internal
.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
112)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at
org
.mortbay
.jetty
.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:
230)
at
org
.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:
114)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:915)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at
org
.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)
Caused by: com.xpn.xwiki.XWikiException: Error number 3223 in 3:
Exception while searching documents with sql SELECT pval.value,
pid.value FROM BaseObject obj, StringProperty pval, StringProperty pid
WHERE lower() like ? and obj.className='Intranet.AbPersonClass' AND
obj.name <> 'Intranet.AbPersonTemplate' AND pval.id.id = obj.id AND
pval.id.name = 'surname' AND pid.id.id = obj.id AND pid.id.name = 'name'
Wrapped Exception: could not execute query
at
com
.xpn.xwiki.store.XWikiHibernateStore.search(XWikiHibernateStore.java:
2162)
at
com
.xpn.xwiki.store.XWikiHibernateStore.search(XWikiHibernateStore.java:
2094)
at
com.xpn.xwiki.store.XWikiCacheStore.search(XWikiCacheStore.java:689)
at com.xpn.xwiki.api.XWiki.search(XWiki.java:556)
at sun.reflect.GeneratedMethodAccessor444.invoke(Unknown Source)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.velocity.util.introspection.UberspectImpl
$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at org.apache.velocity.util.introspection.UberspectImpl
$VelMethodImpl.invoke(UberspectImpl.java:384)
at
org
.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:
173)
... 48 more
Hello,
is there a possibility to include a website directly as a wiki page, so that clicking on a link, that redirects you to an external (www) page, loads the website directly as a "frame" in my xwiki instance. At the moment I am only able to create links that load the external site in a new tab or page.
Best regards
Vince
Mit freundlichen Grüßen
Vincenzo Brancato
-Systems Integration-
PROCITEC GmbH Rastatter Strasse 41
D-75179 Pforzheim
Fon: +49 (0) 7231 15561-0
Fax: +49 (0) 7231 15561-11
Mailto: v.brancato(a)procitec.de
Mannheim HRB 504702
Geschäftsführer: Dipl.-Ing. (FH) Michael Brenk
This e-mail may contain confidential and/or legally protected information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
Thank you!
Hi,
When I go to xwikipages containing inline form with textarea fields I get spinningwheels in each of these field, but no editor
Same with some javascript driven imageslideshows
Is this a firefox4 problem. (it used to work in firefox 3.x)
Same pages work fine in google chrome
Gerritjan
Hey everyone
I'm having a problem with my xwiki setup, but I can't figure out the source
of the problem neither where I should look.
Here's the problem:
- Xwiki is running properly on my setup. After several hours, Panels and
Blog posts are mostly empty
- When I check one of my panels, it says it's got unused properties that can
be deleted if I want to; in fact, these properties are very much needed.
- Then I checked these xwiki objects in class edition mode: Blog.* Panels.*;
they are all empty and do not have any property.
Restarting the application does nothing.
Reimporting those objects with a XAR file pretty solves the problem. *But I
can't figure out what happened*.
Is there a way these objects were corrupted in database?
Here's my setup:
- two tomcats running xwiki 3.0
- one mysql database (innodb engine)
I checked all the logs for errors but couldn't find anything relevant (as
far as I know)
--
View this message in context: http://xwiki.475771.n2.nabble.com/database-xwiki-objects-corruption-tp66018…
Sent from the XWiki- Users mailing list archive at Nabble.com.
On Wed, Jul 20, 2011 at 19:45, Ecaterina Moraru (Valica)
<valicac(a)gmail.com>wrote:
> Hi,
>
> I was thinking about what tips and tricks XWiki has, things that are not
> really that well documented but that are very productive and fun.
> Would be nice to have such an inspiring thread from which we could learn a
> lot and, why not, have fun experimenting :)
>
> If the thread is really useful we could also integrate these tips more
> clearly in our documentation or also we could have a tips panel inside XWiki
> Enterprise, for beginners/intermediate users.
>
> The tip structure could be:
> *Title: **
> Level: **
> Target: *
> *Description:*
>
> Thanks,
> Caty*
> *
*Title: *Using emoticons*
Level:* Intermediate /* *Advanced*
Target: *User
*Since:* XE 2.6
*Description:*
Did you know that you can have emoticons :) :P :D in your text?
Just write the textual
emoticons<http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterpris…>and
they will be rendered in your saved page.
If you want to use more diverse
icons<http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png>you
will have to switch
to XWiki 2.1 Syntax<http://platform.xwiki.org/xwiki/bin/view/Features/PageEditing#HChoosingaSyn…>and
write something like image:icon:accept
.
Hi community,
If anyone is curious, a demo installation of the current work on the Wiki3.0
[1] research project is available at http://wiki30-demo.xwiki.com
With the Workspaces feature, you can register a user and create workspaces,
invite/accept other users and generally manage your workspace.
Interesting sections (or rather a list of features) are:
= In the main wiki =
- Create new Workspace (Add menu or homepage button)
- Workspace Directory (Top menu, under 'Workspace')
- 'Workspaces' section in user profile
- User Directory improvements
- Join/Leave/Request membership/Accept invitation to join a workspace
(Workspace Directory or homepage of a workspace)
- Workspace search suggestions (top-right search box)
= In a workspace =
- Dashboard
- Workspace information panel (right panels)
- Main wiki link (Top menu, under 'Workspace')
- Delete workspace (Top menu, under Workspace, for owner)
- Workspace Configuration section (Administration, 'Configuration' category)
- Workspace Users section; Accept membership requests or invite users
(Administration, 'Users & Groups' category)
- User registration redirecting to main wiki (Top-Right register link)
- Removed local XWiki.Admin user
Besides the Workspaces feature, the Real-Time editor is also available for a
quick test. You can access it by editing a page in "Real Time" edit mode.
You can't miss it :)
For quick tests, you can edit the same page in 2 browser windows and see
changes in one window triggering an update in the second one. It also works
with multiple users (obviously) and allows other to join in the editing
session.
For now it's working real time only for wiki code. Work on the WYSIWYG
version has already started.
Please feel free to report any bugs or suggestions here or (preferably) at
http://jira.xwiki.org/jira/browse/WIKITHREEDOTO and do be aware that it's
still work in progress.
Thanks,
Eduard
-----------------
References:
[1] https://wiki30.xwikisas.com/
Someday, I will not be clueless...
I have successfully installed a local development copy of xwiki on
Windows, but I'm having some trouble getting XEM installed on my
shared linux server. I'm running on a shared Tomcat (5.027) container.
Following both the tutorial for XEM and for XE, I have done the following:
1) Since it is a shared hosting environment and java is enabled, I
assume I do not have to manually install either java or MySQL. I have
created a MySQL database with the name "xwikidb" through my hosting
control panel with username "xwikidb." I do not have the ability to
add full privileges to the user, but I was told this would not prevent
basic installation of XEM.
2) Renamed the "xwiki-enterprise-installer-generic-3.1-standard.war"
file to xwiki.war and uploaded to my server. It exploded as expected
when the server restarted to a subdirectory called "xwiki."
3) I downloaded the MySQL Java Connector and put
mysql-connector-java-5.1.17-bin.jar in my /xwiki/WEB-INF/lib folder
4) Modified the hibernate.cfg.xml file to uncomment the MySQL section
and comment out the default. Changed the username and password fields
to my information.
5) Checked to make sure "localhost" was defined in /etc/hosts
6) Now what? There's no .sh file in the WAR...What do I start? I have
already waited for Tomcat to restart, but it doesn't appear that xwiki
is running.
Sure that I'm missing something obvious. Relative newbie to linux servers...
Thanks,
Aaron
Hi
I am looking to dynamically chart some historical data I have stored in our
wiki and am wondering if anyone knows the best way to approach this?
Basically I have two date fields to pick what dates to run the query
through, and several other options of things to graph over time. I would
like to be able to just refresh a portion of the page or perhaps even the
page itself (store the values I need in an attached object?)
If anyone knows a good way to implement this that would be appreciated.
Adam