Hey All:
I was wondering what, or how the format of the date is used, in the XAR.
What is the conversion that is used to signify the date and time. For
example I have a modify date and time of 2010/11/26 10:52. In the XML the
data is listed as 1290786747000.
The reason that this is important, is that I am trying to create a set of
pages via xml and import them as such. It will also help in parsing over
exported xmls for an external reference.
Thanks for your help.
Martin Bryant
--
View this message in context: http://xwiki.475771.n2.nabble.com/Date-Format-in-XAR-tp5777753p5777753.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi!
In my application I need to import a *.xar file programmatically. I tried to
do something about it in the *.vm file, but I didn't succeed.
I want to import a small *.xar (which is an exported space) every time a
button is pushed.
Can anyone help me?
--
Atenciosamente,
Erica Usui.
Received:
[xwiki-users] [myxwiki] new wiki request
would like to check out the xwiki platform
icliptv
thx
searched (Nov 26, h15:14 EU time):
http://gfortini.myxwiki.org
answer:
The requested wiki does not exist
Any help?
tnx
Giuseppe Fortini
Hello,
I've a problem to integrate and use Javascript in XWiki when I use Class and
Sheet, in 'inline' mode.
I've a second class, called IGCountriesClass, with 2 properties: a static
list called countryzone (contains "EU|AP|LA|NA|WW" for Europe, Asian
Pacific, North America, Latina America and WorldWide) and a string property
called countryname for the country name.
This Class is used to create some documents with format EU/France,
EU/Espagne, EU/Italie, LA/Brasil, etc... to add more countries if needed.
I've also another Class with 2 lists properties (called intergeozone and
intergeocountry), first is static with "EU|AP|LA|NA|WW" like countryzone
from first Class. The second list is a database list property which is
filled with hibernate query "select doc.name, doc.title from
com.xpn.xwiki.doc.XWikiDocument as doc where doc.web = 'EtudeIGCountries'
and doc.name != 'WebHome' order by doc.name"
Well, my problem, I need to control the filling of the second list with
countries belonging to the selected zone in the first list. It's really so
easy to do this with using javascript in normal web use, easy to with xwiki
in 'view' mode but I've a problem to do it with javascript when I go to
'inline' mode.
I use this code in the second Class Sheet, all is ok in 'view' mode but
problem come when I go in 'inline' mode. I get problem with result from
$obj.get(objectname) apparently.
Could someone help me, please? :)
[code]
{{html}}
<!--script type="text/javascript"//-->
function initZone()
{
var selObj = document.getElementById('countriesSelect');
selObj.options[0] = new Option('---','');
selObj.selectedIndex = 0;
}
function changeListe()
{
choix = document.getElementById("zonesList").value
populateCountries(choix)
}
function populateCountries(newzone)
{
var countObj = 0;
var selObj = document.getElementById('countriesSelect');
for (var i = 0; i < selObj.options.length; i++)
{
selObj.options[i] = null;
}
selObj.options.length=null;
selObj.options[countObj++] = new Option('---','');
selObj.selectedIndex = 0;
#set ($filespace = "EtudeIGCountries")
#set ($recherche = $xwiki.searchDocuments("where doc.name != 'WebHome' and
doc.space = ? order by doc.name asc",[${filespace}]))
#foreach($entry in $sorttool.sort($recherche))
#set ($tempdoc = "${entry}")
#set ($doctemp = $xwiki.getDocument($tempdoc))
#set ($obj = $doctemp.getObject('EtudeCode.EtudeIGCountriesClass'))
#set ($entryDoc = $xwiki.getDocument($entry))
#if($entryDoc.getObject('EtudeCode.EtudeIGCountriesClass'))
if ((newzone == "${obj.get('countryzone')}") || (newzone == "WW"))
{
selObj.options[countObj++] = new Option("${obj.get('countryname')}",
"${obj.get('countryname')}");
}
#end
#end
}
</script>
<!--SELECT id="zonesList" onchange="changeListe()" name="zonesList"//-->
#foreach($listitem in $list)
## * value: $listitem displayed value: $map.get($listitem).getValue()
#if ($map.get($listitem).getValue() == "NA")
<OPTION value="$map.get($listitem).getValue()"
SELECTED>$map.get($listitem).getValue()</OPTION>
#else
<OPTION
value="$map.get($listitem).getValue()">$map.get($listitem).getValue()</OPTION>
#end
#end
</SELECT>
<SELECT id="countriesSelect" name="countriesList"></SELECT>
<!--script type="text/javascript">initZone();</script//-->
{{/html}}
[/code]
--
View this message in context: http://xwiki.475771.n2.nabble.com/XWiki-Class-and-Javascript-tp5770427p5770…
Sent from the XWiki- Users mailing list archive at Nabble.com.
I am out of the office until 11/29/2010.
Enjoying the US Thanksgiving holiday ... back on Monday, 11/29.
Note: This is an automated response to your message "users Digest, Vol 40,
Issue 58" sent on 11/24/10 16:43:00.
This is the only notification you will receive while this person is away.
Hi,
As was wondering if H2 database was still supported as database from xwiki.
According to this page (
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationH2), this
should work but here is the exception I get whe using this configuration :
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error
number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
from param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: Errors in named queries: getAllPublicDocuments,
listGroupsForUserInOtherWiki, getSpaceDocsName, listGroupsForUser,
getAllUsers, getAllDocuments, getAllSpaceDocuments, getSpaces
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
I'm using h2-1.2.147.jar and here is wat I put in hibernate config file:
<property name="connection.url">jdbc:h2:wiki</property>
<property name="connection.username">xwiki</property>
<property name="connection.password">xwiki</property>
<property name="connection.driver_class">org.h2.Driver</property>
<property name="dialect">org.hibernate.dialect.H2Dialect</property>
<property
name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
<property name="connection.pool_size">20</property>
Can anyone help ?
Hello,
I want to used "Share by email" but I've the following error in log:
2010-11-24 15:48:39,986
[http://localhost:8080/xwiki/bin/get/abourree/Weekly1046?xpage=shareinline]
ERROR mailsender.MailSenderPlugin - sendEmailFromTemplate:
XWiki.SharePage vcontext: org.apache.velocity.VelocityContext@72d833
com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not
have permissions to send as this sender
To solved it, I need to specify the from field.
I update in XWiki.XWikiPreferences General Admin email to my own =>
without success.
Note that I able to send invitation with invitation application and
Email "from" address set to mine
Regards,
Arnaud.
Hi,
When I email from my browser with my wrong email address I get:
You are not allowed to post to this mailing list, and your message has
been automatically rejected. If you think that your messages are
being rejected in error, contact the mailing list owner at
users-owner(a)xwiki.org.
When I email from my browser with my right email address the request gets
through.
But when I email from the email client on my PC (Thunderbird) with my right
email address the message neither gets through nor gets bounced.
Any ideas why that might be? Could it be that I am emailing in HTML rather
than Plain Text format? I wouldn't have thought so.
Thanks,
Jonathan
Hi,
I have a couple of questions regarding the Invitation application ( space ).
1. Is there a possibility to clear the invitation list ? I know there is a 'Rescind Invitation' button, but
i.e. I cannot remove invitation with status 'Declined' ( This action cannot be carried out because all of
the messages selected are of the wrong status. ) even if I have Admin rights.
2. User who sent the invitation to another potential user asked me whether he could somehow receive an
information about the new user account details ( his login at least ). Typically we want to invite someone
to give him an access to edit some documents and such information would help with grating him access rights.
Is there a possibility to get to such info ?
3. This is more a feature request, but maybe it's already implemented. Is it possible to specify a group to
which user will be subscribed when he accept the invitation from us ? That could ease the process of
configuring user account a lot :)
Thanks in advance,
Piotr
Hi all,
I'm struggling creating a xwql query that joins two tables.
Let's say I have two classes: Fruit and Supplier.
Fruit has the following properties: Name, Supplier.
Supplier has the following properties: Name, City.
I need the query that returns:
All Fruit that has Supplier with City='Melbourne'.
I can get all the Fruit objects:
#set($fruits = $services.query.xwql("from doc.object(Fruit.FruitClass) as
fru").execute())
And separately I can get all the Supplier objects that have city='Melbourne'
#set($suppliers = $services.query.xwql("where
doc.object(Supplier.SupplierClass).City='Melbourne'").execute())
But I can't combine them. Please advise.
Alina.
--
View this message in context: http://xwiki.475771.n2.nabble.com/xwql-join-query-tp5762763p5762763.html
Sent from the XWiki- Users mailing list archive at Nabble.com.