Suppose I design a skillset application. I define a SkillClass for master list of skills. I also define a PersonClass with a DBList property with query to list Skill items. It works and I could add a person with multiple skill items selected.
I would like to modify Person page display to show details from Person object followed by a table that lists his skills along with additional information from respective skill objects. This table has to list skill details only for those skills associated with the person.
How do I do this? I tried to pick the associated skills one-by-one from the property but could not do so with following logic.
#set($perskills=$person.getProperty("SkillList").getValue())
#foreach ($ps in $perskills)
SQL to retrieve skill object
Display information
#end
Any pointers on what is wrong or better ways of doing it?
--
View this message in context: http://www.nabble.com/DBListClass-and-Details-t1046024.html#a2718063
Sent from the XWiki- Users forum at Nabble.com.
Hi all,
I'm running into the following exception when trying to download
certain attachments:
Error number 3231 in 3: Exception while loading attachment xyz.doc of
document PM.xyz
Wrapped Exception: No row with the given identifier exists:
[com.xpn.xwiki.doc.XWikiAttachmentContent#903453393]
com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while
loading attachment xyz.doc of document PM.xyz
Wrapped Exception: No row with the given identifier exists:
[com.xpn.xwiki.doc.XWikiAttachmentContent#903453393]
at com.xpn.xwiki.store.XWikiHibernateStore.loadAttachmentContent(XWikiHibernateStore.java:1484)
at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:1499)
at com.xpn.xwiki.doc.XWikiAttachment.getContent(XWikiAttachment.java:360)
at com.xpn.xwiki.XWikiService.renderDownload(XWikiService.java:689)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:186)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
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 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:788)
Looking at the database, it appears some attachments do not have
content. Any idea what's going on?
mysql> select XWA_ID from xwikiattachment where XWA_ID not in (select
XWA_ID from xwikiattachment_content);
+-------------+
| XWA_ID |
+-------------+
| -1545435440 |
| -1316229821 |
| 903453393 |
| 1853219705 |
+-------------+
Regards,
Robin
Hello everyone.
When I go to any of my pages, I see the following exception there:
Error number 4001 in 4: Error while parsing velocity page Doc.WebHome
Wrapped Exception: Invocation of method 'getDocument' in class
com.xpn.xwiki.api.XWiki threw exception class
com.xpn.xwiki.XWikiException : Error number 3202 in 3: Exception while
reading document XWiki.kkembhavi
Wrapped Exception: Error number 3212 in 3: Exception while loading
object XWiki.kkembhavi Wrapped Exception: identifier of an instance of
com.xpn.xwiki.objects.BaseObject altered from -547570503 to -278557223
Could someone please tell me what it is telling me and how I can fix that?
Many thanks
Ali.
Hi,
Users are pasting HTML generated by various apps into their docs and
then aren't able to render to pdf. I found that attempting to save a
document with the following content to pdf results in a 0 byte file:
<table>
<tr>
<td nowrap></td>
</tr>
</table>
Looking at the log:
org.xml.sax.SAXParseException: Attribute name "nowrap" associated with
an element type "td" must be followed by the ' = ' character.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyXsl(PdfExportImpl.java:164)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.convertXHtmlToXMLFO(PdfExportImpl.java:147)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXHtml(PdfExportImpl.java:79)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:108)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:122)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportToPDF(PdfExportImpl.java:112)
at com.xpn.xwiki.XWikiService.renderPDF(XWikiService.java:894)
[...]
I realise that nowrap is not valid xhtml, but I would have thought
that jTidy (which I believe you are using for the html -> xhtml
conversion) would map it to nowrap="nowrap" or style="white-Space:
nowrap;". Apparently not..
Can anyone suggest a workaround?
Regards,
Robin
Hi,
Is anyone comfortably running the email notification plugin?
I'm seing quite a lot of strange behaviour.
For example, if I understand correctly, the plugin is supposed to
programatically create a new class, and add an instance of that class
to the user's page when they first create a subscription.
Looking at the database after subscribing to a page, I can see some
new properties but they don't seem to be associated with any objects
(and they have an ID of 0, which I'm guessing isn't healthy):
select * from xwikiproperties order by abs(XWP_ID) desc;
+-------------+-------------------------------+--------------------------------------------+
| XWP_ID | XWP_NAME | XWP_CLASSTYPE
|
+-------------+-------------------------------+--------------------------------------------+
[...]
| -512550 | groups |
com.xpn.xwiki.objects.StringProperty |
| -512550 | levelsye |
com.xpn.xwiki.objects.StringProperty |
| -512550 | allow |
com.xpn.xwiki.objects.IntegerProperty |
| 0 | subscribedDocuments |
com.xpn.xwiki.objects.DBStringListProperty |
| 0 | subscribedWebs |
com.xpn.xwiki.objects.DBStringListProperty |
| 0 | schedulerName |
com.xpn.xwiki.objects.StringListProperty |
+-------------+-------------------------------+--------------------------------------------+
select XWO_NAME, XWO_ID from xwikiobjects where XWO_ID='0';
Empty set (0.00 sec)
Would we perhaps expect to see something like this if the call to
doc.addobject() is failing somewhere?
After manually adding an instance of the email notification object to
my user page things
seem to be working, so far.
Regards,
Robin
>From: Ludovic Dubost [ mailto:ludovic@xwiki.com
<mailto:ludovic@xwiki.com> ]
>Subject: Re: [xwiki-users] {pre} tags not working
Hi Ludovic,
>Is this in a normal wiki page edit or using forms (in the blog for
example).
>I've never heard anything about {table} turning to HTML. It seems
>similar. I could guess that the editing renders the content before
>puting it in the form. Have you modified the "Edit" template, maybe in
>your skin ?
I may have misunderstood your question. I'm still in the 'beginner'
stages with XWiki and am not the person who originally set it up at our
site, so I'm not familiar with all of the internals.
I have more information on my problem with the {pre} tags.
When we add new pages to our XWiki, we use an entry form on the left
Menu bar. The code for adding the new page is:
<div class="xwikimenulinks">
#includeTopic("XWiki.XWikiCommonJavascript")
<form action="" id="newdoc">
<input type="hidden" name="parent" value="Main.WebHome" />
<input type="hidden" name="template" value="XWiki.ArticleClassTemplate"
/>
<input type="hidden" name="sheet" value="1" />
<input type="hidden" name="webname" value="Main"/>
<input type="hidden" name="name" value=""/>
<input type="text" name="title" value="" size="18"/>
<input type="button" value="Add this item" onclick='if
(updateName(this.form.title,this.form.name)) { action="../../inline/" +
this.form.webname.value + "/" + this.form.name.value;
this.form.submit(); }' />
</form>
</div>
What I learned on Friday, 1/13, is that I can get {pre} to work on new
non-existent pages by doing these steps:
1. create a new XWiki entry using the form above
2. on the new page, place a link to a non-existent XWiki page such as:
[My New Page>Main.MyNewPage]
3. save the new page
4. click on the blue question mark next to "My New Page" to edit the
referenced page
I will get a different edit page, the one with "Basic Syntax" (XWiki
syntax) along the right column. If I enter {pre} tags in this editor,
they seem to work?! I think this may be the difference in the forms
used, and I think this may be the question you originally asked?
John
Hello!
I am trying to use xwiki with the oracle 9i database, but I cannot locate jdbcOraWrapper distribution from http://l3x.net/imwiki/.
Could someone help me?
Thanks in advance.
Hello
I'm using xWiki Version 0.9.840 and try to delete some Blog-Categories.
There is no problem to create and edit the categories. But how do I
delete a Blog-Category?
Thanks
Ralph
Hi,
I have been customizing xWiki for my engineering intranet. I frequently get redirected to the logon page. Sometimes the logon page also returns back to the logon page itself. Ofcourse, I am typing the right user-id and password:)
Following are the errors I am noticing on Tomcat console. Could anybody help me out.
Thanks,
Raghu
19:18:14,420 WARN Thread-4 http://localhost:8080/xwiki/bin/view/Engineering/Web
Home XWikiStatsServiceImpl:findVisit:314 - Found visit with cookie MAZLCA1Z37XSC
8JEXTTZK3WRW0FKPNP3 in session A2420429EAE234F907B95F822D24FA38 for request with
cookie R9YT000PAM4JPSHAALDFZTOFFJYQT3KV
19:18:40,167 WARN Thread-4 RequestUtils:createActionForm:177 - No FormBeanConf
ig found under 'login'
19:18:40,187 WARN Thread-4 http://localhost:8080/xwiki/bin/login/XWiki/XWikiLog
in RequestUtils:createActionForm:177 - No FormBeanConfig found under 'loginerror
'
19:18:43,351 WARN Thread-4 RequestUtils:createActionForm:177 - No FormBeanConf
ig found under 'login'
19:18:50,051 WARN Thread-4 RequestUtils:createActionForm:177 - No FormBeanConf
ig found under 'login'
19:18:52,404 WARN Thread-4 http://localhost:8080/xwiki/bin/login/XWiki/XWikiLog
in RequestUtils:createActionForm:177 - No FormBeanConfig found under 'loginerror
'
19:19:11,722 WARN Thread-4 RequestUtils:createActionForm:177 - No FormBeanConf
ig found under 'view'
19:19:20,825 WARN Thread-4 http://localhost:8080/xwiki/bin/view/Engineering/Web
Preferences XWikiStatsServiceImpl:addCookie:474 - Setting cookie KWBZFWECBAX1TYV
Y1MFM7BLMQVG533X0 for name visitid with domain null and path / and maxage -17653
8
19:19:20,825 WARN Thread-4 http://localhost:8080/xwiki/bin/view/Engineering/Web
Preferences XWikiStatsServiceImpl:findVisit:314 - Found visit with cookie MAZLCA
1Z37XSC8JEXTTZK3WRW0FKPNP3 in session A2420429EAE234F907B95F822D24FA38 for reque
st with cookie KWBZFWECBAX1TYVY1MFM7BLMQVG533X0
19:20:11,228 WARN Thread-4 RequestUtils:createActionForm:177 - No FormBeanConf
ig found under 'login'
19:20:11,228 WARN Thread-4 http://localhost:8080/xwiki/bin/login/XWiki/XWikiLog
in RequestUtils:createActionForm:177 - No FormBeanConfig found under 'loginerror
'
19:20:14,603 WARN Thread-4 RequestUtils:createActionForm:177 - No FormBeanConf
ig found under 'login'
19:20:35,543 WARN Thread-4 http://localhost:8080/xwiki/bin/login/XWiki/XWikiLog
in RequestUtils:createActionForm:177 - No FormBeanConfig found under 'loginerror
'
Suppose I design a skillset application. I create a PersonClass, define its properties, and create Sheet and Template. I also create a SkillClass and do similar things.
I would like to link these two and I have an option of making PersonClass the parent of SkillClass (while creating object/doc of skills).
I could also redesign PersonClassSheet to add a sql to retrieve a person's skills and render them in a table.
My question now is, how to I ensure Person editing page does not include the Skill table?
Should I create a new page (PersonSkill) that includes PersonClassSheet and SQL+Table layout instead of modifying PersonClassSheet?
To take it little further, if I have page with list of Persons, how do I link above new PersonSkill page to corresponding Person entry in the table?
Thanks, Patrick
--
View this message in context: http://www.nabble.com/Forms-t942303.html#a2441887
Sent from the XWiki- Users forum at Nabble.com.
Hello,
I found a strange behaviour. The following scenario: our production xwiki environment runs on jboss 4.0.2/MySQL 4.1. The development environment runs on my PC using jboss 4.0.3SP1/MySQL 5.0. When I create a dump from the database on my PC and restore this dump on the production database, I still don't see the new objects. This only happens when we do a full shutdown/restart of jboss.
We also saw that the memory utilisation of XWiki went up the more pages are viewed. This makes me think there is a caching mechanism in place. That's fine, but can this be overruled? The Jboss production machine runs other applications as well, and I don't want to fully restart the server.
Thanks,
Joep Janssen
Hello everyone.
I am trying to get the xwiki-exo war to run on the eXoPlatform. I am running eXov1.0.1(tomcat5) with xwiki-exo-0.9.840.war.
I have:
- read and followed the xwiki install instructions for eXo.
- deployed xwiki.war into the exoplatform webapps folder.
- made the changes to the xwiki.cfg and hibernate.cfg.xml.
When I start tomcat, the eXoplatform starts up properly and it also loads xWiki portlet. When I try to access the xwiki directly or through the portal I get Hibernate ObjectDoesNotExist exceptions for various xwiki objects.
Does anyone know what version of eXoplatform actually works with xWiki?
I am beggining to beleive that this deployment configuration does not actually work.
Many thanks
Scott.
Hi,
I have a class with a database list property that should list all
available users but I got no idea how the hibernation query should look.
Thanks!
Sascha
Hello,
I've been looking for a tagcloud (http://www.tagcloud.com) clone to
install on my xwiki. (Actually, tagcloud could be nice but french's
tags results aren't displayed correctly...)
I've found this page http://www.xwiki.org/xwiki/bin/view/XWiki/TagScript
. I copied the code into my xwiki but it doesn't seem to work. Any ideas?
thanks,
Fabien
>From: Ludovic Dubost [ mailto:ludovic@xwiki.com
<mailto:ludovic@xwiki.com> ]
>Subject: Re: [xwiki-users] {pre} tags not working
>Is this in a normal wiki page edit or using forms (in the blog for
example).
These edits are in normal wiki pages.
>I've never heard anything about {table} turning to HTML. It seems
similar.
>I could guess that the editing renders the content before puting it in
the form.
>Have you modified the "Edit" template, maybe in your skin ?
No modifications to template or skins that I'm aware of. I checked with
the guy that did the original installation of XWiki as well.
If it helps, I did these steps which tie the {pre} and {table} symptoms
together. I can reproduce the symptoms reliably.
1. Created a new Wiki page. Added a bit of text and a table:
this is great!
{table}
1|2
3|4
{table}
2. Saved page, it rendered as expected. Edit page. Looks normal.
3. Edit page text a bit:
this is *great*!
{table}
1|2
3|4
{table}
4. Saved page, rendered as expected-- 'great' is bold. Edit page. Looks
normal.
5. Edit page text a bit more:
this is {pre}*great*{/pre}!
{table}
1|2
3|4
{table}
5. Saved page. 'great' is still bold, {pre} tags not working. When I
edit the page, it looks like this:
this is *great*!
<table class="wiki-table" cellpadding="0" cellspacing="0"
border="0"><tr><th>1</th><th>2</th></tr><tr
class="table-odd"><td>3</td><td>4</td></tr></table>>
I hope this helps.
John
>jpalmer(a)purina.com a écrit :
>
> Greetings,
> I'm working on a locally installed XWiki, using the 0.9.840 release.
> I've got a couple problems with Wiki syntax that I need assistance
with.
>
> First, I want to use the {pre} tags around some text, but XWiki seems
> to be stripping the tags out. For example:
>
> this {pre}*text*{/pre} sample
>
> ...will show up with "text" in bold type. When I edit the page, the
> {pre} tags are gone.
>
> this *text* sample
>
> Our XWiki installation is very new. {pre} worked for a while, but then
> stopped working, making me question whether there was a (system?)
> change made a some point that caused {pre} to stop working.
>
> I've also got problems where Wiki {table} will turn to HTML the next
> time the page is edited. Is this related to, or somehow a clue to the
> {pre} problem?
>
> Thanks in advance for any assistance,
> John
>
> ----------------------------------------------------------------------
> --
>
>
> --
> You receive this message as a subscriber of the
> xwiki-users(a)objectweb.org mailing list. To unsubscribe:
> mailto:xwiki-users-unsubscribe@objectweb.org
<mailto:xwiki-users-unsubscribe@objectweb.org>
> For general help: mailto:sympa@objectweb.org?subject=help
<mailto:sympa@objectweb.org?subject=help>
> ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws <http://www.objectweb.org/wws>
>
--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/ <http://www.xpertnet.fr/>
Blog: http://www.ludovic.org/blog/ <http://www.ludovic.org/blog/>
XWiki: http://www.xwiki.com <http://www.xwiki.com>
Skype: ldubost AIM: nvludo Yahoo: ludovic
There is a single page on my XWiki installation that can't seem to be
rendered. I can't delete it, access it, anything. Here's the exception:
Error number 3202 in 3: Exception while reading document
XWiki.msmctreeatusibmcom
Wrapped Exception: Error number 3212 in 3: Exception while loading object
XWiki.msmctreeatusibmcom
Wrapped Exception: identifier of an instance of
com.xpn.xwiki.objects.BaseObject altered from -43849225 to 291881179
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while
reading document XWiki.msmctreeatusibmcom
Wrapped Exception: Error number 3212 in 3: Exception while loading object
XWiki.msmctreeatusibmcom
Wrapped Exception: identifier of an instance of
com.xpn.xwiki.objects.BaseObject altered from -43849225 to 291881179
at
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:646)
at
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java(Compiled
Code))
at com.xpn.xwiki.XWiki.getDocument(XWiki.java(Inlined
Compiled Code))
at com.xpn.xwiki.XWiki.getDocument(XWiki.java(Compiled
Code))
at
com.xpn.xwiki.XWiki.getDocumentFromPath(XWiki.java:637)
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:2428)
at
com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:133)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
shawn lauzon.
I am interested in exploring the internals of xwiki. I downloaded source files and wondering how to go about working with it using Eclipse.
Can someone recommend or provide document pointers on the following...
1. Setting up xwiki in eclipse (detailed steps)
2. A suggested sequence of packages/classes to study and comprehend
3. A simple example to extend some classes/features
Thanks,
Patrick
--
View this message in context: http://www.nabble.com/XWiki-on-Eclipse-t908698.html#a2356385
Sent from the XWiki- Users forum at Nabble.com.
Hi
I just downloaded the latest sources from svn and build a fresh war file. (Version 0.9.1000) Then i tried to create a new XWikiClass using the XWikiClasses page. I chooes FAQs as Webname and FAQ as Class name.
I got the error message:
HTTP Status 404 - /xwiki/edit/FAQs/FAQClass description The requested resource (/xwiki/edit/FAQs/FAQClass) is not available.
Any ideas ?
Kind regards
André
Hello,
I want to use the generic Velocity tools from apache (http://jakarta.apache.org/velocity/tools/generic/) in my xwiki. But I can't seem to get them configured. I've changed the toolbox.xml as described on the velocity pages, but still when I use the MathTool, like '$math.random' in my XWiki page, it doesn't seem to work. Any ideas?
Thanks,
Joep Janssen
ObjectWeb is organizing a "best use case" awards for the ObjectWeb
Conference. Mandriva Club usage of XWiki is nominated.
Anybody can vote. It's quick and easy ! Go go XWiki community. It's
simple. One vote per person (no need to cheat).
http://objectwebcon06.objectweb.org/xwiki/bin/Main/Vote
The conference is in Paris from January 31st to February 2nd at the same
time and place as the "Solution Linux" show (which is the most known
Open Source show in France). We will have a presentation of XWiki on
February 2nd !
Ludovic
--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic
Hello,
Maybe a silly question, but is it possible to adapt the generated PDF's in such a way it will use the style set for the wiki documents?
Thanks,
Joep Janssen
I am using 0.9.840, and I seem to be running into all kinds of exceptions
and problems. I tried the mail plugin and got it working, but the
registrations do not survive a restart for some reason. Anyone know of a
wiki that has
1. Email notification
2. Locking and timeout of editing(I miss the counter in MoinMoin that says
10 minutes left, 9 minutes, etc). XWiki does not seem to timeout
3. pdf capability
4. roadmap to have WYSIWYG
and all the normal versioning, diffing, etc.
thanks,
dean